30 void reset() {
set( std::shared_ptr<ObjectMesh>{} ); }
31 const std::shared_ptr<VisualObject>&
operator->()
const {
return visualObject_; }
32 const std::shared_ptr<VisualObject>&
get()
const {
return visualObject_; }
38 std::variant<ObjectMesh*, ObjectPoints*> var_;
39 std::shared_ptr<VisualObject> visualObject_;
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:79
Definition MRMeshOrPointsObject.h:11
MRMESH_API void set(std::shared_ptr< ObjectMesh > om)
set to hold ObjectMesh
MRMESH_API void set(std::shared_ptr< ObjectPoints > op)
set to hold ObjectPoints
const std::shared_ptr< VisualObject > & get() const
Definition MRMeshOrPointsObject.h:32
MeshOrPointsObject(std::shared_ptr< ObjectMesh > om)
Definition MRMeshOrPointsObject.h:17
MRMESH_API MeshOrPointsObject(std::shared_ptr< VisualObject > vo)
void reset()
Definition MRMeshOrPointsObject.h:30
MeshOrPointsObject()
Definition MRMeshOrPointsObject.h:13
MRMESH_API MeshOrPoints meshOrPoints() const
get class that hold either mesh part or point cloud
const std::shared_ptr< VisualObject > & operator->() const
Definition MRMeshOrPointsObject.h:31
bool operator==(std::shared_ptr< VisualObject > other) const
Definition MRMeshOrPointsObject.h:33
MRMESH_API ObjectMesh * asObjectMesh() const
if holding ObjectMesh, return pointer to it, otherwise return nullptr
MeshOrPointsObject(std::shared_ptr< ObjectPoints > op)
Definition MRMeshOrPointsObject.h:18
MRMESH_API ObjectPoints * asObjectPoints() const
if holding ObjectPoints, return pointer to it, otherwise return nullptr
Definition MRMesh/MRMeshOrPoints.h:17
Definition MRObjectMesh.h:11
Definition MRObjectPoints.h:11