MeshLib C Docs
Loading...
Searching...
No Matches
MRObjectsAccess.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMisc/common.h>
4#include <MRCMisc/exports.h>
5
6#include <stdbool.h>
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12typedef struct MR_Object MR_Object; // Defined in `#include <MRCMesh/MRObject.h>`.
13typedef struct MR_std_shared_ptr_MR_Object MR_std_shared_ptr_MR_Object; // Defined in `#include <MRCMisc/std_shared_ptr_MR_Object.h>`.
14typedef struct MR_std_vector_std_shared_ptr_MR_Object MR_std_vector_std_shared_ptr_MR_Object; // Defined in `#include <MRCMisc/std_vector_std_shared_ptr_MR_Object.h>`.
15
16
30
36
44
51
59
65
71MRC_API bool MR_objectHasSelectableChildren(const MR_Object *object, const bool *recurse);
72
73#ifdef __cplusplus
74} // extern "C"
75#endif
struct MR_std_shared_ptr_MR_Object MR_std_shared_ptr_MR_Object
Definition MRAngleMeasurementObject.h:18
struct MR_Object MR_Object
Definition MRGltf.h:10
struct MR_std_vector_std_shared_ptr_MR_Object MR_std_vector_std_shared_ptr_MR_Object
Definition MRHeapBytes.h:17
MRC_API bool MR_objectHasSelectableChildren(const MR_Object *object, const bool *recurse)
MR_ObjectSelectivityType
Definition MRObjectsAccess.h:18
@ MR_ObjectSelectivityType_Selected
object itself is selected and all its ancestors are selectable
Definition MRObjectsAccess.h:24
@ MR_ObjectSelectivityType_LocalSelected
object itself is selected
Definition MRObjectsAccess.h:26
@ MR_ObjectSelectivityType_Any
any object
Definition MRObjectsAccess.h:28
@ MR_ObjectSelectivityType_LocalSelectable
object itself is selectable
Definition MRObjectsAccess.h:22
@ MR_ObjectSelectivityType_Selectable
object itself and all its ancestors are selectable
Definition MRObjectsAccess.h:20
MRC_API MR_std_vector_std_shared_ptr_MR_Object * MR_getTopmostVisibleObjects(MR_Object *root, const MR_ObjectSelectivityType *type)
MRC_API MR_std_shared_ptr_MR_Object * MR_asSelectivityType(MR_PassBy obj_pass_by, MR_std_shared_ptr_MR_Object *obj, const MR_ObjectSelectivityType *type)
MRC_API MR_std_shared_ptr_MR_Object * MR_getDepthFirstObject(MR_Object *root, const MR_ObjectSelectivityType *type)
MRC_API MR_std_vector_std_shared_ptr_MR_Object * MR_getTopmostObjects(MR_Object *root, const MR_ObjectSelectivityType *type, const bool *visibilityCheck)
MRC_API MR_std_vector_std_shared_ptr_MR_Object * MR_getAllObjectsInTree(MR_Object *root, const MR_ObjectSelectivityType *type)
MR_PassBy
Definition common.h:19
#define MRC_API
Definition exports.h:11