MeshLib C Docs
Loading...
Searching...
No Matches
MRObjectPointsHolder.h File Reference
#include <MRCMesh/MRBox.h>
#include <MRCMesh/MRViewportId.h>
#include <MRCMisc/common.h>
#include <MRCMisc/exports.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Typedefs

typedef struct MR_AnyVisualizeMaskEnum MR_AnyVisualizeMaskEnum
 
typedef struct MR_Color MR_Color
 
typedef struct MR_FaceMap MR_FaceMap
 
typedef struct MR_Object MR_Object
 
typedef struct MR_ObjectChildrenHolder MR_ObjectChildrenHolder
 
typedef struct MR_ObjectPoints MR_ObjectPoints
 
typedef struct MR_PointCloudPart MR_PointCloudPart
 
typedef struct MR_VertBitSet MR_VertBitSet
 
typedef struct MR_VertColors MR_VertColors
 
typedef struct MR_VertMap MR_VertMap
 
typedef struct MR_ViewportMask MR_ViewportMask
 
typedef struct MR_ViewportProperty_MR_Color MR_ViewportProperty_MR_Color
 
typedef struct MR_VisualObject MR_VisualObject
 
typedef struct MR_std_shared_ptr_MR_Object MR_std_shared_ptr_MR_Object
 
typedef struct MR_std_shared_ptr_const_MR_PointCloud MR_std_shared_ptr_const_MR_PointCloud
 
typedef struct MR_std_string MR_std_string
 
typedef struct MR_std_vector_MR_ViewportMask MR_std_vector_MR_ViewportMask
 
typedef int32_t MR_PointsVisualizePropertyType
 
typedef struct MR_ObjectPointsHolder MR_ObjectPointsHolder
 

Enumerations

enum  { MR_PointsVisualizePropertyType_SelectedVertices = 0 , MR_PointsVisualizePropertyType__count = 1 }
 

Functions

MRC_API const int32_t * MR_ObjectPointsHolder_Get_MaxRenderingPointsDefault (void)
 
MRC_API const int32_t * MR_ObjectPointsHolder_Get_MaxRenderingPointsUnlimited (void)
 
MRC_API MR_ObjectPointsHolderMR_ObjectPointsHolder_DefaultConstruct (void)
 
MRC_API MR_ObjectPointsHolderMR_ObjectPointsHolder_DefaultConstructArray (size_t num_elems)
 
MRC_API const MR_ObjectPointsHolderMR_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 pointer points to an array element.
 
MRC_API MR_ObjectPointsHolderMR_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 pointer points to an array element.
 
MRC_API const MR_ObjectMR_ObjectPointsHolder_UpcastTo_MR_Object (const MR_ObjectPointsHolder *object)
 
MRC_API MR_ObjectMR_ObjectPointsHolder_MutableUpcastTo_MR_Object (MR_ObjectPointsHolder *object)
 Upcasts an instance of MR::ObjectPointsHolder to its base class MR::Object.
 
MRC_API const MR_ObjectChildrenHolderMR_ObjectPointsHolder_UpcastTo_MR_ObjectChildrenHolder (const MR_ObjectPointsHolder *object)
 
MRC_API MR_ObjectChildrenHolderMR_ObjectPointsHolder_MutableUpcastTo_MR_ObjectChildrenHolder (MR_ObjectPointsHolder *object)
 Upcasts an instance of MR::ObjectPointsHolder to its base class MR::ObjectChildrenHolder.
 
MRC_API const MR_VisualObjectMR_ObjectPointsHolder_UpcastTo_MR_VisualObject (const MR_ObjectPointsHolder *object)
 
MRC_API MR_VisualObjectMR_ObjectPointsHolder_MutableUpcastTo_MR_VisualObject (MR_ObjectPointsHolder *object)
 Upcasts an instance of MR::ObjectPointsHolder to its base class MR::VisualObject.
 
MRC_API const MR_ObjectPointsMR_ObjectPointsHolder_StaticDowncastTo_MR_ObjectPoints (const MR_ObjectPointsHolder *object)
 
MRC_API MR_ObjectPointsMR_ObjectPointsHolder_MutableStaticDowncastTo_MR_ObjectPoints (MR_ObjectPointsHolder *object)
 
MRC_API const MR_ObjectPointsMR_ObjectPointsHolder_DynamicDowncastTo_MR_ObjectPoints (const MR_ObjectPointsHolder *object)
 
MRC_API MR_ObjectPointsMR_ObjectPointsHolder_MutableDynamicDowncastTo_MR_ObjectPoints (MR_ObjectPointsHolder *object)
 
