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
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15typedef struct MR_AnyVisualizeMaskEnum MR_AnyVisualizeMaskEnum; // Defined in `#include <MRCMesh/MRVisualObject.h>`.
16typedef struct MR_Color MR_Color; // Defined in `#include <MRCMesh/MRColor.h>`.
17typedef struct MR_FaceMap MR_FaceMap; // Defined in `#include <MRCMesh/MRVector.h>`.
18typedef struct MR_Object MR_Object; // Defined in `#include <MRCMesh/MRObject.h>`.
19typedef struct MR_ObjectChildrenHolder MR_ObjectChildrenHolder; // Defined in `#include <MRCMesh/MRObject.h>`.
20typedef struct MR_ObjectPoints MR_ObjectPoints; // Defined in `#include <MRCMesh/MRObjectPoints.h>`.
21typedef struct MR_PointCloudPart MR_PointCloudPart; // Defined in `#include <MRCMesh/MRPointCloudPart.h>`.
22typedef struct MR_VertBitSet MR_VertBitSet; // Defined in `#include <MRCMesh/MRBitSet.h>`.
23typedef struct MR_VertColors MR_VertColors; // Defined in `#include <MRCMesh/MRVector.h>`.
24typedef struct MR_VertMap MR_VertMap; // Defined in `#include <MRCMesh/MRVector.h>`.
25typedef struct MR_ViewportMask MR_ViewportMask; // Defined in `#include <MRCMesh/MRViewportId.h>`.
26typedef struct MR_ViewportProperty_MR_Color MR_ViewportProperty_MR_Color; // Defined in `#include <MRCMesh/MRViewportProperty.h>`.
27typedef struct MR_VisualObject MR_VisualObject; // Defined in `#include <MRCMesh/MRVisualObject.h>`.
28typedef struct MR_std_shared_ptr_MR_Object MR_std_shared_ptr_MR_Object; // Defined in `#include <MRCMisc/std_shared_ptr_MR_Object.h>`.
29typedef 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>`.
30typedef struct MR_std_string MR_std_string; // Defined in `#include <MRCMisc/std_string.h>`.
31typedef struct MR_std_vector_MR_ViewportMask MR_std_vector_MR_ViewportMask; // Defined in `#include <MRCMisc/std_vector_MR_ViewportMask.h>`.
32
33
39
52
57
62
66
71
74
77
81
84
88
91
95
98
103
107
112
116
123
129
133
136
139
144
147
151
155
159
163
168
174
179
184
188MRC_API void MR_ObjectPointsHolder_setDirtyFlags(MR_ObjectPointsHolder *_this, unsigned int mask, const bool *invalidateCaches);
189
195
200
206
212
219
226
231
235
240
246
251
257
265MRC_API void MR_ObjectPointsHolder_copyColors(MR_ObjectPointsHolder *_this, const MR_ObjectPointsHolder *src, const MR_VertMap *thisToSrc, const MR_FaceMap *thisToSrcFaces);
266
272
279
284
289
296
301
306
311
321
326
332
338
343
349
354
359
365
368// serialization falls back to the PLY format if given format support is available
369// NOTE: CTM format support is available in the MRIOExtras library; make sure to load it if you prefer CTM
373MRC_API void MR_setDefaultSerializePointsFormat(const char *newFormat, const char *newFormat_end);
374
375#ifdef __cplusplus
376} // extern "C"
377#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:23
struct MR_VertMap MR_VertMap
Definition MRBitSet.h:40
struct MR_FaceMap MR_FaceMap
Definition MRBitSet.h:26
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:32
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 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_setMaxRenderingPoints(MR_ObjectPointsHolder *_this, int val)
MR_PointsVisualizePropertyType
Definition MRObjectPointsHolder.h:35
@ MR_PointsVisualizePropertyType_SelectedVertices
Definition MRObjectPointsHolder.h:36
@ MR_PointsVisualizePropertyType__count
Definition MRObjectPointsHolder.h:37
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 void MR_ObjectPointsHolder_setDirtyFlags(MR_ObjectPointsHolder *_this, unsigned int mask, const bool *invalidateCaches)
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 void MR_ObjectPointsHolder_resetFrontColor(MR_ObjectPointsHolder *_this)
MRC_API MR_uint64_t MR_ObjectPointsHolder_heapBytes(const MR_ObjectPointsHolder *_this)
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 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)
MRC_API int MR_ObjectPointsHolder_getMaxRenderingPoints(const MR_ObjectPointsHolder *_this)
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 const int * MR_ObjectPointsHolder_Get_MaxRenderingPointsUnlimited(void)
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)
struct MR_std_shared_ptr_const_MR_PointCloud MR_std_shared_ptr_const_MR_PointCloud
Definition MRObjectPointsHolder.h:29
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 int * MR_ObjectPointsHolder_Get_MaxRenderingPointsDefault(void)
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 int MR_ObjectPointsHolder_getRenderDiscretization(const MR_ObjectPointsHolder *_this)
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:108
Generated from class MR::Color.
Definition MRColor.h:18
Definition MRViewportId.h:17