MeshLib C Docs
Loading...
Searching...
No Matches
MRObjectPoints.h File Reference
#include <MRCMesh/MRMeshFwd.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_Object MR_Object
 
typedef struct MR_ObjectChildrenHolder MR_ObjectChildrenHolder
 
typedef struct MR_ObjectMesh MR_ObjectMesh
 
typedef struct MR_ObjectPointsHolder MR_ObjectPointsHolder
 
typedef struct MR_VertBitSet MR_VertBitSet
 
typedef struct MR_VisualObject MR_VisualObject
 
typedef struct MR_std_function_bool_from_float MR_std_function_bool_from_float
 
typedef struct MR_std_shared_ptr_MR_Object MR_std_shared_ptr_MR_Object
 
typedef struct MR_std_shared_ptr_MR_ObjectPoints MR_std_shared_ptr_MR_ObjectPoints
 
typedef struct MR_std_shared_ptr_MR_PointCloud MR_std_shared_ptr_MR_PointCloud
 
typedef struct MR_std_string MR_std_string
 
typedef struct MR_std_vector_std_shared_ptr_MR_ObjectPoints MR_std_vector_std_shared_ptr_MR_ObjectPoints
 
typedef struct MR_std_vector_std_string MR_std_vector_std_string
 
typedef struct MR_ObjectPoints MR_ObjectPoints
 

Functions

MRC_API MR_ObjectPointsMR_ObjectPoints_DefaultConstruct (void)
 
MRC_API MR_ObjectPointsMR_ObjectPoints_DefaultConstructArray (size_t num_elems)
 