MRC_API const MR_ObjectPointsMR_ObjectPointsHolder_DynamicDowncastToOrFail_MR_ObjectPoints (const MR_ObjectPointsHolder *object)
 
MRC_API MR_ObjectPointsMR_ObjectPointsHolder_MutableDynamicDowncastToOrFail_MR_ObjectPoints (MR_ObjectPointsHolder *object)
 
MRC_API MR_ObjectPointsHolderMR_ObjectPointsHolder_ConstructFromAnother (MR_PassBy _other_pass_by, MR_ObjectPointsHolder *_other)
 
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 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_ObjectPointsHolderMR_ObjectPointsHolder_AssignFromAnother (MR_ObjectPointsHolder *_this, MR_PassBy _other_pass_by, MR_ObjectPointsHolder *_other)
 
MRC_API const char * MR_ObjectPointsHolder_TypeName (void)
 Generated from a method of class MR::ObjectPointsHolder named TypeName.
 
MRC_API const char * MR_ObjectPointsHolder_typeName (const MR_ObjectPointsHolder *_this)
 
MRC_API void MR_ObjectPointsHolder_applyScale (MR_ObjectPointsHolder *_this, float scaleFactor)
 
MRC_API bool MR_ObjectPointsHolder_hasVisualRepresentation (const MR_ObjectPointsHolder *_this)
 
MRC_API bool MR_ObjectPointsHolder_hasModel (const MR_ObjectPointsHolder *_this)
 
MRC_API const MR_std_shared_ptr_const_MR_PointCloudMR_ObjectPointsHolder_pointCloud (const MR_ObjectPointsHolder *_this)
 
MRC_API MR_PointCloudPartMR_ObjectPointsHolder_pointCloudPart (const MR_ObjectPointsHolder *_this)
 
MRC_API MR_std_shared_ptr_MR_ObjectMR_ObjectPointsHolder_clone (const MR_ObjectPointsHolder *_this)
 
MRC_API MR_std_shared_ptr_MR_ObjectMR_ObjectPointsHolder_shallowClone (const MR_ObjectPointsHolder *_this)
 
MRC_API void MR_ObjectPointsHolder_setDirtyFlags (MR_ObjectPointsHolder *_this, uint32_t mask, const bool *invalidateCaches)
 
MRC_API const MR_VertBitSetMR_ObjectPointsHolder_getSelectedPoints (const MR_ObjectPointsHolder *_this)
 
MRC_API void MR_ObjectPointsHolder_selectPoints (MR_ObjectPointsHolder *_this, MR_PassBy newSelection_pass_by, MR_VertBitSet *newSelection)
 
MRC_API void MR_ObjectPointsHolder_updateSelectedPoints (MR_ObjectPointsHolder *_this, MR_VertBitSet *selection)
 
MRC_API const MR_VertBitSetMR_ObjectPointsHolder_getSelectedPointsOrAll (const MR_ObjectPointsHolder *_this)
 
MRC_API const MR_ColorMR_ObjectPointsHolder_getSelectedVerticesColor (const MR_ObjectPointsHolder *_this, const MR_ViewportId *id)
 
MRC_API void MR_ObjectPointsHolder_setSelectedVerticesColor (MR_ObjectPointsHolder *_this, const MR_Color *color, const MR_ViewportId *id)
 
