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
sketchupmodel.h
Go to the documentation of this file.
1 // Copyright 2015-2023 Trimble Inc. All rights reserved.
2 // This file is intended for public distribution.
3
4 #ifndef LAYOUT_MODEL_SKETCHUPMODEL_H_
5 #define LAYOUT_MODEL_SKETCHUPMODEL_H_
6
7 #include <LayOutAPI/common.h>
8 #include <LayOutAPI/geometry/geometry.h>
9 #include <LayOutAPI/model/defs.h>
10 #include <SketchUpAPI/model/defs.h>
11
24 typedef enum {
25 LOSketchUpModelRenderMode_NoOverride = -1,
26 LOSketchUpModelRenderMode_Raster = 0,
27 LOSketchUpModelRenderMode_Hybrid,
28 LOSketchUpModelRenderMode_Vector,
29 LONumSketchUpModelRenderModes
30 } LOSketchUpModelRenderMode;
31
39 typedef enum {
40 LOSketchUpModelStandardView_Top = 0,
41 LOSketchUpModelStandardView_RelativeTop,
42
43 LOSketchUpModelStandardView_Bottom,
44 LOSketchUpModelStandardView_RelativeBottom,
45
46 LOSketchUpModelStandardView_Front,
47 LOSketchUpModelStandardView_Back,
48 LOSketchUpModelStandardView_Left,
49 LOSketchUpModelStandardView_Right,
50 LOSketchUpModelStandardView_Iso,
51
52 LONumSketchUpModelStandardViews
53 } LOSketchUpModelStandardView;
54
55 #ifdef __cplusplus
56 extern "C" {
57 #endif // __cplusplus
58
75 LO_RESULT LOSketchUpModelCreate(
76 LOSketchUpModelRef* model, const char* path, const LOAxisAlignedRect2D* bounds);
77
85 LO_RESULT LOSketchUpModelAddReference(LOSketchUpModelRef model);
86
96 LO_RESULT LOSketchUpModelRelease(LOSketchUpModelRef* model);
97
107 LO_EXPORT LOSketchUpModelRef LOSketchUpModelFromEntity(LOEntityRef entity);
108
117 LO_EXPORT LOEntityRef LOSketchUpModelToEntity(LOSketchUpModelRef model);
118
130 LO_RESULT LOSketchUpModelSetViewportOverridesOnModel(LOSketchUpModelRef model);
131
143 LO_RESULT LOSketchUpModelResetViewportOverridesOnModel(LOSketchUpModelRef model);
144
160 LO_RESULT LOSketchUpModelGetModel(LOSketchUpModelRef model, SUModelRef* sumodel);
161
171 LO_RESULT LOSketchUpModelGetRenderMode(
172 LOSketchUpModelRef model, LOSketchUpModelRenderMode* render_mode);
173
185 LO_RESULT LOSketchUpModelSetRenderMode(
186 LOSketchUpModelRef model, LOSketchUpModelRenderMode render_mode);
187
201 LO_RESULT LOSketchUpModelRender(LOSketchUpModelRef model);
202
213 LO_RESULT LOSketchUpModelIsRenderNeeded(LOSketchUpModelRef model, bool* render_needed);
214
226 LO_RESULT LOSketchUpModelGetNumberOfAvailableScenes(
227 LOSketchUpModelRef model, size_t* number_of_scenes);
228
242 LO_RESULT LOSketchUpModelGetAvailableScenes(
243 LOSketchUpModelRef model, size_t len, SUStringRef scenes[], size_t* count);
244
259 LO_RESULT LOSketchUpModelGetCurrentScene(
260 LOSketchUpModelRef model, size_t* scene_index, bool* scene_modified);
261
277 LO_RESULT LOSketchUpModelSetCurrentScene(LOSketchUpModelRef model, size_t scene_index);
278
290 LO_RESULT LOSketchUpModelGetCameraModified(LOSketchUpModelRef model, bool* modified);
291
302 LO_RESULT LOSketchUpModelResetCamera(LOSketchUpModelRef model);
303
315 LO_RESULT LOSketchUpModelGetCamera(LOSketchUpModelRef model, SUCameraRef* sucamera);
316
328 LO_RESULT LOSketchUpModelSetCamera(LOSketchUpModelRef model, SUCameraRef sucamera);
329
341 LO_RESULT LOSketchUpModelGetEffectsModified(LOSketchUpModelRef model, bool* modified);
342
353 LO_RESULT LOSketchUpModelResetEffects(LOSketchUpModelRef model);
354
366 LO_RESULT LOSketchUpModelGetStyleModified(LOSketchUpModelRef model, bool* modified);
367
378 LO_RESULT LOSketchUpModelResetStyle(LOSketchUpModelRef model);
379
394 LO_RESULT LOSketchUpModelGetLayersModified(LOSketchUpModelRef model, bool* modified);
395
409 LO_RESULT LOSketchUpModelResetLayers(LOSketchUpModelRef model);
410
422 LO_RESULT LOSketchUpModelGetDisplayBackground(LOSketchUpModelRef model, bool* display_background);
423
436 LO_RESULT LOSketchUpModelSetDisplayBackground(LOSketchUpModelRef model, bool display_background);
437
447 LO_RESULT LOSketchUpModelGetLineWeight(LOSketchUpModelRef model, double* line_weight);
448
460 LO_RESULT LOSketchUpModelSetLineWeight(LOSketchUpModelRef model, double line_weight);
461
473 LO_RESULT LOSketchUpModelGetDashScale(LOSketchUpModelRef model, double* dash_scale);
474
487 LO_RESULT LOSketchUpModelSetDashScale(LOSketchUpModelRef model, double dash_scale);
488
498 LO_RESULT LOSketchUpModelGetPerspective(LOSketchUpModelRef model, bool* perspective);
499
511 LO_RESULT LOSketchUpModelSetPerspective(LOSketchUpModelRef model, bool perspective);
512
524 LO_RESULT LOSketchUpModelGetStandardView(
525 LOSketchUpModelRef model, LOSketchUpModelStandardView* view);
526
537 LO_RESULT LOSketchUpModelSetStandardView(
538 LOSketchUpModelRef model, LOSketchUpModelStandardView view);
539
551 LO_RESULT LOSketchUpModelGetScale(LOSketchUpModelRef model, double* scale);
552
566 LO_RESULT LOSketchUpModelSetScale(LOSketchUpModelRef model, double scale);
567
578 LO_RESULT LOSketchUpModelGetPreserveScaleOnResize(LOSketchUpModelRef model, bool* preserve_scale);
579
591 LO_RESULT LOSketchUpModelSetPreserveScaleOnResize(LOSketchUpModelRef model, bool preserve_scale);
592
605 LO_RESULT LOSketchUpModelConvertModelPointToPaperPoint(
606 LOSketchUpModelRef model, const LOPoint3D* model_point, LOPoint2D* paper_point);
607
620 LO_RESULT LOSketchUpModelGetClipMask(LOSketchUpModelRef model, LOEntityRef* clip_mask);
621
642 LO_RESULT LOSketchUpModelSetClipMask(LOSketchUpModelRef model, LOEntityRef clip_mask);
643
659 LO_RESULT LOSketchUpModelGetExplodedEntities(LOSketchUpModelRef model, LOEntityListRef entity_list);
660
677 LO_RESULT LOSketchUpModelGetOutputEntities(LOSketchUpModelRef model, LOEntityListRef entity_list);
678 #ifdef __cplusplus
679 } // end extern "C"
680 #endif // __cplusplus
681 #endif // LAYOUT_MODEL_SKETCHUPMODEL_H_