MeshLib C Docs
Loading...
Searching...
No Matches
MRSceneRoot.h
Go to the documentation of this file.
1#pragma once
2
4#include <MRCMesh/MRBox.h>
6#include <MRCMisc/common.h>
7#include <MRCMisc/exports.h>
8
9#include <stdbool.h>
10#include <stddef.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16typedef struct MR_ConstChildren MR_ConstChildren; // Defined in `#include <MRCMesh/MRConstChildren.h>`.
17typedef struct MR_Object MR_Object; // Defined in `#include <MRCMesh/MRObject.h>`.
18typedef struct MR_ObjectChildrenHolder MR_ObjectChildrenHolder; // Defined in `#include <MRCMesh/MRObject.h>`.
19typedef struct MR_ViewportMask MR_ViewportMask; // Defined in `#include <MRCMesh/MRViewportId.h>`.
20typedef struct MR_ViewportProperty_MR_AffineXf3f MR_ViewportProperty_MR_AffineXf3f; // Defined in `#include <MRCMesh/MRViewportProperty.h>`.
21typedef struct MR_std_filesystem_path MR_std_filesystem_path; // Defined in `#include <MRCMisc/std_filesystem_path.h>`.
22typedef struct MR_std_set_std_string MR_std_set_std_string; // Defined in `#include <MRCMisc/std_set_std_string.h>`.
23typedef struct MR_std_shared_ptr_MR_Object MR_std_shared_ptr_MR_Object; // Defined in `#include <MRCMisc/std_shared_ptr_MR_Object.h>`.
24typedef struct MR_std_shared_ptr_MR_SceneRootObject MR_std_shared_ptr_MR_SceneRootObject; // Defined in `#include <MRCMisc/std_shared_ptr_MR_SceneRootObject.h>`.
25typedef struct MR_std_shared_ptr_const_MR_SceneRootObject MR_std_shared_ptr_const_MR_SceneRootObject; // Defined in `#include <MRCMisc/std_shared_ptr_const_MR_SceneRootObject.h>`.
26typedef struct MR_std_string MR_std_string; // Defined in `#include <MRCMisc/std_string.h>`.
27typedef struct MR_std_vector_std_string MR_std_vector_std_string; // Defined in `#include <MRCMisc/std_vector_std_string.h>`.
28
29
39
44
48
53
57
61
66
70
76
81
86
90
96
101
107
112
120
127
132
135
138
146
149
153
156
161
164
169
172
176
180
185MRC_API void MR_SceneRootObject_setName(MR_SceneRootObject *_this, const char *_1, const char *_1_end);
186
191
197
202
211
217
223
229
234
242
248
253
259
266
273
278
282
288
292
297
303
310
318MRC_API bool MR_SceneRootObject_addChild(MR_SceneRootObject *_this, MR_PassBy child_pass_by, MR_std_shared_ptr_MR_Object *child, const bool *recognizedChild);
319
327
332
337
341
345
350
357
364
370
376
382
386
392
399
406
412
420
426
432
437
443
450
458MRC_API bool MR_SceneRootObject_addTag(MR_SceneRootObject *_this, const char *tag, const char *tag_end);
459
466MRC_API bool MR_SceneRootObject_removeTag(MR_SceneRootObject *_this, const char *tag, const char *tag_end);
467
472
473// return true if model of current object equals to model (the same) of other
478
479// return hash of model (or hash object pointer if object has no model)
483
484// returns this Object as shared_ptr
485// finds it among its parent's recognized children
490
496
501
505
509
512
515
522
526
530
533MRC_API void MR_SceneRoot_setScenePath(const char *scenePath, const char *scenePath_end);
534
538
542
546
547#ifdef __cplusplus
548} // extern "C"
549#endif
struct MR_ConstChildren MR_ConstChildren
Definition MRAddVisualPropertiesMixin.h:21
struct MR_ViewportMask MR_ViewportMask
Definition MRAddVisualPropertiesMixin.h:29
struct MR_std_shared_ptr_MR_Object MR_std_shared_ptr_MR_Object
Definition MRAddVisualPropertiesMixin.h:36
struct MR_std_set_std_string MR_std_set_std_string
Definition MRAddVisualPropertiesMixin.h:35
struct MR_ViewportProperty_MR_AffineXf3f MR_ViewportProperty_MR_AffineXf3f
Definition MRAddVisualPropertiesMixin.h:30
struct MR_ObjectChildrenHolder MR_ObjectChildrenHolder
Definition MRAddVisualPropertiesMixin.h:27
struct MR_std_string MR_std_string
Definition MRCtm.h:32
struct MR_Object MR_Object
Definition MRGltf.h:10
struct MR_std_vector_std_string MR_std_vector_std_string
Definition MRNesting3mfExport.h:17
struct MR_std_filesystem_path MR_std_filesystem_path
Definition MRPly.h:20
struct MR_std_shared_ptr_MR_SceneRootObject MR_std_shared_ptr_MR_SceneRootObject
Definition MRSceneLoad.h:18
MRC_API const MR_SceneRootObject * MR_SceneRootObject_DynamicDowncastFrom_MR_Object(const MR_Object *object)
MRC_API void MR_SceneRootObject_resetXf(MR_SceneRootObject *_this, const MR_ViewportId *id)
MRC_API bool MR_SceneRootObject_addChild(MR_SceneRootObject *_this, MR_PassBy child_pass_by, MR_std_shared_ptr_MR_Object *child, const bool *recognizedChild)
MRC_API const MR_ObjectChildrenHolder * MR_SceneRootObject_UpcastTo_MR_ObjectChildrenHolder(const MR_SceneRootObject *object)
MRC_API MR_SceneRootObject * MR_SceneRoot_get(void)
MRC_API MR_SceneRootObject * MR_SceneRootObject_MutableStaticDowncastFrom_MR_ObjectChildrenHolder(MR_ObjectChildrenHolder *object)
MRC_API void MR_SceneRootObject_setWorldXf(MR_SceneRootObject *_this, const MR_AffineXf3f *xf, const MR_ViewportId *id)
MRC_API MR_ViewportMask * MR_SceneRootObject_globalVisibilityMask(const MR_SceneRootObject *_this)
MRC_API void MR_SceneRootObject_setVisible(MR_SceneRootObject *_this, bool on, const MR_ViewportMask *viewportMask)
MRC_API const MR_ViewportProperty_MR_AffineXf3f * MR_SceneRootObject_xfsForAllViewports(const MR_SceneRootObject *_this)
MRC_API MR_ViewportMask * MR_SceneRootObject_visibilityMask(const MR_SceneRootObject *_this)
MRC_API const MR_std_string * MR_SceneRootObject_name(const MR_SceneRootObject *_this)
MRC_API MR_std_shared_ptr_MR_SceneRootObject * MR_createRootFormObject(MR_PassBy obj_pass_by, MR_std_shared_ptr_MR_Object *obj)
MRC_API MR_std_shared_ptr_const_MR_SceneRootObject * MR_SceneRoot_constGetSharedPtr(void)
MRC_API bool MR_SceneRootObject_isSelected(const MR_SceneRootObject *_this)
MRC_API void MR_SceneRootObject_Destroy(const MR_SceneRootObject *_this)
Destroys a heap-allocated instance of MR_SceneRootObject. Does nothing if the pointer is null.
MRC_API const MR_SceneRootObject * MR_SceneRootObject_OffsetPtr(const MR_SceneRootObject *ptr, ptrdiff_t i)
MRC_API const char * MR_SceneRootObject_RootName(void)
Generated from method MR::SceneRootObject::RootName.
MRC_API void MR_SceneRootObject_setAncillary(MR_SceneRootObject *_this, bool _1)
struct MR_std_shared_ptr_const_MR_SceneRootObject MR_std_shared_ptr_const_MR_SceneRootObject
Definition MRSceneRoot.h:25
MRC_API bool MR_SceneRootObject_addTag(MR_SceneRootObject *_this, const char *tag, const char *tag_end)
MRC_API const MR_SceneRootObject * MR_SceneRootObject_StaticDowncastFrom_MR_Object(const MR_Object *object)
MRC_API void MR_SceneRootObject_setXf(MR_SceneRootObject *_this, const MR_AffineXf3f *xf, const MR_ViewportId *id)
MRC_API void MR_SceneRootObject_setXfsForAllViewports(MR_SceneRootObject *_this, MR_PassBy xf_pass_by, MR_ViewportProperty_MR_AffineXf3f *xf)
MRC_API void MR_SceneRootObject_swap(MR_SceneRootObject *_this, MR_Object *other)
MRC_API bool MR_SceneRootObject_addChildBefore(MR_SceneRootObject *_this, MR_PassBy newChild_pass_by, MR_std_shared_ptr_MR_Object *newChild, const MR_std_shared_ptr_MR_Object *existingChild)
MRC_API bool MR_SceneRootObject_hasVisualRepresentation(const MR_SceneRootObject *_this)
MRC_API void MR_SceneRootObject_setParentLocked(MR_SceneRootObject *_this, bool lock)
MRC_API void MR_SceneRootObject_setVisibilityMask(MR_SceneRootObject *_this, const MR_ViewportMask *viewportMask)
MRC_API MR_SceneRootObject * MR_SceneRootObject_MutableDynamicDowncastFromOrFail_MR_Object(MR_Object *object)
MRC_API void MR_SceneRootObject_setLocked(MR_SceneRootObject *_this, bool on)
MRC_API MR_std_vector_std_string * MR_SceneRootObject_getInfoLines(const MR_SceneRootObject *_this)
MRC_API void MR_SceneRootObject_removeAllChildren(MR_SceneRootObject *_this)
MRC_API const MR_SceneRootObject * MR_SceneRootObject_DynamicDowncastFromOrFail_MR_Object(const MR_Object *object)
MRC_API MR_SceneRootObject * MR_SceneRootObject_DefaultConstructArray(size_t num_elems)
MRC_API MR_Box3f MR_SceneRootObject_getWorldBox(const MR_SceneRootObject *_this, const MR_ViewportId *_1)
MRC_API MR_SceneRoot * MR_SceneRoot_ConstructFromAnother(MR_PassBy _other_pass_by, MR_SceneRoot *_other)
MRC_API bool MR_SceneRootObject_removeTag(MR_SceneRootObject *_this, const char *tag, const char *tag_end)
MRC_API void MR_SceneRootObject_setGlobalVisibility(MR_SceneRootObject *_this, bool on, const MR_ViewportMask *viewportMask)
MRC_API MR_std_shared_ptr_MR_Object * MR_SceneRootObject_shallowCloneTree(const MR_SceneRootObject *_this)
MRC_API MR_SceneRootObject * MR_SceneRootObject_MutableDynamicDowncastFrom_MR_Object(MR_Object *object)
MRC_API MR_Box3f MR_SceneRootObject_getWorldTreeBox(const MR_SceneRootObject *_this, const MR_ViewportId *_1)
MRC_API MR_ObjectChildrenHolder * MR_SceneRootObject_MutableUpcastTo_MR_ObjectChildrenHolder(MR_SceneRootObject *object)
MRC_API const MR_std_filesystem_path * MR_SceneRoot_getScenePath(void)
MRC_API MR_std_shared_ptr_MR_SceneRootObject * MR_SceneRoot_getSharedPtr(void)
MRC_API void MR_SceneRootObject_applyScale(MR_SceneRootObject *_this, float scaleFactor)
MRC_API const MR_SceneRootObject * MR_SceneRootObject_StaticDowncastFrom_MR_ObjectChildrenHolder(const MR_ObjectChildrenHolder *object)
MRC_API const MR_SceneRootObject * MR_SceneRoot_constGet(void)
MRC_API MR_std_shared_ptr_MR_SceneRootObject * MR_SceneRootObject_cloneRoot(const MR_SceneRootObject *_this)
MRC_API void MR_SceneRoot_DestroyArray(const MR_SceneRoot *_this)
Destroys a heap-allocated array of MR_SceneRoot. Does nothing if the pointer is null.
MRC_API bool MR_SceneRootObject_sameModels(const MR_SceneRootObject *_this, const MR_Object *other)
MRC_API bool MR_SceneRootObject_isVisible(const MR_SceneRootObject *_this, const MR_ViewportMask *viewportMask)
MRC_API bool MR_SceneRootObject_select(MR_SceneRootObject *_this, bool _1)
MRC_API MR_std_string * MR_SceneRootObject_className(const MR_SceneRootObject *_this)
MRC_API bool MR_SceneRootObject_isAncillary(const MR_SceneRootObject *_this)
MRC_API MR_SceneRootObject * MR_SceneRootObject_DefaultConstruct(void)
struct MR_SceneRootObject MR_SceneRootObject
Definition MRSceneRoot.h:38
MRC_API MR_Object * MR_SceneRootObject_MutableUpcastTo_MR_Object(MR_SceneRootObject *object)
MRC_API void MR_SceneRootObject_sortChildren(MR_SceneRootObject *_this)
MRC_API size_t MR_SceneRootObject_heapBytes(const MR_SceneRootObject *_this)
MRC_API const char * MR_SceneRootObject_StaticClassNameInPlural(void)
Generated from method MR::SceneRootObject::StaticClassNameInPlural.
MRC_API bool MR_SceneRootObject_detachFromParent(MR_SceneRootObject *_this)
MRC_API MR_SceneRootObject * MR_SceneRootObject_MutableStaticDowncastFrom_MR_Object(MR_Object *object)
MRC_API MR_std_shared_ptr_MR_Object * MR_SceneRootObject_getSharedPtr(const MR_SceneRootObject *_this)
MRC_API MR_SceneRoot * MR_SceneRoot_OffsetMutablePtr(MR_SceneRoot *ptr, ptrdiff_t i)
MRC_API MR_std_string * MR_SceneRootObject_classNameInPlural(const MR_SceneRootObject *_this)
MRC_API MR_std_shared_ptr_MR_Object * MR_SceneRootObject_cloneTree(const MR_SceneRootObject *_this)
MRC_API MR_std_shared_ptr_MR_Object * MR_SceneRootObject_clone(const MR_SceneRootObject *_this)
MRC_API bool MR_SceneRootObject_isLocked(const MR_SceneRootObject *_this)
MRC_API void MR_SceneRootObject_DestroyArray(const MR_SceneRootObject *_this)
Destroys a heap-allocated array of MR_SceneRootObject. Does nothing if the pointer is null.
MRC_API bool MR_SceneRootObject_isAncestor(const MR_SceneRootObject *_this, const MR_Object *ancestor)
MRC_API const MR_AffineXf3f * MR_SceneRootObject_xf(const MR_SceneRootObject *_this, const MR_ViewportId *id, bool *isDef)
MRC_API MR_SceneRootObject * MR_SceneRootObject_ConstructFromAnother(MR_PassBy _other_pass_by, MR_SceneRootObject *_other)
MRC_API size_t MR_SceneRootObject_getModelHash(const MR_SceneRootObject *_this)
MRC_API bool MR_SceneRootObject_getRedrawFlag(const MR_SceneRootObject *_this, const MR_ViewportMask *_1)
struct MR_SceneRoot MR_SceneRoot
Definition MRSceneRoot.h:43
MRC_API bool MR_SceneRootObject_isGlobalAncillary(const MR_SceneRootObject *_this)
MRC_API MR_std_shared_ptr_MR_Object * MR_SceneRootObject_shallowClone(const MR_SceneRootObject *_this)
MRC_API const MR_SceneRoot * MR_SceneRoot_OffsetPtr(const MR_SceneRoot *ptr, ptrdiff_t i)
MRC_API void MR_SceneRoot_setScenePath(const char *scenePath, const char *scenePath_end)
MRC_API void MR_SceneRootObject_setName(MR_SceneRootObject *_this, const char *_1, const char *_1_end)
MRC_API void MR_SceneRoot_Destroy(const MR_SceneRoot *_this)
Destroys a heap-allocated instance of MR_SceneRoot. Does nothing if the pointer is null.
MRC_API MR_SceneRootObject * MR_SceneRootObject_OffsetMutablePtr(MR_SceneRootObject *ptr, ptrdiff_t i)
MRC_API const char * MR_SceneRootObject_StaticTypeName(void)
Generated from method MR::SceneRootObject::StaticTypeName.
MRC_API MR_SceneRootObject * MR_SceneRootObject_AssignFromAnother(MR_SceneRootObject *_this, MR_PassBy _other_pass_by, MR_SceneRootObject *_other)
MRC_API const MR_std_set_std_string * MR_SceneRootObject_tags(const MR_SceneRootObject *_this)
MRC_API bool MR_SceneRootObject_isParentLocked(const MR_SceneRootObject *_this)
MRC_API MR_AffineXf3f MR_SceneRootObject_worldXf(const MR_SceneRootObject *_this, const MR_ViewportId *id, bool *isDef)
MRC_API bool MR_SceneRootObject_hasModel(const MR_SceneRootObject *_this)
MRC_API bool MR_SceneRootObject_globalVisibility(const MR_SceneRootObject *_this, const MR_ViewportMask *viewportMask)
MRC_API const char * MR_SceneRootObject_StaticClassName(void)
Generated from method MR::SceneRootObject::StaticClassName.
MRC_API const char * MR_SceneRootObject_typeName(const MR_SceneRootObject *_this)
MRC_API MR_SceneRoot * MR_SceneRoot_AssignFromAnother(MR_SceneRoot *_this, MR_PassBy _other_pass_by, MR_SceneRoot *_other)
MRC_API const MR_Object * MR_SceneRootObject_UpcastTo_MR_Object(const MR_SceneRootObject *object)
MRC_API void MR_SceneRootObject_resetRedrawFlag(const MR_SceneRootObject *_this)
MRC_API MR_ConstChildren * MR_SceneRootObject_constChildren(const MR_SceneRootObject *_this)
MR_PassBy
Definition common.h:13
#define MRC_API
Definition include/MRCMisc/exports.h:11
Definition MRAffineXf.h:39
Definition MRBox.h:107
Definition MRViewportId.h:17