LayOut C API

- Main Page
- Related Pages
- Data Structures
- Files

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
angulardimension.h
Go to the documentation of this file.
1 // Copyright 2016 Trimble Navigation Ltd. All Rights Reserved.
2 // This file is intended for public distribution.
3
4 #ifndef LAYOUT_MODEL_ANGULARDIMENSION_H_
5 #define LAYOUT_MODEL_ANGULARDIMENSION_H_
6
7 #include <LayOutAPI/common.h>
8 #include <LayOutAPI/geometry/geometry.h>
9 #include <LayOutAPI/model/defs.h>
10
33 #ifdef __cplusplus
34 extern "C" {
35 #endif // __cplusplus
36
43 typedef enum {
44 LOAngularDimensionLeaderLineType_SingleSegment = 0,
45 LOAngularDimensionLeaderLineType_TwoSegment,
46 LOAngularDimensionLeaderLineType_Bezier,
47 LOAngularDimensionLeaderLineType_Hidden,
48 LONumAngularDimensionLeaderLineTypes
49 } LOAngularDimensionLeaderLineType;
50
78 LO_RESULT LOAngularDimensionCreate(
79 LOAngularDimensionRef* dimension, const LOPoint2D* start_point, const LOPoint2D* end_point,
80 const LOPoint2D* start_extent_point, const LOPoint2D* end_extent_point, bool inner_angle);
81
90 LO_RESULT LOAngularDimensionAddReference(LOAngularDimensionRef dimension);
91
102 LO_RESULT LOAngularDimensionRelease(LOAngularDimensionRef* dimension);
103
114 LO_EXPORT LOAngularDimensionRef LOAngularDimensionFromEntity(LOEntityRef entity);
115
125 LO_EXPORT LOEntityRef LOAngularDimensionToEntity(LOAngularDimensionRef dimension);
126
144 LO_RESULT LOAngularDimensionGetExplodedEntities(
145 LOAngularDimensionRef dimension, LOEntityListRef entity_list);
146
160 LO_RESULT LOAngularDimensionGetUsesCustomText(
161 LOAngularDimensionRef dimension, bool* use_custom_text);
162
177 LO_RESULT LOAngularDimensionSetUsesCustomText(
178 LOAngularDimensionRef dimension, bool use_custom_text);
179
194 LO_RESULT LOAngularDimensionCreateDimensionTextCopy(
195 LOAngularDimensionRef dimension, LOFormattedTextRef* text);
196
210 LO_RESULT LOAngularDimensionSetDimensionText(
211 LOAngularDimensionRef dimension, LOFormattedTextRef text);
212
223 LO_RESULT LOAngularDimensionGetLeaderLineType(
224 LOAngularDimensionRef dimension, LOAngularDimensionLeaderLineType* leader_line_type);
225
241 LO_RESULT LOAngularDimensionSetLeaderLineType(
242 LOAngularDimensionRef dimension, LOAngularDimensionLeaderLineType leader_line_type);
243
254 LO_RESULT LOAngularDimensionGetStartConnectionPoint(
255 LOAngularDimensionRef dimension, LOPoint2D* point);
256
268 LO_RESULT LOAngularDimensionSetStartConnectionPoint(
269 LOAngularDimensionRef dimension, const LOPoint2D* point);
270
281 LO_RESULT LOAngularDimensionGetEndConnectionPoint(
282 LOAngularDimensionRef dimension, LOPoint2D* point);
283
295 LO_RESULT LOAngularDimensionSetEndConnectionPoint(
296 LOAngularDimensionRef dimension, const LOPoint2D* point);
297
308 LO_RESULT LOAngularDimensionGetStartExtentPoint(LOAngularDimensionRef dimension, LOPoint2D* point);
309
323 LO_RESULT LOAngularDimensionSetStartExtentPoint(
324 LOAngularDimensionRef dimension, const LOPoint2D* point);
325
336 LO_RESULT LOAngularDimensionGetEndExtentPoint(LOAngularDimensionRef dimension, LOPoint2D* point);
337
351 LO_RESULT LOAngularDimensionSetEndExtentPoint(
352 LOAngularDimensionRef dimension, const LOPoint2D* point);
353
366 LO_RESULT LOAngularDimensionGetStartOffsetPoint(LOAngularDimensionRef dimension, LOPoint2D* point);
367
380 LO_RESULT LOAngularDimensionGetEndOffsetPoint(LOAngularDimensionRef dimension, LOPoint2D* point);
381
395 LO_RESULT LOAngularDimensionSetStartOffsetLength(LOAngularDimensionRef dimension, double length);
396
410 LO_RESULT LOAngularDimensionSetEndOffsetLength(LOAngularDimensionRef dimension, double length);
411
422 LO_RESULT LOAngularDimensionGetArcCenterPoint(LOAngularDimensionRef dimension, LOPoint2D* point);
423
435 LO_RESULT LOAngularDimensionGetRadius(LOAngularDimensionRef dimension, double* radius);
436
450 LO_RESULT LOAngularDimensionSetRadius(LOAngularDimensionRef dimension, double radius);
451
462 LO_RESULT LOAngularDimensionGetAngle(LOAngularDimensionRef dimension, double* angle);
463
464 #ifdef __cplusplus
465 } // end extern "C"
466 #endif // __cplusplus
467
468 #endif // LAYOUT_MODEL_ANGULARDIMENSION_H_