MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::MeshOrPointsObject Class Reference

#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 ObjectMeshasObjectMesh () 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 ObjectPointsasObjectPoints () 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
 

Detailed Description

This class can hold either ObjectMesh or ObjectPoint It is used for convenient storage and operation with any of them

Constructor & Destructor Documentation

◆ MeshOrPointsObject() [1/4]

MR::MeshOrPointsObject::MeshOrPointsObject ( )
inline

◆ MeshOrPointsObject() [2/4]

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

◆ MeshOrPointsObject() [3/4]

MR::MeshOrPointsObject::MeshOrPointsObject ( std::shared_ptr< ObjectMesh > om)
inline

◆ MeshOrPointsObject() [4/4]

MR::MeshOrPointsObject::MeshOrPointsObject ( std::shared_ptr< ObjectPoints > op)
inline

Member Function Documentation

◆ asObjectMesh()

MRMESH_API ObjectMesh * MR::MeshOrPointsObject::asObjectMesh ( ) const

if holding ObjectMesh, return pointer to it, otherwise return nullptr

◆ asObjectPoints()

MRMESH_API ObjectPoints * MR::MeshOrPointsObject::asObjectPoints ( ) const

if holding ObjectPoints, return pointer to it, otherwise return nullptr

◆ get()

const std::shared_ptr< VisualObject > & MR::MeshOrPointsObject::get ( ) const
inline

◆ meshOrPoints()

MRMESH_API MeshOrPoints MR::MeshOrPointsObject::meshOrPoints ( ) const

get class that hold either mesh part or point cloud

◆ operator->()

const std::shared_ptr< VisualObject > & MR::MeshOrPointsObject::operator-> ( ) const
inline

◆ operator==()

bool MR::MeshOrPointsObject::operator== ( std::shared_ptr< VisualObject > other) const
inline

◆ reset()

void MR::MeshOrPointsObject::reset ( )
inline

◆ set() [1/2]

MRMESH_API void MR::MeshOrPointsObject::set ( std::shared_ptr< ObjectMesh > om)

set to hold ObjectMesh

◆ set() [2/2]

MRMESH_API void MR::MeshOrPointsObject::set ( std::shared_ptr< ObjectPoints > op)

set to hold ObjectPoints


The documentation for this class was generated from the following file: