SketchUp SDK
Main Page
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
slapi
model
component_definition.h
Go to the documentation of this file.
1
// Copyright 2013 Trimble Navigation Ltd. All Rights Reserved.
2
#ifndef SLAPI_MODEL_COMPONENT_H_
3
#define SLAPI_MODEL_COMPONENT_H_
4
5
#include <
slapi/geometry.h
>
6
#include <
slapi/slapi.h
>
7
#include <
slapi/unicodestring.h
>
8
#include <
slapi/model/curve.h
>
9
#include <
slapi/model/defs.h
>
10
11
#pragma pack(push, 8)
12
#ifdef __cplusplus
13
extern
"C"
{
14
#endif
15
25
struct
SUComponentBehavior
{
33
enum
SUSnapToBehavior
{
34
SUSnapToBehavior_None
= 0,
35
SUSnapToBehavior_Any
,
36
SUSnapToBehavior_Horizontal
,
37
SUSnapToBehavior_Vertical
,
38
SUSnapToBehavior_Sloped
39
};
40
enum
SUSnapToBehavior
component_snap
;
41
bool
component_cuts_opening
;
42
43
44
bool
component_always_face_camera
;
45
46
47
48
bool
component_shadows_face_sun
;
49
50
51
};
52
61
SU_EXPORT
SUEntityRef
SUComponentDefinitionToEntity
(
62
SUComponentDefinitionRef
comp_def);
63
73
SU_EXPORT
SUComponentDefinitionRef
SUComponentDefinitionFromEntity
(
74
SUEntityRef
entity);
75
84
SU_EXPORT
SUDrawingElementRef
SUComponentDefinitionToDrawingElement
(
85
SUComponentDefinitionRef
comp_def);
86
96
SU_EXPORT
SUComponentDefinitionRef
SUComponentDefinitionFromDrawingElement
(
97
SUDrawingElementRef
drawing_elem);
98
110
SU_RESULT
SUComponentDefinitionCreate
(
SUComponentDefinitionRef
* comp_def);
111
121
SU_RESULT
SUComponentDefinitionRelease
(
SUComponentDefinitionRef
* comp_def);
122
134
SU_RESULT
SUComponentDefinitionGetName
(
SUComponentDefinitionRef
comp_def,
135
SUStringRef
* name);
136
147
SU_RESULT
SUComponentDefinitionSetName
(
SUComponentDefinitionRef
comp_def,
148
const
char
* name);
149
159
SU_RESULT
SUComponentDefinitionGetEntities
(
160
SUComponentDefinitionRef
comp_def,
161
SUEntitiesRef
* entities);
162
174
SU_RESULT
SUComponentDefinitionGetDescription
(
175
SUComponentDefinitionRef
comp_def,
176
SUStringRef
* desc);
177
187
SU_RESULT
SUComponentDefinitionSetDescription
(
188
SUComponentDefinitionRef
comp_def,
189
const
char
* desc);
190
202
SU_RESULT
SUComponentDefinitionCreateInstance
(
203
SUComponentDefinitionRef
comp_def,
204
SUComponentInstanceRef
* instance);
205
214
SU_RESULT
SUComponentDefinitionGetBehavior
(
215
SUComponentDefinitionRef
comp_def,
216
struct
SUComponentBehavior
* behavior);
217
227
SU_RESULT
SUComponentDefinitionSetBehavior
(
228
SUComponentDefinitionRef
comp_def,
229
const
struct
SUComponentBehavior
* behavior);
230
231
#ifdef __cplusplus
232
}
// extern "C"
233
#endif
234
#pragma pack(pop)
235
236
#endif // SLAPI_MODEL_COMPONENT_H_
Generated on Tue Aug 6 2013 11:05:25 for SketchUp SDK by
1.8.3.1