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-2022 Trimble Inc. 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
LOEntityType_ReferenceEntity
,
28
LONumEntityTypes
29
}
LOEntityType
;
30
36
#ifdef __cplusplus
37
extern
"C"
{
38
#endif // __cplusplus
39
49
LO_RESULT
LOEntityGetAxisAlignedBounds
(
LOEntityRef
entity,
LOAxisAlignedRect2D
* bounds);
50
62
LO_RESULT
LOEntityGetOrientedBounds
(
LOEntityRef
entity,
LOOrientedRect2D
* bounds);
63
76
LO_RESULT
LOEntityHasExplicitTransform
(
LOEntityRef
entity,
bool
* has_transform);
77
87
LO_RESULT
LOEntityGetExplicitTransform
(
LOEntityRef
entity,
LOTransformMatrix2D
* transform_matrix);
88
101
LO_RESULT
LOEntityApplyTransform
(
LOEntityRef
entity,
const
LOTransformMatrix2D
* transform_matrix);
102
115
LO_RESULT
LOEntityGetUntransformedBounds
(
LOEntityRef
entity,
LOAxisAlignedRect2D
* bounds);
116
132
LO_RESULT
LOEntitySetUntransformedBounds
(
LOEntityRef
entity,
const
LOAxisAlignedRect2D
* bounds);
133
145
LO_RESULT
LOEntityGetEntityType
(
LOEntityRef
entity,
LOEntityType
* entity_type);
146
158
LO_RESULT
LOEntityGetDocument
(
LOEntityRef
entity,
LODocumentRef
* document);
159
174
LO_RESULT
LOEntityGetLayerInstance
(
LOEntityRef
entity,
LOLayerInstanceRef
* layer_instance);
175
200
LO_RESULT
LOEntityMoveToLayer
(
LOEntityRef
entity,
LOLayerRef
layer,
LOPageListRef
pages);
201
228
LO_RESULT
LOEntityListMoveToLayer
(
LOEntityListRef
entities,
LOLayerRef
layer,
LOPageListRef
pages);
229
243
LO_RESULT
LOEntityGetPage
(
LOEntityRef
entity,
LOPageRef
* page);
244
254
LO_RESULT
LOEntityIsInGroup
(
LOEntityRef
entity,
bool
* is_in_group);
255
267
LO_RESULT
LOEntityGetContainingGroup
(
LOEntityRef
entity,
LOGroupRef
* group);
268
287
LO_RESULT
LOEntityMoveToGroup
(
LOEntityRef
entity,
LOGroupRef
group);
288
299
LO_RESULT
LOEntityGetStyle
(
LOEntityRef
entity,
LOStyleRef
style);
300
312
LO_RESULT
LOEntitySetStyle
(
LOEntityRef
entity,
LOStyleRef
style);
326
LO_RESULT
LOEntityIsOnSharedLayer
(
LOEntityRef
entity,
bool
* is_on_shared_layer);
327
338
LO_RESULT
LOEntityGetLocked
(
LOEntityRef
entity,
bool
* is_locked);
339
349
LO_RESULT
LOEntitySetLocked
(
LOEntityRef
entity,
bool
lock);
350
351
#ifdef __cplusplus
352
}
// end extern "C"
353
#endif // __cplusplus
354
#endif // LAYOUT_MODEL_ENTITY_H_
Generated on Wed Feb 1 2023 16:37:56 for LayOut C API by
1.8.3.1