#include <MRMeshOrPointsObject.h>
Public Member Functions | |
MeshOrPointsObject () | |
MRMESH_API | MeshOrPointsObject (std::shared_ptr< VisualObject > vo) |
MeshOrPointsObject (std::shared_ptr< ObjectMesh > om) | |
MeshOrPointsObject (std::shared_ptr< ObjectPoints > op) | |
MRMESH_API void | set (std::shared_ptr< ObjectMesh > om) |
set to hold ObjectMesh | |
MRMESH_API ObjectMesh * | asObjectMesh () const |
if holding ObjectMesh, return pointer to it, otherwise return nullptr | |
MRMESH_API void | set (std::shared_ptr< ObjectPoints > op) |
set to hold ObjectPoints | |
MRMESH_API ObjectPoints * | asObjectPoints () const |
if holding ObjectPoints, return pointer to it, otherwise return nullptr | |
void | reset () |
const std::shared_ptr< VisualObject > & | operator-> () const |
const std::shared_ptr< VisualObject > & | get () const |
bool | operator== (std::shared_ptr< VisualObject > other) const |
MRMESH_API MeshOrPoints | meshOrPoints () const |
get class that hold either mesh part or point cloud | |
This class can hold either ObjectMesh or ObjectPoint It is used for convenient storage and operation with any of them
|
inline |
MRMESH_API MR::MeshOrPointsObject::MeshOrPointsObject | ( | std::shared_ptr< VisualObject > | vo | ) |
construct, automatically detecting the object type (ObjectMesh or ObjectPoint) if set an another type, will be reset
|
inline |
|
inline |
MRMESH_API ObjectMesh * MR::MeshOrPointsObject::asObjectMesh | ( | ) | const |
if holding ObjectMesh, return pointer to it, otherwise return nullptr
MRMESH_API ObjectPoints * MR::MeshOrPointsObject::asObjectPoints | ( | ) | const |
if holding ObjectPoints, return pointer to it, otherwise return nullptr
|
inline |
MRMESH_API MeshOrPoints MR::MeshOrPointsObject::meshOrPoints | ( | ) | const |
get class that hold either mesh part or point cloud
|
inline |
|
inline |
|
inline |
MRMESH_API void MR::MeshOrPointsObject::set | ( | std::shared_ptr< ObjectMesh > | om | ) |
set to hold ObjectMesh
MRMESH_API void MR::MeshOrPointsObject::set | ( | std::shared_ptr< ObjectPoints > | op | ) |
set to hold ObjectPoints