33 void reset() {
set( std::shared_ptr<ObjectMesh>{} ); }
34 const std::shared_ptr<VisualObject>&
operator->()
const {
return visualObject_; }
35 const std::shared_ptr<VisualObject>&
get()
const {
return visualObject_; }
41 std::variant<ObjectMesh*, ObjectPoints*> var_;
42 std::shared_ptr<VisualObject> visualObject_;
#define MRMESH_API
Definition MRMeshFwd.h:80
Definition MRMeshOrPoints.h:21
Definition MRObjectMesh.h:14
Definition MRObjectPoints.h:14
ObjectMesh * asObjectMesh() const
if holding ObjectMesh, return pointer to it, otherwise return nullptr
void set(std::shared_ptr< ObjectPoints > op)
set to hold ObjectPoints
ObjectPoints * asObjectPoints() const
if holding ObjectPoints, return pointer to it, otherwise return nullptr
const std::shared_ptr< VisualObject > & get() const
Definition MRMeshOrPointsObject.h:35
MeshOrPointsObject(std::shared_ptr< ObjectMesh > om)
Definition MRMeshOrPointsObject.h:20
void reset()
Definition MRMeshOrPointsObject.h:33
MeshOrPointsObject()
Definition MRMeshOrPointsObject.h:16
const std::shared_ptr< VisualObject > & operator->() const
Definition MRMeshOrPointsObject.h:34
bool operator==(std::shared_ptr< VisualObject > other) const
Definition MRMeshOrPointsObject.h:36
MeshOrPointsObject(std::shared_ptr< ObjectPoints > op)
Definition MRMeshOrPointsObject.h:21
MeshOrPoints meshOrPoints() const
get class that hold either mesh part or point cloud
void set(std::shared_ptr< ObjectMesh > om)
set to hold ObjectMesh
MeshOrPointsObject(std::shared_ptr< VisualObject > vo)
@ other
Angle, normally float. Measure in radians.
Definition MRFeatureObject.h:27
only for bindings generation
Definition MRCameraOrientationPlugin.h:8