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
LayOutAPI
model
lineardimension.h
Go to the documentation of this file.
1
// Copyright 2015 Trimble Navigation Ltd. All rights reserved.
2
// This file is intended for public distribution.
3
4
#ifndef LAYOUT_MODEL_LINEARDIMENSION_H_
5
#define LAYOUT_MODEL_LINEARDIMENSION_H_
6
7
#include <
LayOutAPI/common.h
>
8
#include <
LayOutAPI/geometry/geometry.h
>
9
#include <
LayOutAPI/model/defs.h
>
10
30
#ifdef __cplusplus
31
extern
"C"
{
32
#endif // __cplusplus
33
38
typedef
enum
{
39
LOLinearDimensionLeaderLineType_SingleSegment
= 0,
40
LOLinearDimensionLeaderLineType_TwoSegment
,
41
LOLinearDimensionLeaderLineType_Bezier
,
42
LOLinearDimensionLeaderLineType_Hidden
,
43
LONumLinearDimensionLeaderLineTypes
44
}
LOLinearDimensionLeaderLineType
;
45
60
LO_RESULT
LOLinearDimensionCreate
(
61
LOLinearDimensionRef
* dimension,
const
LOPoint2D
* start_point,
const
LOPoint2D
* end_point,
62
double
height);
63
71
LO_RESULT
LOLinearDimensionAddReference
(
LOLinearDimensionRef
dimension);
72
82
LO_RESULT
LOLinearDimensionRelease
(
LOLinearDimensionRef
* dimension);
83
93
LO_EXPORT
LOLinearDimensionRef
LOLinearDimensionFromEntity
(
LOEntityRef
entity);
94
103
LO_EXPORT
LOEntityRef
LOLinearDimensionToEntity
(
LOLinearDimensionRef
dimension);
104
121
LO_RESULT
LOLinearDimensionGetExplodedEntities
(
122
LOLinearDimensionRef
dimension,
LOEntityListRef
entity_list);
123
136
LO_RESULT
LOLinearDimensionGetUsesCustomText
(
LOLinearDimensionRef
dimension,
bool
* use_custom_text);
137
151
LO_RESULT
LOLinearDimensionSetUsesCustomText
(
LOLinearDimensionRef
dimension,
bool
use_custom_text);
152
166
LO_RESULT
LOLinearDimensionCreateDimensionTextCopy
(
167
LOLinearDimensionRef
dimension,
LOFormattedTextRef
* text);
168
181
LO_RESULT
LOLinearDimensionSetDimensionText
(
182
LOLinearDimensionRef
dimension,
LOFormattedTextRef
text);
183
193
LO_RESULT
LOLinearDimensionGetLeaderLineType
(
194
LOLinearDimensionRef
dimension,
LOLinearDimensionLeaderLineType
* leader_line_type);
195
210
LO_RESULT
LOLinearDimensionSetLeaderLineType
(
211
LOLinearDimensionRef
dimension,
LOLinearDimensionLeaderLineType
leader_line_type);
212
223
LO_RESULT
LOLinearDimensionGetUsesAutoScale
(
LOLinearDimensionRef
dimension,
bool
* use_auto_scale);
224
235
LO_RESULT
LOLinearDimensionSetUsesAutoScale
(
LOLinearDimensionRef
dimension,
bool
use_auto_scale);
236
246
LO_RESULT
LOLinearDimensionGetScale
(
LOLinearDimensionRef
dimension,
double
* scale);
247
260
LO_RESULT
LOLinearDimensionSetScale
(
LOLinearDimensionRef
dimension,
double
scale);
261
271
LO_RESULT
LOLinearDimensionGetStartConnectionPoint
(
272
LOLinearDimensionRef
dimension,
LOPoint2D
* point);
273
286
LO_RESULT
LOLinearDimensionSetStartConnectionPoint
(
287
LOLinearDimensionRef
dimension,
LOPoint2D
* point);
288
300
LO_RESULT
LOLinearDimensionGetEndConnectionPoint
(
LOLinearDimensionRef
dimension,
LOPoint2D
* point);
301
312
LO_RESULT
LOLinearDimensionSetEndConnectionPoint
(
LOLinearDimensionRef
dimension,
LOPoint2D
* point);
313
323
LO_RESULT
LOLinearDimensionGetStartExtentPoint
(
LOLinearDimensionRef
dimension,
LOPoint2D
* point);
324
337
LO_RESULT
LOLinearDimensionSetStartExtentPoint
(
LOLinearDimensionRef
dimension,
LOPoint2D
* point);
338
348
LO_RESULT
LOLinearDimensionGetEndExtentPoint
(
LOLinearDimensionRef
dimension,
LOPoint2D
* point);
349
362
LO_RESULT
LOLinearDimensionSetEndExtentPoint
(
LOLinearDimensionRef
dimension,
LOPoint2D
* point);
363
375
LO_RESULT
LOLinearDimensionGetStartOffsetPoint
(
LOLinearDimensionRef
dimension,
LOPoint2D
* point);
376
388
LO_RESULT
LOLinearDimensionGetEndOffsetPoint
(
LOLinearDimensionRef
dimension,
LOPoint2D
* point);
389
402
LO_RESULT
LOLinearDimensionSetStartOffsetLength
(
LOLinearDimensionRef
dimension,
double
length);
403
416
LO_RESULT
LOLinearDimensionSetEndOffsetLength
(
LOLinearDimensionRef
dimension,
double
length);
417
435
LO_RESULT
LOLinearDimensionConnectTo
(
436
LOLinearDimensionRef
dimension,
LOConnectionPointRef
start_point,
437
LOConnectionPointRef
end_point);
438
450
LO_RESULT
LOLinearDimensionDisconnect
(
LOLinearDimensionRef
dimension);
451
452
#ifdef __cplusplus
453
}
// end extern "C"
454
#endif // __cplusplus
455
456
#endif // LAYOUT_MODEL_LINEARDIMENSION_H_
Generated on Fri Mar 1 2024 11:17:19 for LayOut C API by
1.8.3.1