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_Object MR_Object; // Defined in `#include <MRCMesh/MRObject.h>`.
17typedef struct MR_ObjectChildrenHolder MR_ObjectChildrenHolder; // Defined in `#include <MRCMesh/MRObject.h>`.
18typedef struct MR_ViewportMask MR_ViewportMask; // Defined in `#include <MRCMesh/MRViewportId.h>`.
19typedef struct MR_ViewportProperty_MR_AffineXf3f MR_ViewportProperty_MR_AffineXf3f; // Defined in `#include <MRCMesh/MRViewportProperty.h>`.
20typedef struct MR_std_filesystem_path MR_std_filesystem_path; // Defined in `#include <MRCMisc/std_filesystem_path.h>`.
21typedef struct MR_std_set_std_string MR_std_set_std_string; // Defined in `#include <MRCMisc/std_set_std_string.h>`.
22typedef struct MR_std_shared_ptr_MR_Object MR_std_shared_ptr_MR_Object; // Defined in `#include <MRCMisc/std_shared_ptr_MR_Object.h>`.
23typedef struct MR_std_shared_ptr_MR_SceneRootObject MR_std_shared_ptr_MR_SceneRootObject; // Defined in `#include <MRCMisc/std_shared_ptr_MR_SceneRootObject.h>`.
24typedef 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>`.
25typedef struct MR_std_string MR_std_string; // Defined in `#include <MRCMisc/std_string.h>`.
26typedef struct MR_std_vector_std_string MR_std_vector_std_string; // Defined in `#include <MRCMisc/std_vector_std_string.h>`.
27
28
38
43
47
52
56
60
64
67
71
74
79
82
85
92
95
99
102
107
110
115
118
122
126
131MRC_API void MR_SceneRootObject_setName(MR_SceneRootObject *_this, const char *_1, const char *_1_end);
132
137
143
148
157
163
169
175
180
188
194
199
205
212
219
224
228
234
238
243
249
257MRC_API bool MR_SceneRootObject_addChild(MR_SceneRootObject *_this, MR_PassBy child_pass_by, MR_std_shared_ptr_MR_Object *child, const bool *recognizedChild);
258
266
271
276
280
284
289
296
303
309
315
321
325
331
338
345
351
359
365
372
377
383
390
398MRC_API bool MR_SceneRootObject_addTag(MR_SceneRootObject *_this, const char *tag, const char *tag_end);
399
406MRC_API bool MR_SceneRootObject_removeTag(MR_SceneRootObject *_this, const char *tag, const char *tag_end);
407
412
413// return true if model of current object equals to model (the same) of other
418
419// return hash of model (or hash object pointer if object has no model)
423
424// returns this Object as shared_ptr
425// finds it among its parent's recognized children
430
436
441
445
449
452
455
462
466
470
473MRC_API void MR_SceneRoot_setScenePath(const char *scenePath, const char *scenePath_end);
474
478
482
486
487#ifdef __cplusplus
488} // extern "C"
489#endif
struct MR_ViewportMask MR_ViewportMask
Definition MRAddVisualPropertiesMixin.h:32
struct MR_std_shared_ptr_MR_Object MR_std_shared_ptr_MR_Object
Definition MRAddVisualPropertiesMixin.h:39
struct MR_std_set_std_string MR_std_set_std_string
Definition MRAddVisualPropertiesMixin.h:38
struct MR_ViewportProperty_MR_AffineXf3f MR_ViewportProperty_MR_AffineXf3f
Definition MRAddVisualPropertiesMixin.h:33
struct MR_ObjectChildrenHolder MR_ObjectChildrenHolder
Definition MRAddVisualPropertiesMixin.h:29
struct MR_std_string MR_std_string
Definition MRCtm.h:32
struct MR_Object MR_Object
Definition MRGltf.h:10
struct MR_SceneRootObject MR_SceneRootObject
Definition MRObject.h:41
struct MR_std_vector_std_string MR_std_vector_std_string
Definition MRPdf.h:29
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 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 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:24
MRC_API bool MR_SceneRootObject_addTag(MR_SceneRootObject *_this, const char *tag, const char *tag_end)
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 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 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_Box3f MR_SceneRootObject_getWorldTreeBox(const MR_SceneRootObject *_this, const MR_ViewportId *_1)
MRC_API MR_ObjectChildrenHolder * MR_SceneRootObject_MutableUpcastTo_MR_ObjectChildrenHolder(MR_SceneRootObject *object)
Upcasts an instance of MR::SceneRootObject to its base class MR::ObjectChildrenHolder.
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_SceneRoot_constGet(void)
MRC_API MR_uint64_t MR_SceneRootObject_getModelHash(const MR_SceneRootObject *_this)
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)
MRC_API MR_Object * MR_SceneRootObject_MutableUpcastTo_MR_Object(MR_SceneRootObject *object)
Upcasts an instance of MR::SceneRootObject to its base class MR::Object.
MRC_API void MR_SceneRootObject_sortChildren(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_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 bool MR_SceneRootObject_getRedrawFlag(const MR_SceneRootObject *_this, const MR_ViewportMask *_1)
struct MR_SceneRoot MR_SceneRoot
Definition MRSceneRoot.h:42
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 MR_uint64_t MR_SceneRootObject_heapBytes(const MR_SceneRootObject *_this)
MRC_API void MR_SceneRootObject_resetRedrawFlag(const MR_SceneRootObject *_this)
MR_PassBy
Definition common.h:23
uint64_t MR_uint64_t
Definition common.h:18
#define MRC_API
Definition exports.h:11
Definition MRAffineXf.h:39
Definition MRBox.h:110
Definition MRViewportId.h:17