LayOut C API
Main Page
Related Pages
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
LayOutAPI
model
entity.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_ENTITY_H_
5
#define LAYOUT_MODEL_ENTITY_H_
6
7
#include <
LayOutAPI/common.h
>
8
#include <
LayOutAPI/geometry/geometry.h
>
9
#include <
LayOutAPI/model/defs.h
>
10
15
typedef
enum
{
16
LOEntityType_FormattedText
= 0,
17
LOEntityType_Group
,
18
LOEntityType_Image
,
19
LOEntityType_LinearDimension
,
20
LOEntityType_Path
,
21
LOEntityType_Rectangle
,
22
LOEntityType_SketchUpModel
,
23
LOEntityType_Ellipse
,
24
LOEntityType_Label
,
25
LOEntityType_Table
,
26
LOEntityType_AngularDimension
,
27
LONumEntityTypes
28
}
LOEntityType
;
29
35
#ifdef __cplusplus
36
extern
"C"
{
37
#endif // __cplusplus
38
48
LO_RESULT
LOEntityGetAxisAlignedBounds
(
LOEntityRef
entity,
49
LOAxisAlignedRect2D
* bounds);
50
62
LO_RESULT
LOEntityGetOrientedBounds
(
LOEntityRef
entity,
63
LOOrientedRect2D
* bounds);
64
77
LO_RESULT
LOEntityHasExplicitTransform
(
LOEntityRef
entity,
78
bool
* has_transform);
79
89
LO_RESULT
LOEntityGetExplicitTransform
(
LOEntityRef
entity,
90
LOTransformMatrix2D
* transform_matrix);
91
104
LO_RESULT
LOEntityApplyTransform
(
LOEntityRef
entity,
105
const
LOTransformMatrix2D
* transform_matrix);
106
119
LO_RESULT
LOEntityGetUntransformedBounds
(
LOEntityRef
entity,
120
LOAxisAlignedRect2D
* bounds);
121
137
LO_RESULT
LOEntitySetUntransformedBounds
(
LOEntityRef
entity,
138
const
LOAxisAlignedRect2D
* bounds);
139
151
LO_RESULT
LOEntityGetEntityType
(
LOEntityRef
entity,
152
LOEntityType
* entity_type);
153
165
LO_RESULT
LOEntityGetDocument
(
LOEntityRef
entity,
166
LODocumentRef
* document);
167
182
LO_RESULT
LOEntityGetLayerInstance
(
LOEntityRef
entity,
183
LOLayerInstanceRef
* layer_instance);
184
209
LO_RESULT
LOEntityMoveToLayer
(
LOEntityRef
entity,
210
LOLayerRef
layer,
211
LOPageListRef
pages);
212
239
LO_RESULT
LOEntityListMoveToLayer
(
LOEntityListRef
entities,
240
LOLayerRef
layer,
241
LOPageListRef
pages);
242
256
LO_RESULT
LOEntityGetPage
(
LOEntityRef
entity,
257
LOPageRef
* page);
258
268
LO_RESULT
LOEntityIsInGroup
(
LOEntityRef
entity,
269
bool
* is_in_group);
270
282
LO_RESULT
LOEntityGetContainingGroup
(
LOEntityRef
entity,
283
LOGroupRef
* group);
284
303
LO_RESULT
LOEntityMoveToGroup
(
LOEntityRef
entity,
304
LOGroupRef
group);
305
316
LO_RESULT
LOEntityGetStyle
(
LOEntityRef
entity,
317
LOStyleRef
style);
318
330
LO_RESULT
LOEntitySetStyle
(
LOEntityRef
entity,
331
LOStyleRef
style);
345
LO_RESULT
LOEntityIsOnSharedLayer
(
LOEntityRef
entity,
346
bool
* is_on_shared_layer);
347
358
LO_RESULT
LOEntityGetLocked
(
LOEntityRef
entity,
bool
* is_locked);
359
369
LO_RESULT
LOEntitySetLocked
(
LOEntityRef
entity,
bool
lock);
370
371
#ifdef __cplusplus
372
}
// end extern "C"
373
#endif // __cplusplus
374
#endif //LAYOUT_MODEL_ENTITY_H_
Generated on Wed Sep 8 2021 14:15:26 for LayOut C API by
1.8.3.1