MRC_API const MR_ViewportProperty_MR_ColorMR_ObjectPointsHolder_getSelectedVerticesColorsForAllViewports (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 bool MR_ObjectPointsHolder_supportsVisualizeProperty (const MR_ObjectPointsHolder *_this, const MR_AnyVisualizeMaskEnum *type)
 
MRC_API const MR_VertColorsMR_ObjectPointsHolder_getVertsColorMap (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_updateVertsColorMap (MR_ObjectPointsHolder *_this, MR_VertColors *vertsColorMap)
 
MRC_API void MR_ObjectPointsHolder_copyColors (MR_ObjectPointsHolder *_this, const MR_ObjectPointsHolder *src, const MR_VertMap *thisToSrc, const MR_FaceMap *thisToSrcFaces)
 
MRC_API MR_std_vector_MR_ViewportMaskMR_ObjectPointsHolder_getAllVisualizeProperties (const MR_ObjectPointsHolder *_this)
 
MRC_API const MR_ViewportMaskMR_ObjectPointsHolder_getVisualizePropertyMask (const MR_ObjectPointsHolder *_this, const MR_AnyVisualizeMaskEnum *type)
 
MRC_API void MR_ObjectPointsHolder_setPointSize (MR_ObjectPointsHolder *_this, float size)
 
MRC_API float MR_ObjectPointsHolder_getPointSize (const MR_ObjectPointsHolder *_this)
 
MRC_API MR_Box3f MR_ObjectPointsHolder_getWorldBox (const MR_ObjectPointsHolder *_this, const MR_ViewportId *_1)
 
MRC_API MR_uint64_t MR_ObjectPointsHolder_numValidPoints (const MR_ObjectPointsHolder *_this)
 
MRC_API MR_uint64_t MR_ObjectPointsHolder_numSelectedPoints (const MR_ObjectPointsHolder *_this)
 
MRC_API MR_uint64_t MR_ObjectPointsHolder_heapBytes (const MR_ObjectPointsHolder *_this)
 
MRC_API int32_t MR_ObjectPointsHolder_getRenderDiscretization (const MR_ObjectPointsHolder *_this)
 
MRC_API MR_uint64_t MR_ObjectPointsHolder_numRenderingValidPoints (const MR_ObjectPointsHolder *_this)
 
MRC_API int32_t MR_ObjectPointsHolder_getMaxRenderingPoints (const MR_ObjectPointsHolder *_this)
 
MRC_API void MR_ObjectPointsHolder_setMaxRenderingPoints (MR_ObjectPointsHolder *_this, int32_t val)
 
MRC_API const char * MR_ObjectPointsHolder_serializeFormat (const MR_ObjectPointsHolder *_this)
 
MRC_API void MR_ObjectPointsHolder_setSerializeFormat (MR_ObjectPointsHolder *_this, const char *newFormat)
 
MRC_API void MR_ObjectPointsHolder_resetFrontColor (MR_ObjectPointsHolder *_this)
 
MRC_API void MR_ObjectPointsHolder_resetColors (MR_ObjectPointsHolder *_this)
 
MRC_API const MR_std_stringMR_defaultSerializePointsFormat (void)
 
MRC_API void MR_setDefaultSerializePointsFormat (const char *newFormat, const char *newFormat_end)
 

Typedef Documentation

◆ MR_AnyVisualizeMaskEnum

◆ MR_Color

typedef struct MR_Color MR_Color

◆ MR_FaceMap

typedef struct MR_FaceMap MR_FaceMap

◆ MR_Object

typedef struct MR_Object MR_Object

◆ MR_ObjectChildrenHolder

◆ MR_ObjectPoints

◆ MR_ObjectPointsHolder

an object that stores a points Generated from class MR::ObjectPointsHolder. Base classes: Direct: (non-virtual) MR::VisualObject Indirect: (non-virtual) MR::Object MR::ObjectChildrenHolder Derived classes: Direct: (non-virtual) MR::ObjectPoints

◆ MR_PointCloudPart

◆ MR_PointsVisualizePropertyType

◆ MR_std_shared_ptr_const_MR_PointCloud

◆ MR_std_shared_ptr_MR_Object

◆ MR_std_string

typedef struct MR_std_string MR_std_string

◆ MR_std_vector_MR_ViewportMask

◆ MR_VertBitSet

typedef struct MR_VertBitSet MR_VertBitSet

◆ MR_VertColors

typedef struct MR_VertColors MR_VertColors

◆ MR_VertMap

typedef struct MR_VertMap MR_VertMap

◆ MR_ViewportMask

◆ MR_ViewportProperty_MR_Color

◆ MR_VisualObject

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MR_PointsVisualizePropertyType_SelectedVertices 
MR_PointsVisualizePropertyType__count 

Function Documentation

◆ MR_defaultSerializePointsFormat()

MRC_API const MR_std_string * MR_defaultSerializePointsFormat ( void )

returns file extension used to serialize ObjectPointsHolder by default (if not overridden in specific object), the string starts with '.' Generated from function MR::defaultSerializePointsFormat. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_ObjectPointsHolder_applyScale()

MRC_API void MR_ObjectPointsHolder_applyScale ( MR_ObjectPointsHolder * _this,
float scaleFactor )

Generated from a method of class MR::ObjectPointsHolder named applyScale. Parameter _this can not be null. It is a single object.

◆ MR_ObjectPointsHolder_AssignFromAnother()

MRC_API MR_ObjectPointsHolder * MR_ObjectPointsHolder_AssignFromAnother ( MR_ObjectPointsHolder * _this,
MR_PassBy _other_pass_by,
MR_ObjectPointsHolder * _other )

Generated from a method of class MR::ObjectPointsHolder named operator=. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_ObjectPointsHolder_clone()

MRC_API MR_std_shared_ptr_MR_Object * MR_ObjectPointsHolder_clone ( const MR_ObjectPointsHolder * _this)

Generated from a method of class MR::ObjectPointsHolder named clone. Parameter _this can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_std_shared_ptr_MR_Object_Destroy() to free it when you're done using it.

◆ MR_ObjectPointsHolder_ConstructFromAnother()

MRC_API MR_ObjectPointsHolder * MR_ObjectPointsHolder_ConstructFromAnother ( MR_PassBy _other_pass_by,
MR_ObjectPointsHolder * _other )

Generated from a constructor of class MR::ObjectPointsHolder. Never returns null. Returns an instance allocated on the heap! Must call MR_ObjectPointsHolder_Destroy() to free it when you're done using it.

◆ MR_ObjectPointsHolder_copyColors()

MRC_API void MR_ObjectPointsHolder_copyColors ( MR_ObjectPointsHolder * _this,
const MR_ObjectPointsHolder * src,
const MR_VertMap * thisToSrc,
const MR_FaceMap * thisToSrcFaces )

copies point colors from given source object

Parameters
srcusing given map
thisToSrcGenerated from a method of class MR::ObjectPointsHolder named copyColors. Parameter _this can not be null. It is a single object. Parameter src can not be null. It is a single object. Parameter thisToSrc can not be null. It is a single object. Parameter thisToSrcFaces is a single object. Parameter thisToSrcFaces has a default argument: {}, pass a null pointer to use it.

◆ MR_ObjectPointsHolder_DefaultConstruct()

MRC_API MR_ObjectPointsHolder * MR_ObjectPointsHolder_DefaultConstruct ( void )

Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_ObjectPointsHolder_Destroy() to free it when you're done using it.

◆ MR_ObjectPointsHolder_DefaultConstructArray()

MRC_API MR_ObjectPointsHolder * MR_ObjectPointsHolder_DefaultConstructArray ( size_t num_elems)

Constructs an array of empty (default-constructed) instances, of the specified size. Will never return null. The array must be destroyed using MR_ObjectPointsHolder_DestroyArray(). Use MR_ObjectPointsHolder_OffsetMutablePtr() and MR_ObjectPointsHolder_OffsetPtr() to access the array elements.

◆ MR_ObjectPointsHolder_Destroy()

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.

◆ MR_ObjectPointsHolder_DestroyArray()

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.

◆ MR_ObjectPointsHolder_DynamicDowncastTo_MR_ObjectPoints()

MRC_API const MR_ObjectPoints * MR_ObjectPointsHolder_DynamicDowncastTo_MR_ObjectPoints ( const MR_ObjectPointsHolder * object)

Downcasts an instance of MR::ObjectPointsHolder to a derived class MR::ObjectPoints. This is a dynamic downcast, it checks the type before casting. This version will return zero if the target type is wrong. This version is acting on mutable pointers.

◆ MR_ObjectPointsHolder_DynamicDowncastToOrFail_MR_ObjectPoints()

MRC_API const MR_ObjectPoints * MR_ObjectPointsHolder_DynamicDowncastToOrFail_MR_ObjectPoints ( const MR_ObjectPointsHolder * object)

Downcasts an instance of MR::ObjectPointsHolder to a derived class MR::ObjectPoints. This is a dynamic downcast, it checks the type before casting. This version will throw if the target type is wrong. This version is acting on mutable pointers. Parameter object can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_ObjectPointsHolder_Get_MaxRenderingPointsDefault()

MRC_API const int32_t * MR_ObjectPointsHolder_Get_MaxRenderingPointsDefault ( void )

default value for maximum rendered points number Returns a pointer to a member variable of class MR::ObjectPointsHolder named MaxRenderingPointsDefault. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_ObjectPointsHolder_Get_MaxRenderingPointsUnlimited()

MRC_API const int32_t * MR_ObjectPointsHolder_Get_MaxRenderingPointsUnlimited ( void )

recommended value for maximum rendered points number to disable discretization Returns a pointer to a member variable of class MR::ObjectPointsHolder named MaxRenderingPointsUnlimited. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_ObjectPointsHolder_getAllVisualizeProperties()

MRC_API MR_std_vector_MR_ViewportMask * MR_ObjectPointsHolder_getAllVisualizeProperties ( const MR_ObjectPointsHolder * _this)

get all visualize properties masks Generated from a method of class MR::ObjectPointsHolder named getAllVisualizeProperties. Parameter _this can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_std_vector_MR_ViewportMask_Destroy() to free it when you're done using it.

◆ MR_ObjectPointsHolder_getMaxRenderingPoints()

MRC_API int32_t MR_ObjectPointsHolder_getMaxRenderingPoints ( const MR_ObjectPointsHolder * _this)

returns maximal number of points that will be rendered if actual count of valid points is greater then the points will be sampled Generated from a method of class MR::ObjectPointsHolder named getMaxRenderingPoints. Parameter _this can not be null. It is a single object.

◆ MR_ObjectPointsHolder_getPointSize()

MRC_API float MR_ObjectPointsHolder_getPointSize ( const MR_ObjectPointsHolder * _this)

returns size of points on screen in pixels Generated from a method of class MR::ObjectPointsHolder named getPointSize. Parameter _this can not be null. It is a single object.

◆ MR_ObjectPointsHolder_getRenderDiscretization()

MRC_API int32_t MR_ObjectPointsHolder_getRenderDiscretization ( const MR_ObjectPointsHolder * _this)

returns rendering discretization display each renderDiscretization-th point only, starting from 0 index, total number is numRenderingValidPoints() \detail defined by maximum rendered points number as: numValidPoints() / getMaxRenderingPoints() (rounded up) updated when setting maxRenderingPoints or changing the cloud (setting DIRTY_FACE flag) Generated from a method of class MR::ObjectPointsHolder named getRenderDiscretization. Parameter _this can not be null. It is a single object.

◆ MR_ObjectPointsHolder_getSelectedPoints()

MRC_API const MR_VertBitSet * MR_ObjectPointsHolder_getSelectedPoints ( const MR_ObjectPointsHolder * _this)

gets current selected points Generated from a method of class MR::ObjectPointsHolder named getSelectedPoints. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_ObjectPointsHolder_getSelectedPointsOrAll()

MRC_API const MR_VertBitSet * MR_ObjectPointsHolder_getSelectedPointsOrAll ( const MR_ObjectPointsHolder * _this)

returns selected points if any, otherwise returns all valid points Generated from a method of class MR::ObjectPointsHolder named getSelectedPointsOrAll. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_ObjectPointsHolder_getSelectedVerticesColor()

MRC_API const MR_Color * MR_ObjectPointsHolder_getSelectedVerticesColor ( const MR_ObjectPointsHolder * _this,
const MR_ViewportId * id )

returns colors of selected vertices Generated from a method of class MR::ObjectPointsHolder named getSelectedVerticesColor. Parameter _this can not be null. It is a single object. Parameter id has a default argument: {}, pass a null pointer to use it. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_ObjectPointsHolder_getSelectedVerticesColorsForAllViewports()

MRC_API const MR_ViewportProperty_MR_Color * MR_ObjectPointsHolder_getSelectedVerticesColorsForAllViewports ( const MR_ObjectPointsHolder * _this)

Generated from a method of class MR::ObjectPointsHolder named getSelectedVerticesColorsForAllViewports. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_ObjectPointsHolder_getVertsColorMap()

MRC_API const MR_VertColors * MR_ObjectPointsHolder_getVertsColorMap ( const MR_ObjectPointsHolder * _this)

returns per-point colors of the object Generated from a method of class MR::ObjectPointsHolder named getVertsColorMap. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_ObjectPointsHolder_getVisualizePropertyMask()

MRC_API const MR_ViewportMask * MR_ObjectPointsHolder_getVisualizePropertyMask ( const MR_ObjectPointsHolder * _this,
const MR_AnyVisualizeMaskEnum * type )

returns mask of viewports where given property is set Generated from a method of class MR::ObjectPointsHolder named getVisualizePropertyMask. Parameter _this can not be null. It is a single object. Parameter type can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_ObjectPointsHolder_getWorldBox()

MRC_API MR_Box3f MR_ObjectPointsHolder_getWorldBox ( const MR_ObjectPointsHolder * _this,
const MR_ViewportId * _1 )

returns cached bounding box of this point object in world coordinates; if you need bounding box in local coordinates please call getBoundingBox() Generated from a method of class MR::ObjectPointsHolder named getWorldBox. Parameter _this can not be null. It is a single object. Parameter _1 has a default argument: {}, pass a null pointer to use it.

◆ MR_ObjectPointsHolder_hasModel()

MRC_API bool MR_ObjectPointsHolder_hasModel ( const MR_ObjectPointsHolder * _this)

Generated from a method of class MR::ObjectPointsHolder named hasModel. Parameter _this can not be null. It is a single object.

◆ MR_ObjectPointsHolder_hasVisualRepresentation()

MRC_API bool MR_ObjectPointsHolder_hasVisualRepresentation ( const MR_ObjectPointsHolder * _this)

Generated from a method of class MR::ObjectPointsHolder named hasVisualRepresentation. Parameter _this can not be null. It is a single object.

◆ MR_ObjectPointsHolder_heapBytes()

MRC_API MR_uint64_t MR_ObjectPointsHolder_heapBytes ( const MR_ObjectPointsHolder * _this)

returns the amount of memory this object occupies on heap Generated from a method of class MR::ObjectPointsHolder named heapBytes. Parameter _this can not be null. It is a single object.

◆ MR_ObjectPointsHolder_MutableDynamicDowncastTo_MR_ObjectPoints()

MRC_API MR_ObjectPoints * MR_ObjectPointsHolder_MutableDynamicDowncastTo_MR_ObjectPoints ( MR_ObjectPointsHolder * object)

Downcasts an instance of MR::ObjectPointsHolder to a derived class MR::ObjectPoints. This is a dynamic downcast, it checks the type before casting. This version will return zero if the target type is wrong.

◆ MR_ObjectPointsHolder_MutableDynamicDowncastToOrFail_MR_ObjectPoints()

MRC_API MR_ObjectPoints * MR_ObjectPointsHolder_MutableDynamicDowncastToOrFail_MR_ObjectPoints ( MR_ObjectPointsHolder * object)

Downcasts an instance of MR::ObjectPointsHolder to a derived class MR::ObjectPoints. This is a dynamic downcast, it checks the type before casting. This version will throw if the target type is wrong. Parameter object can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_ObjectPointsHolder_MutableStaticDowncastTo_MR_ObjectPoints()

MRC_API MR_ObjectPoints * MR_ObjectPointsHolder_MutableStaticDowncastTo_MR_ObjectPoints ( MR_ObjectPointsHolder * object)

Downcasts an instance of MR::ObjectPointsHolder to a derived class MR::ObjectPoints. This is a static downcast, it trusts the programmer that the target type is correct. Results in UB and returns an invalid pointer otherwise.

◆ MR_ObjectPointsHolder_MutableUpcastTo_MR_Object()

MRC_API MR_Object * MR_ObjectPointsHolder_MutableUpcastTo_MR_Object ( MR_ObjectPointsHolder * object)

Upcasts an instance of MR::ObjectPointsHolder to its base class MR::Object.

◆ MR_ObjectPointsHolder_MutableUpcastTo_MR_ObjectChildrenHolder()

MRC_API MR_ObjectChildrenHolder * MR_ObjectPointsHolder_MutableUpcastTo_MR_ObjectChildrenHolder ( MR_ObjectPointsHolder * object)

Upcasts an instance of MR::ObjectPointsHolder to its base class MR::ObjectChildrenHolder.

◆ MR_ObjectPointsHolder_MutableUpcastTo_MR_VisualObject()

MRC_API MR_VisualObject * MR_ObjectPointsHolder_MutableUpcastTo_MR_VisualObject ( MR_ObjectPointsHolder * object)

Upcasts an instance of MR::ObjectPointsHolder to its base class MR::VisualObject.

◆ MR_ObjectPointsHolder_numRenderingValidPoints()

MRC_API MR_uint64_t MR_ObjectPointsHolder_numRenderingValidPoints ( const MR_ObjectPointsHolder * _this)

returns count of valid points that will be rendered Generated from a method of class MR::ObjectPointsHolder named numRenderingValidPoints. Parameter _this can not be null. It is a single object.

◆ MR_ObjectPointsHolder_numSelectedPoints()

MRC_API MR_uint64_t MR_ObjectPointsHolder_numSelectedPoints ( const MR_ObjectPointsHolder * _this)

returns cached information about the number of selected points Generated from a method of class MR::ObjectPointsHolder named numSelectedPoints. Parameter _this can not be null. It is a single object.

◆ MR_ObjectPointsHolder_numValidPoints()

MRC_API MR_uint64_t MR_ObjectPointsHolder_numValidPoints ( const MR_ObjectPointsHolder * _this)

returns cached information about the number of valid points Generated from a method of class MR::ObjectPointsHolder named numValidPoints. Parameter _this can not be null. It is a single object.

◆ MR_ObjectPointsHolder_OffsetMutablePtr()

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 pointer points to an array element.

◆ MR_ObjectPointsHolder_OffsetPtr()

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 pointer points to an array element.

◆ MR_ObjectPointsHolder_pointCloud()

MRC_API const MR_std_shared_ptr_const_MR_PointCloud * MR_ObjectPointsHolder_pointCloud ( const MR_ObjectPointsHolder * _this)

Generated from a method of class MR::ObjectPointsHolder named pointCloud. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_ObjectPointsHolder_pointCloudPart()

MRC_API MR_PointCloudPart * MR_ObjectPointsHolder_pointCloudPart ( const MR_ObjectPointsHolder * _this)
Returns
the pair ( point cloud, selected points ) if any point is selected or full point cloud otherwise Generated from a method of class MR::ObjectPointsHolder named pointCloudPart. Parameter _this can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_PointCloudPart_Destroy() to free it when you're done using it.

◆ MR_ObjectPointsHolder_resetColors()

MRC_API void MR_ObjectPointsHolder_resetColors ( MR_ObjectPointsHolder * _this)

reset all object colors to their default values from the current theme Generated from a method of class MR::ObjectPointsHolder named resetColors. Parameter _this can not be null. It is a single object.

◆ MR_ObjectPointsHolder_resetFrontColor()

MRC_API void MR_ObjectPointsHolder_resetFrontColor ( MR_ObjectPointsHolder * _this)

reset basic object colors to their default values from the current theme Generated from a method of class MR::ObjectPointsHolder named resetFrontColor. Parameter _this can not be null. It is a single object.

◆ MR_ObjectPointsHolder_selectPoints()

MRC_API void MR_ObjectPointsHolder_selectPoints ( MR_ObjectPointsHolder * _this,
MR_PassBy newSelection_pass_by,
MR_VertBitSet * newSelection )

sets current selected points Generated from a method of class MR::ObjectPointsHolder named selectPoints. Parameter _this can not be null. It is a single object.

◆ MR_ObjectPointsHolder_serializeFormat()

MRC_API const char * MR_ObjectPointsHolder_serializeFormat ( const MR_ObjectPointsHolder * _this)

returns overriden file extension used to serialize point cloud inside this object, nullptr means defaultSerializePointsFormat() Generated from a method of class MR::ObjectPointsHolder named serializeFormat. Parameter _this can not be null. It is a single object.

◆ MR_ObjectPointsHolder_setDirtyFlags()

MRC_API void MR_ObjectPointsHolder_setDirtyFlags ( MR_ObjectPointsHolder * _this,
uint32_t mask,
const bool * invalidateCaches )

Generated from a method of class MR::ObjectPointsHolder named setDirtyFlags. Parameter _this can not be null. It is a single object. Parameter invalidateCaches has a default argument: true, pass a null pointer to use it.

◆ MR_ObjectPointsHolder_setMaxRenderingPoints()

MRC_API void MR_ObjectPointsHolder_setMaxRenderingPoints ( MR_ObjectPointsHolder * _this,
int32_t val )

sets maximal number of points that will be rendered

See also
getRenderDiscretization, MaxRenderingPointsDefault, MaxRenderingPointsUnlimited Generated from a method of class MR::ObjectPointsHolder named setMaxRenderingPoints. Parameter _this can not be null. It is a single object.

◆ MR_ObjectPointsHolder_setPointSize()

MRC_API void MR_ObjectPointsHolder_setPointSize ( MR_ObjectPointsHolder * _this,
float size )

sets size of points on screen in pixels Generated from a method of class MR::ObjectPointsHolder named setPointSize. Parameter _this can not be null. It is a single object.

◆ MR_ObjectPointsHolder_setSelectedVerticesColor()

MRC_API void MR_ObjectPointsHolder_setSelectedVerticesColor ( MR_ObjectPointsHolder * _this,
const MR_Color * color,
const MR_ViewportId * id )

sets colors of selected vertices Generated from a method of class MR::ObjectPointsHolder named setSelectedVerticesColor. Parameter _this can not be null. It is a single object. Parameter color can not be null. It is a single object. Parameter id has a default argument: {}, pass a null pointer to use it.

◆ MR_ObjectPointsHolder_setSelectedVerticesColorsForAllViewports()

MRC_API void MR_ObjectPointsHolder_setSelectedVerticesColorsForAllViewports ( MR_ObjectPointsHolder * _this,
MR_PassBy val_pass_by,
MR_ViewportProperty_MR_Color * val )

Generated from a method of class MR::ObjectPointsHolder named setSelectedVerticesColorsForAllViewports. Parameter _this can not be null. It is a single object.

◆ MR_ObjectPointsHolder_setSerializeFormat()

MRC_API void MR_ObjectPointsHolder_setSerializeFormat ( MR_ObjectPointsHolder * _this,
const char * newFormat )

overrides file extension used to serialize point cloud inside this object: must start from '.', nullptr means serialize in defaultSerializePointsFormat() Generated from a method of class MR::ObjectPointsHolder named setSerializeFormat. Parameter _this can not be null. It is a single object.

◆ MR_ObjectPointsHolder_setVertsColorMap()

MRC_API void MR_ObjectPointsHolder_setVertsColorMap ( MR_ObjectPointsHolder * _this,
MR_PassBy vertsColorMap_pass_by,
MR_VertColors * vertsColorMap )

sets per-point colors of the object Generated from a method of class MR::ObjectPointsHolder named setVertsColorMap. Parameter _this can not be null. It is a single object.

◆ MR_ObjectPointsHolder_shallowClone()

MRC_API MR_std_shared_ptr_MR_Object * MR_ObjectPointsHolder_shallowClone ( const MR_ObjectPointsHolder * _this)

Generated from a method of class MR::ObjectPointsHolder named shallowClone. Parameter _this can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_std_shared_ptr_MR_Object_Destroy() to free it when you're done using it.

◆ MR_ObjectPointsHolder_StaticDowncastTo_MR_ObjectPoints()

MRC_API const MR_ObjectPoints * MR_ObjectPointsHolder_StaticDowncastTo_MR_ObjectPoints ( const MR_ObjectPointsHolder * object)

Downcasts an instance of MR::ObjectPointsHolder to a derived class MR::ObjectPoints. This is a static downcast, it trusts the programmer that the target type is correct. Results in UB and returns an invalid pointer otherwise. This version is acting on mutable pointers.

◆ MR_ObjectPointsHolder_supportsVisualizeProperty()

MRC_API bool MR_ObjectPointsHolder_supportsVisualizeProperty ( const MR_ObjectPointsHolder * _this,
const MR_AnyVisualizeMaskEnum * type )

Generated from a method of class MR::ObjectPointsHolder named supportsVisualizeProperty. Parameter _this can not be null. It is a single object. Parameter type can not be null. It is a single object.

◆ MR_ObjectPointsHolder_TypeName()

MRC_API const char * MR_ObjectPointsHolder_TypeName ( void )

Generated from a method of class MR::ObjectPointsHolder named TypeName.

◆ MR_ObjectPointsHolder_typeName()

MRC_API const char * MR_ObjectPointsHolder_typeName ( const MR_ObjectPointsHolder * _this)

Generated from a method of class MR::ObjectPointsHolder named typeName. Parameter _this can not be null. It is a single object.

◆ MR_ObjectPointsHolder_UpcastTo_MR_Object()

MRC_API const MR_Object * MR_ObjectPointsHolder_UpcastTo_MR_Object ( const MR_ObjectPointsHolder * object)

Upcasts an instance of MR::ObjectPointsHolder to its base class MR::Object. This version is acting on mutable pointers.

◆ MR_ObjectPointsHolder_UpcastTo_MR_ObjectChildrenHolder()

MRC_API const MR_ObjectChildrenHolder * MR_ObjectPointsHolder_UpcastTo_MR_ObjectChildrenHolder ( const MR_ObjectPointsHolder * object)

Upcasts an instance of MR::ObjectPointsHolder to its base class MR::ObjectChildrenHolder. This version is acting on mutable pointers.

◆ MR_ObjectPointsHolder_UpcastTo_MR_VisualObject()

MRC_API const MR_VisualObject * MR_ObjectPointsHolder_UpcastTo_MR_VisualObject ( const MR_ObjectPointsHolder * object)

Upcasts an instance of MR::ObjectPointsHolder to its base class MR::VisualObject. This version is acting on mutable pointers.

◆ MR_ObjectPointsHolder_updateSelectedPoints()

MRC_API void MR_ObjectPointsHolder_updateSelectedPoints ( MR_ObjectPointsHolder * _this,
MR_VertBitSet * selection )

swaps current selected points with the argument Generated from a method of class MR::ObjectPointsHolder named updateSelectedPoints. Parameter _this can not be null. It is a single object. Parameter selection can not be null. It is a single object.

◆ MR_ObjectPointsHolder_updateVertsColorMap()

MRC_API void MR_ObjectPointsHolder_updateVertsColorMap ( MR_ObjectPointsHolder * _this,
MR_VertColors * vertsColorMap )

swaps per-point colors of the object with given argument Generated from a method of class MR::ObjectPointsHolder named updateVertsColorMap. Parameter _this can not be null. It is a single object. Parameter vertsColorMap can not be null. It is a single object.

◆ MR_setDefaultSerializePointsFormat()

MRC_API void MR_setDefaultSerializePointsFormat ( const char * newFormat,
const char * newFormat_end )

sets file extension used to serialize serialize ObjectPointsHolder by default (if not overridden in specific object), the string must start from '.'; Generated from function MR::setDefaultSerializePointsFormat. Parameter newFormat can not be null. If newFormat_end is null, then newFormat is assumed to be null-terminated.