MRC_API const MR_ObjectPointsMR_ObjectPoints_OffsetPtr (const MR_ObjectPoints *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_ObjectPointsMR_ObjectPoints_OffsetMutablePtr (MR_ObjectPoints *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_ObjectPoints_UpcastTo_MR_Object (const MR_ObjectPoints *object)
 
MRC_API MR_ObjectMR_ObjectPoints_MutableUpcastTo_MR_Object (MR_ObjectPoints *object)
 Upcasts an instance of MR::ObjectPoints to its base class MR::Object.
 
MRC_API const MR_ObjectChildrenHolderMR_ObjectPoints_UpcastTo_MR_ObjectChildrenHolder (const MR_ObjectPoints *object)
 
MRC_API MR_ObjectChildrenHolderMR_ObjectPoints_MutableUpcastTo_MR_ObjectChildrenHolder (MR_ObjectPoints *object)
 Upcasts an instance of MR::ObjectPoints to its base class MR::ObjectChildrenHolder.
 
MRC_API const MR_ObjectPointsHolderMR_ObjectPoints_UpcastTo_MR_ObjectPointsHolder (const MR_ObjectPoints *object)
 
MRC_API MR_ObjectPointsHolderMR_ObjectPoints_MutableUpcastTo_MR_ObjectPointsHolder (MR_ObjectPoints *object)
 Upcasts an instance of MR::ObjectPoints to its base class MR::ObjectPointsHolder.
 
MRC_API const MR_VisualObjectMR_ObjectPoints_UpcastTo_MR_VisualObject (const MR_ObjectPoints *object)
 
MRC_API MR_VisualObjectMR_ObjectPoints_MutableUpcastTo_MR_VisualObject (MR_ObjectPoints *object)
 Upcasts an instance of MR::ObjectPoints to its base class MR::VisualObject.
 
MRC_API MR_ObjectPointsMR_ObjectPoints_ConstructFromAnother (MR_PassBy _other_pass_by, MR_ObjectPoints *_other)
 
MRC_API MR_ObjectPointsMR_ObjectPoints_Construct (const MR_ObjectMesh *objMesh, const bool *saveNormals)
 
MRC_API void MR_ObjectPoints_Destroy (const MR_ObjectPoints *_this)
 Destroys a heap-allocated instance of MR_ObjectPoints. Does nothing if the pointer is null.
 
MRC_API void MR_ObjectPoints_DestroyArray (const MR_ObjectPoints *_this)
 Destroys a heap-allocated array of MR_ObjectPoints. Does nothing if the pointer is null.
 
MRC_API MR_ObjectPointsMR_ObjectPoints_AssignFromAnother (MR_ObjectPoints *_this, MR_PassBy _other_pass_by, MR_ObjectPoints *_other)
 
MRC_API const char * MR_ObjectPoints_TypeName (void)
 Generated from a method of class MR::ObjectPoints named TypeName.
 
MRC_API const char * MR_ObjectPoints_typeName (const MR_ObjectPoints *_this)
 
MRC_API const MR_std_shared_ptr_MR_PointCloudMR_ObjectPoints_varPointCloud (MR_ObjectPoints *_this)
 
MRC_API MR_std_shared_ptr_MR_ObjectMR_ObjectPoints_clone (const MR_ObjectPoints *_this)
 
MRC_API MR_std_shared_ptr_MR_ObjectMR_ObjectPoints_shallowClone (const MR_ObjectPoints *_this)
 
MRC_API void MR_ObjectPoints_setPointCloud (MR_ObjectPoints *_this, const MR_std_shared_ptr_MR_PointCloud *pointCloud)
 
MRC_API void MR_ObjectPoints_swapPointCloud (MR_ObjectPoints *_this, MR_std_shared_ptr_MR_PointCloud *points)
 
MRC_API MR_std_vector_std_stringMR_ObjectPoints_getInfoLines (const MR_ObjectPoints *_this)
 
MRC_API MR_std_stringMR_ObjectPoints_getClassName (const MR_ObjectPoints *_this)
 
MRC_API MR_std_stringMR_ObjectPoints_getClassNameInPlural (const MR_ObjectPoints *_this)
 
MRC_API void MR_ObjectPoints_setDirtyFlags (MR_ObjectPoints *_this, uint32_t mask, const bool *invalidateCaches)
 
MRC_API MR_std_shared_ptr_MR_ObjectPointsMR_merge_std_vector_std_shared_ptr_MR_ObjectPoints (const MR_std_vector_std_shared_ptr_MR_ObjectPoints *objsPoints)
 
MRC_API MR_std_shared_ptr_MR_ObjectPointsMR_cloneRegion_2_std_shared_ptr_MR_ObjectPoints (const MR_std_shared_ptr_MR_ObjectPoints *objPoints, const MR_VertBitSet *region)
 
MRC_API MR_std_shared_ptr_MR_ObjectPointsMR_pack (const MR_ObjectPoints *pts, MR_Reorder reorder, MR_VertBitSet *newValidVerts, const MR_std_function_bool_from_float *cb)
 

Typedef Documentation

◆ MR_Object

typedef struct MR_Object MR_Object

◆ MR_ObjectChildrenHolder

◆ MR_ObjectMesh

typedef struct MR_ObjectMesh MR_ObjectMesh

◆ MR_ObjectPoints

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

◆ MR_ObjectPointsHolder

◆ MR_std_function_bool_from_float

◆ MR_std_shared_ptr_MR_Object

◆ MR_std_shared_ptr_MR_ObjectPoints

◆ MR_std_shared_ptr_MR_PointCloud

◆ MR_std_string

typedef struct MR_std_string MR_std_string

◆ MR_std_vector_std_shared_ptr_MR_ObjectPoints

◆ MR_std_vector_std_string

◆ MR_VertBitSet

typedef struct MR_VertBitSet MR_VertBitSet

◆ MR_VisualObject

Function Documentation

◆ MR_cloneRegion_2_std_shared_ptr_MR_ObjectPoints()

MRC_API MR_std_shared_ptr_MR_ObjectPoints * MR_cloneRegion_2_std_shared_ptr_MR_ObjectPoints ( const MR_std_shared_ptr_MR_ObjectPoints * objPoints,
const MR_VertBitSet * region )

constructs new ObjectPoints containing the region of data from input object does not copy selection Generated from function MR::cloneRegion. Parameter objPoints can not be null. It is a single object. Parameter region 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_ObjectPoints_Destroy() to free it when you're done using it.

◆ MR_merge_std_vector_std_shared_ptr_MR_ObjectPoints()

MRC_API MR_std_shared_ptr_MR_ObjectPoints * MR_merge_std_vector_std_shared_ptr_MR_ObjectPoints ( const MR_std_vector_std_shared_ptr_MR_ObjectPoints * objsPoints)

constructs new ObjectPoints containing the union of valid points from all input objects Generated from function MR::merge. Parameter objsPoints 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_ObjectPoints_Destroy() to free it when you're done using it.

◆ MR_ObjectPoints_AssignFromAnother()

MRC_API MR_ObjectPoints * MR_ObjectPoints_AssignFromAnother ( MR_ObjectPoints * _this,
MR_PassBy _other_pass_by,
MR_ObjectPoints * _other )

Generated from a method of class MR::ObjectPoints 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_ObjectPoints_clone()

MRC_API MR_std_shared_ptr_MR_Object * MR_ObjectPoints_clone ( const MR_ObjectPoints * _this)

Generated from a method of class MR::ObjectPoints 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_ObjectPoints_Construct()

MRC_API MR_ObjectPoints * MR_ObjectPoints_Construct ( const MR_ObjectMesh * objMesh,
const bool * saveNormals )

Generated from a constructor of class MR::ObjectPoints. Parameter objMesh can not be null. It is a single object. Parameter saveNormals has a default argument: true, pass a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_ObjectPoints_Destroy() to free it when you're done using it.

◆ MR_ObjectPoints_ConstructFromAnother()

MRC_API MR_ObjectPoints * MR_ObjectPoints_ConstructFromAnother ( MR_PassBy _other_pass_by,
MR_ObjectPoints * _other )

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

◆ MR_ObjectPoints_DefaultConstruct()

MRC_API MR_ObjectPoints * MR_ObjectPoints_DefaultConstruct ( void )

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

◆ MR_ObjectPoints_DefaultConstructArray()

MRC_API MR_ObjectPoints * MR_ObjectPoints_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_ObjectPoints_DestroyArray(). Use MR_ObjectPoints_OffsetMutablePtr() and MR_ObjectPoints_OffsetPtr() to access the array elements.

◆ MR_ObjectPoints_Destroy()

MRC_API void MR_ObjectPoints_Destroy ( const MR_ObjectPoints * _this)

Destroys a heap-allocated instance of MR_ObjectPoints. Does nothing if the pointer is null.

◆ MR_ObjectPoints_DestroyArray()

MRC_API void MR_ObjectPoints_DestroyArray ( const MR_ObjectPoints * _this)

Destroys a heap-allocated array of MR_ObjectPoints. Does nothing if the pointer is null.

◆ MR_ObjectPoints_getClassName()

MRC_API MR_std_string * MR_ObjectPoints_getClassName ( const MR_ObjectPoints * _this)

Generated from a method of class MR::ObjectPoints named getClassName. 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_string_Destroy() to free it when you're done using it.

◆ MR_ObjectPoints_getClassNameInPlural()

MRC_API MR_std_string * MR_ObjectPoints_getClassNameInPlural ( const MR_ObjectPoints * _this)

Generated from a method of class MR::ObjectPoints named getClassNameInPlural. 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_string_Destroy() to free it when you're done using it.

◆ MR_ObjectPoints_getInfoLines()

MRC_API MR_std_vector_std_string * MR_ObjectPoints_getInfoLines ( const MR_ObjectPoints * _this)

Generated from a method of class MR::ObjectPoints named getInfoLines. 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_std_string_Destroy() to free it when you're done using it.

◆ MR_ObjectPoints_MutableUpcastTo_MR_Object()

MRC_API MR_Object * MR_ObjectPoints_MutableUpcastTo_MR_Object ( MR_ObjectPoints * object)

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

◆ MR_ObjectPoints_MutableUpcastTo_MR_ObjectChildrenHolder()

MRC_API MR_ObjectChildrenHolder * MR_ObjectPoints_MutableUpcastTo_MR_ObjectChildrenHolder ( MR_ObjectPoints * object)

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

◆ MR_ObjectPoints_MutableUpcastTo_MR_ObjectPointsHolder()

MRC_API MR_ObjectPointsHolder * MR_ObjectPoints_MutableUpcastTo_MR_ObjectPointsHolder ( MR_ObjectPoints * object)

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

◆ MR_ObjectPoints_MutableUpcastTo_MR_VisualObject()

MRC_API MR_VisualObject * MR_ObjectPoints_MutableUpcastTo_MR_VisualObject ( MR_ObjectPoints * object)

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

◆ MR_ObjectPoints_OffsetMutablePtr()

MRC_API MR_ObjectPoints * MR_ObjectPoints_OffsetMutablePtr ( MR_ObjectPoints * 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_ObjectPoints_OffsetPtr()

MRC_API const MR_ObjectPoints * MR_ObjectPoints_OffsetPtr ( const MR_ObjectPoints * 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_ObjectPoints_setDirtyFlags()

MRC_API void MR_ObjectPoints_setDirtyFlags ( MR_ObjectPoints * _this,
uint32_t mask,
const bool * invalidateCaches )

Generated from a method of class MR::ObjectPoints 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_ObjectPoints_setPointCloud()

MRC_API void MR_ObjectPoints_setPointCloud ( MR_ObjectPoints * _this,
const MR_std_shared_ptr_MR_PointCloud * pointCloud )

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

◆ MR_ObjectPoints_shallowClone()

MRC_API MR_std_shared_ptr_MR_Object * MR_ObjectPoints_shallowClone ( const MR_ObjectPoints * _this)

Generated from a method of class MR::ObjectPoints 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_ObjectPoints_swapPointCloud()

MRC_API void MR_ObjectPoints_swapPointCloud ( MR_ObjectPoints * _this,
MR_std_shared_ptr_MR_PointCloud * points )

sets given point cloud to this, and returns back previous mesh of this; does not touch selection Generated from a method of class MR::ObjectPoints named swapPointCloud. Parameter _this can not be null. It is a single object. Parameter points can not be null. It is a single object.

◆ MR_ObjectPoints_TypeName()

MRC_API const char * MR_ObjectPoints_TypeName ( void )

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

◆ MR_ObjectPoints_typeName()

MRC_API const char * MR_ObjectPoints_typeName ( const MR_ObjectPoints * _this)

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

◆ MR_ObjectPoints_UpcastTo_MR_Object()

MRC_API const MR_Object * MR_ObjectPoints_UpcastTo_MR_Object ( const MR_ObjectPoints * object)

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

◆ MR_ObjectPoints_UpcastTo_MR_ObjectChildrenHolder()

MRC_API const MR_ObjectChildrenHolder * MR_ObjectPoints_UpcastTo_MR_ObjectChildrenHolder ( const MR_ObjectPoints * object)

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

◆ MR_ObjectPoints_UpcastTo_MR_ObjectPointsHolder()

MRC_API const MR_ObjectPointsHolder * MR_ObjectPoints_UpcastTo_MR_ObjectPointsHolder ( const MR_ObjectPoints * object)

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

◆ MR_ObjectPoints_UpcastTo_MR_VisualObject()

MRC_API const MR_VisualObject * MR_ObjectPoints_UpcastTo_MR_VisualObject ( const MR_ObjectPoints * object)

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

◆ MR_ObjectPoints_varPointCloud()

MRC_API const MR_std_shared_ptr_MR_PointCloud * MR_ObjectPoints_varPointCloud ( MR_ObjectPoints * _this)

returns variable point cloud, if const point cloud is needed use pointCloud() instead Generated from a method of class MR::ObjectPoints named varPointCloud. 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_pack()

constructs new ObjectPoints containing the packed version of input points,

Parameters
newValidVertsif given, then use them instead of valid points from pts
Returns
nullptr if the operation was cancelled Generated from function MR::pack. Parameter pts can not be null. It is a single object. Parameter newValidVerts defaults to a null pointer in C++. Parameter cb is a single object. Parameter cb has a default argument: {}, pass a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_std_shared_ptr_MR_ObjectPoints_Destroy() to free it when you're done using it.