MeshLib C Docs
Loading...
Searching...
No Matches
MRObjectPointsHolder.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMesh/MRBox.h>
5#include <MRCMisc/common.h>
6#include <MRCMisc/exports.h>
7
8#include <stdbool.h>
9#include <stddef.h>
10#include <stdint.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16typedef struct MR_AnyVisualizeMaskEnum MR_AnyVisualizeMaskEnum; // Defined in `#include <MRCMesh/MRVisualObject.h>`.
17typedef struct MR_Color MR_Color; // Defined in `#include <MRCMesh/MRColor.h>`.
18typedef struct MR_FaceMap MR_FaceMap; // Defined in `#include <MRCMesh/MRVector.h>`.
19typedef struct MR_Object MR_Object; // Defined in `#include <MRCMesh/MRObject.h>`.
20typedef struct MR_ObjectChildrenHolder MR_ObjectChildrenHolder; // Defined in `#include <MRCMesh/MRObject.h>`.
21typedef struct MR_ObjectPoints MR_ObjectPoints; // Defined in `#include <MRCMesh/MRObjectPoints.h>`.
22typedef struct MR_PointCloudPart MR_PointCloudPart; // Defined in `#include <MRCMesh/MRPointCloudPart.h>`.
23typedef struct MR_VertBitSet MR_VertBitSet; // Defined in `#include <MRCMesh/MRBitSet.h>`.
24typedef struct MR_VertColors MR_VertColors; // Defined in `#include <MRCMesh/MRVector.h>`.
25typedef struct MR_VertMap MR_VertMap; // Defined in `#include <MRCMesh/MRVector.h>`.
26typedef struct MR_ViewportMask MR_ViewportMask; // Defined in `#include <MRCMesh/MRViewportId.h>`.
27typedef struct MR_ViewportProperty_MR_Color MR_ViewportProperty_MR_Color; // Defined in `#include <MRCMesh/MRViewportProperty.h>`.
28typedef struct MR_VisualObject MR_VisualObject; // Defined in `#include <MRCMesh/MRVisualObject.h>`.
29typedef struct MR_std_shared_ptr_MR_Object MR_std_shared_ptr_MR_Object; // Defined in `#include <MRCMisc/std_shared_ptr_MR_Object.h>`.
30typedef struct MR_std_shared_ptr_const_MR_PointCloud MR_std_shared_ptr_const_MR_PointCloud; // Defined in `#include <MRCMisc/std_shared_ptr_const_MR_PointCloud.h>`.
31typedef struct MR_std_string MR_std_string; // Defined in `#include <MRCMisc/std_string.h>`.
32typedef struct MR_std_vector_MR_ViewportMask MR_std_vector_MR_ViewportMask; // Defined in `#include <MRCMisc/std_vector_MR_ViewportMask.h>`.
33
34
36enum // MR_PointsVisualizePropertyType
37{
40};
41
54
59
64
68
73
76
79
83
86
90
93
97
100
105
109
114
118
125
131
135
138
141
146
149
153
157
161
165
170
176
181
186
190MRC_API void MR_ObjectPointsHolder_setDirtyFlags(MR_ObjectPointsHolder *_this, uint32_t mask, const bool *invalidateCaches);
191
197
202
208
214
221
228
233
237
242
248
253
259
267MRC_API void MR_ObjectPointsHolder_copyColors(MR_ObjectPointsHolder *_this, const MR_ObjectPointsHolder *src, const MR_VertMap *thisToSrc, const MR_FaceMap *thisToSrcFaces);
268
274
281
286
291
298
303
308
313
323
328
334
340
345
351
356
361
367
370// serialization falls back to the PLY format if given format support is available
371// NOTE: CTM format support is available in the MRIOExtras library; make sure to load it if you prefer CTM
375MRC_API void MR_setDefaultSerializePointsFormat(const char *newFormat, const char *newFormat_end);
376
377#ifdef __cplusplus
378} // extern "C"
379#endif
struct MR_VertBitSet MR_VertBitSet
Definition MRAABBTree.h:15
struct MR_VisualObject MR_VisualObject
Definition MRAddVisualPropertiesMixin.h:21
struct MR_AnyVisualizeMaskEnum MR_AnyVisualizeMaskEnum
Definition MRAddVisualPropertiesMixin.h:12
struct MR_ViewportMask MR_ViewportMask
Definition MRAddVisualPropertiesMixin.h:20
struct MR_std_vector_MR_ViewportMask MR_std_vector_MR_ViewportMask
Definition MRAddVisualPropertiesMixin.h:22
struct MR_ObjectChildrenHolder MR_ObjectChildrenHolder
Definition MRAddVisualPropertiesMixin.h:18
struct MR_std_shared_ptr_MR_Object MR_std_shared_ptr_MR_Object
Definition MRAngleMeasurementObject.h:18
struct MR_PointCloudPart MR_PointCloudPart
Definition MRBestFit.h:24
struct MR_VertMap MR_VertMap
Definition MRBitSet.h:41
struct MR_FaceMap MR_FaceMap
Definition MRBitSet.h:27
struct MR_VertColors MR_VertColors
Definition MRE57.h:16
struct MR_std_string MR_std_string
Definition MRE57.h:22
struct MR_ViewportProperty_MR_Color MR_ViewportProperty_MR_Color
Definition MRFeatureObject.h:33
struct MR_Object MR_Object
Definition MRGltf.h:10
struct MR_ObjectPoints MR_ObjectPoints
Definition MRMeshOrPointsObject.h:15
MRC_API MR_PointCloudPart * MR_ObjectPointsHolder_pointCloudPart(const MR_ObjectPointsHolder *_this)
MRC_API MR_ObjectPoints * MR_ObjectPointsHolder_MutableDynamicDowncastTo_MR_ObjectPoints(MR_ObjectPointsHolder *object)
MRC_API float MR_ObjectPointsHolder_getPointSize(const MR_ObjectPointsHolder *_this)
MRC_API void MR_ObjectPointsHolder_setDirtyFlags(MR_ObjectPointsHolder *_this, uint32_t mask, const bool *invalidateCaches)
MRC_API const MR_std_shared_ptr_const_MR_PointCloud * MR_ObjectPointsHolder_pointCloud(const MR_ObjectPointsHolder *_this)
MRC_API void MR_ObjectPointsHolder_updateSelectedPoints(MR_ObjectPointsHolder *_this, MR_VertBitSet *selection)
MRC_API const MR_VertBitSet * MR_ObjectPointsHolder_getSelectedPoints(const MR_ObjectPointsHolder *_this)
MRC_API MR_Object * MR_ObjectPointsHolder_MutableUpcastTo_MR_Object(MR_ObjectPointsHolder *object)
Upcasts an instance of MR::ObjectPointsHolder to its base class MR::Object.
MRC_API const MR_VertColors * MR_ObjectPointsHolder_getVertsColorMap(const MR_ObjectPointsHolder *_this)
MRC_API MR_ObjectPointsHolder * MR_ObjectPointsHolder_DefaultConstructArray(size_t num_elems)
MRC_API void MR_ObjectPointsHolder_setSerializeFormat(MR_ObjectPointsHolder *_this, const char *newFormat)
MRC_API const MR_Color * MR_ObjectPointsHolder_getSelectedVerticesColor(const MR_ObjectPointsHolder *_this, const MR_ViewportId *id)
MRC_API MR_ObjectPointsHolder * MR_ObjectPointsHolder_OffsetMutablePtr(MR_ObjectPointsHolder *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API bool MR_ObjectPointsHolder_hasVisualRepresentation(const MR_ObjectPointsHolder *_this)
MRC_API MR_ObjectPointsHolder * MR_ObjectPointsHolder_DefaultConstruct(void)
MRC_API void MR_ObjectPointsHolder_copyColors(MR_ObjectPointsHolder *_this, const MR_ObjectPointsHolder *src, const MR_VertMap *thisToSrc, const MR_FaceMap *thisToSrcFaces)
MRC_API void MR_ObjectPointsHolder_updateVertsColorMap(MR_ObjectPointsHolder *_this, MR_VertColors *vertsColorMap)
MRC_API void MR_ObjectPointsHolder_DestroyArray(const MR_ObjectPointsHolder *_this)
Destroys a heap-allocated array of MR_ObjectPointsHolder. Does nothing if the pointer is null.
MRC_API MR_ObjectPointsHolder * MR_ObjectPointsHolder_ConstructFromAnother(MR_PassBy _other_pass_by, MR_ObjectPointsHolder *_other)
MRC_API void MR_ObjectPointsHolder_resetColors(MR_ObjectPointsHolder *_this)
MRC_API void MR_ObjectPointsHolder_selectPoints(MR_ObjectPointsHolder *_this, MR_PassBy newSelection_pass_by, MR_VertBitSet *newSelection)
MRC_API const MR_VertBitSet * MR_ObjectPointsHolder_getSelectedPointsOrAll(const MR_ObjectPointsHolder *_this)
MRC_API void MR_ObjectPointsHolder_setVertsColorMap(MR_ObjectPointsHolder *_this, MR_PassBy vertsColorMap_pass_by, MR_VertColors *vertsColorMap)
MRC_API const MR_ObjectPointsHolder * MR_ObjectPointsHolder_OffsetPtr(const MR_ObjectPointsHolder *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API MR_ObjectPoints * MR_ObjectPointsHolder_MutableStaticDowncastTo_MR_ObjectPoints(MR_ObjectPointsHolder *object)
MRC_API const char * MR_ObjectPointsHolder_TypeName(void)
Generated from a method of class MR::ObjectPointsHolder named TypeName.
MRC_API MR_uint64_t MR_ObjectPointsHolder_numSelectedPoints(const MR_ObjectPointsHolder *_this)
MRC_API MR_uint64_t MR_ObjectPointsHolder_numValidPoints(const MR_ObjectPointsHolder *_this)
MRC_API const char * MR_ObjectPointsHolder_serializeFormat(const MR_ObjectPointsHolder *_this)
MRC_API MR_uint64_t MR_ObjectPointsHolder_numRenderingValidPoints(const MR_ObjectPointsHolder *_this)
MRC_API void MR_setDefaultSerializePointsFormat(const char *newFormat, const char *newFormat_end)
MRC_API int32_t MR_ObjectPointsHolder_getRenderDiscretization(const MR_ObjectPointsHolder *_this)
MRC_API void MR_ObjectPointsHolder_resetFrontColor(MR_ObjectPointsHolder *_this)
MRC_API MR_uint64_t MR_ObjectPointsHolder_heapBytes(const MR_ObjectPointsHolder *_this)
@ MR_PointsVisualizePropertyType_SelectedVertices
Definition MRObjectPointsHolder.h:38
@ MR_PointsVisualizePropertyType__count
Definition MRObjectPointsHolder.h:39
MRC_API const MR_ViewportMask * MR_ObjectPointsHolder_getVisualizePropertyMask(const MR_ObjectPointsHolder *_this, const MR_AnyVisualizeMaskEnum *type)
MRC_API void MR_ObjectPointsHolder_applyScale(MR_ObjectPointsHolder *_this, float scaleFactor)
MRC_API int32_t MR_ObjectPointsHolder_getMaxRenderingPoints(const MR_ObjectPointsHolder *_this)
MRC_API bool MR_ObjectPointsHolder_supportsVisualizeProperty(const MR_ObjectPointsHolder *_this, const MR_AnyVisualizeMaskEnum *type)
MRC_API void MR_ObjectPointsHolder_Destroy(const MR_ObjectPointsHolder *_this)
Destroys a heap-allocated instance of MR_ObjectPointsHolder. Does nothing if the pointer is null.
MRC_API const MR_ViewportProperty_MR_Color * MR_ObjectPointsHolder_getSelectedVerticesColorsForAllViewports(const MR_ObjectPointsHolder *_this)
MRC_API bool MR_ObjectPointsHolder_hasModel(const MR_ObjectPointsHolder *_this)
MRC_API const MR_Object * MR_ObjectPointsHolder_UpcastTo_MR_Object(const MR_ObjectPointsHolder *object)
MRC_API const MR_ObjectPoints * MR_ObjectPointsHolder_DynamicDowncastToOrFail_MR_ObjectPoints(const MR_ObjectPointsHolder *object)
int32_t MR_PointsVisualizePropertyType
Definition MRObjectPointsHolder.h:35
MRC_API void MR_ObjectPointsHolder_setMaxRenderingPoints(MR_ObjectPointsHolder *_this, int32_t val)
MRC_API MR_ObjectChildrenHolder * MR_ObjectPointsHolder_MutableUpcastTo_MR_ObjectChildrenHolder(MR_ObjectPointsHolder *object)
Upcasts an instance of MR::ObjectPointsHolder to its base class MR::ObjectChildrenHolder.
MRC_API MR_VisualObject * MR_ObjectPointsHolder_MutableUpcastTo_MR_VisualObject(MR_ObjectPointsHolder *object)
Upcasts an instance of MR::ObjectPointsHolder to its base class MR::VisualObject.
MRC_API const MR_ObjectPoints * MR_ObjectPointsHolder_DynamicDowncastTo_MR_ObjectPoints(const MR_ObjectPointsHolder *object)
MRC_API MR_ObjectPointsHolder * MR_ObjectPointsHolder_AssignFromAnother(MR_ObjectPointsHolder *_this, MR_PassBy _other_pass_by, MR_ObjectPointsHolder *_other)
MRC_API const MR_std_string * MR_defaultSerializePointsFormat(void)
MRC_API MR_ObjectPoints * MR_ObjectPointsHolder_MutableDynamicDowncastToOrFail_MR_ObjectPoints(MR_ObjectPointsHolder *object)
MRC_API void MR_ObjectPointsHolder_setSelectedVerticesColor(MR_ObjectPointsHolder *_this, const MR_Color *color, const MR_ViewportId *id)
MRC_API const MR_ObjectPoints * MR_ObjectPointsHolder_StaticDowncastTo_MR_ObjectPoints(const MR_ObjectPointsHolder *object)
MRC_API const int32_t * MR_ObjectPointsHolder_Get_MaxRenderingPointsDefault(void)
struct MR_std_shared_ptr_const_MR_PointCloud MR_std_shared_ptr_const_MR_PointCloud
Definition MRObjectPointsHolder.h:30
MRC_API MR_std_shared_ptr_MR_Object * MR_ObjectPointsHolder_clone(const MR_ObjectPointsHolder *_this)
MRC_API MR_Box3f MR_ObjectPointsHolder_getWorldBox(const MR_ObjectPointsHolder *_this, const MR_ViewportId *_1)
MRC_API MR_std_vector_MR_ViewportMask * MR_ObjectPointsHolder_getAllVisualizeProperties(const MR_ObjectPointsHolder *_this)
MRC_API const MR_ObjectChildrenHolder * MR_ObjectPointsHolder_UpcastTo_MR_ObjectChildrenHolder(const MR_ObjectPointsHolder *object)
MRC_API const char * MR_ObjectPointsHolder_typeName(const MR_ObjectPointsHolder *_this)
MRC_API const int32_t * MR_ObjectPointsHolder_Get_MaxRenderingPointsUnlimited(void)
MRC_API void MR_ObjectPointsHolder_setSelectedVerticesColorsForAllViewports(MR_ObjectPointsHolder *_this, MR_PassBy val_pass_by, MR_ViewportProperty_MR_Color *val)
MRC_API const MR_VisualObject * MR_ObjectPointsHolder_UpcastTo_MR_VisualObject(const MR_ObjectPointsHolder *object)
MRC_API MR_std_shared_ptr_MR_Object * MR_ObjectPointsHolder_shallowClone(const MR_ObjectPointsHolder *_this)
MRC_API void MR_ObjectPointsHolder_setPointSize(MR_ObjectPointsHolder *_this, float size)
struct MR_ObjectPointsHolder MR_ObjectPointsHolder
Definition MRObject.h:35
MR_PassBy
Definition common.h:19
uint64_t MR_uint64_t
Definition common.h:14
#define MRC_API
Definition exports.h:11
const VoxelBitSet & selection() const
size_t size() const
Definition MRBox.h:109
Generated from class MR::Color.
Definition MRColor.h:19
Definition MRViewportId.h:18