MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::MeshOrPointsObject Struct Reference
Inheritance diagram for meshlib::MeshOrPointsObject:

Public Member Functions

auto assign_from_another (_other:&meshlib::MeshOrPointsObject) -> &mut meshlib::MeshOrPointsObject
void set_std_shared_ptr_mr_object_mesh (om:&meshlib::std_shared_ptr_MR_ObjectMesh)
auto as_object_mesh () const -> Option<&mut meshlib::ObjectMesh >
void set_std_shared_ptr_mr_object_points (op:&meshlib::std_shared_ptr_MR_ObjectPoints)
auto as_object_points () const -> Option<&mut meshlib::ObjectPoints >
void reset ()
auto arrow () const -> &meshlib::std_shared_ptr_MR_VisualObject
auto get () const -> &meshlib::std_shared_ptr_MR_VisualObject
auto op_equal_std_shared_ptr_mr_visual_object (other:&meshlib::std_shared_ptr_MR_VisualObject) const -> bool
auto op_not_equal_std_shared_ptr_mr_visual_object (other:&meshlib::std_shared_ptr_MR_VisualObject) const -> bool
auto mesh_or_points () const -> meshlib::Owned< meshlib::MeshOrPoints >

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::MeshOrPointsObject >
static auto construct_from_another (_other:&meshlib::MeshOrPointsObject) -> meshlib::Owned< meshlib::MeshOrPointsObject >
static auto construct_std_shared_ptr_mr_visual_object (vo:&meshlib::std_shared_ptr_MR_VisualObject) -> meshlib::Owned< meshlib::MeshOrPointsObject >
static auto construct_std_shared_ptr_mr_object_mesh (om:&meshlib::std_shared_ptr_MR_ObjectMesh) -> meshlib::Owned< meshlib::MeshOrPointsObject >
static auto construct_std_shared_ptr_mr_object_points (op:&meshlib::std_shared_ptr_MR_ObjectPoints) -> meshlib::Owned< meshlib::MeshOrPointsObject >
Static Public Member Functions inherited from meshlib::CppClass
static void destroy (ptr:*mut Self)
Static Public Member Functions inherited from meshlib::CppCopy
static auto copy (ptr:*const Self) -> *mut Self

Detailed Description

This class can hold either ObjectMesh or ObjectPoint It is used for convenient storage and operation with any of them Generated from class MR::MeshOrPointsObject.

Generated from class MR::MeshOrPointsObject. Heap-allocated instances are held in Owned<MeshOrPointsObject>.

Member Function Documentation

◆ arrow()

auto meshlib::MeshOrPointsObject::arrow ( ) const -> &meshlib::std_shared_ptr_MR_VisualObject

Generated from method MR::MeshOrPointsObject::operator->.

Calls MR_MeshOrPointsObject_arrow().

◆ as_object_mesh()

auto meshlib::MeshOrPointsObject::as_object_mesh ( ) const -> Option<&mut meshlib::ObjectMesh >

if holding ObjectMesh, return pointer to it, otherwise return nullptr Generated from method MR::MeshOrPointsObject::asObjectMesh.

Calls MR_MeshOrPointsObject_asObjectMesh().

◆ as_object_points()

auto meshlib::MeshOrPointsObject::as_object_points ( ) const -> Option<&mut meshlib::ObjectPoints >

if holding ObjectPoints, return pointer to it, otherwise return nullptr Generated from method MR::MeshOrPointsObject::asObjectPoints.

Calls MR_MeshOrPointsObject_asObjectPoints().

◆ assign_from_another()

auto meshlib::MeshOrPointsObject::assign_from_another ( _other:&meshlib::MeshOrPointsObject ) -> &mut meshlib::MeshOrPointsObject

Generated from method MR::MeshOrPointsObject::operator=.

Calls MR_MeshOrPointsObject_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.

◆ construct_from_another()

auto meshlib::MeshOrPointsObject::construct_from_another ( _other:&meshlib::MeshOrPointsObject ) -> meshlib::Owned< meshlib::MeshOrPointsObject >
static

Generated from constructor MR::MeshOrPointsObject::MeshOrPointsObject.

Calls MR_MeshOrPointsObject_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

◆ construct_std_shared_ptr_mr_object_mesh()

auto meshlib::MeshOrPointsObject::construct_std_shared_ptr_mr_object_mesh ( om:&meshlib::std_shared_ptr_MR_ObjectMesh ) -> meshlib::Owned< meshlib::MeshOrPointsObject >
static

Generated from constructor MR::MeshOrPointsObject::MeshOrPointsObject.

Calls MR_MeshOrPointsObject_Construct_std_shared_ptr_MR_ObjectMesh(). The reference to the parameter om might be preserved in the constructed object.

◆ construct_std_shared_ptr_mr_object_points()

auto meshlib::MeshOrPointsObject::construct_std_shared_ptr_mr_object_points ( op:&meshlib::std_shared_ptr_MR_ObjectPoints ) -> meshlib::Owned< meshlib::MeshOrPointsObject >
static

Generated from constructor MR::MeshOrPointsObject::MeshOrPointsObject.

Calls MR_MeshOrPointsObject_Construct_std_shared_ptr_MR_ObjectPoints(). The reference to the parameter op might be preserved in the constructed object.

◆ construct_std_shared_ptr_mr_visual_object()

auto meshlib::MeshOrPointsObject::construct_std_shared_ptr_mr_visual_object ( vo:&meshlib::std_shared_ptr_MR_VisualObject ) -> meshlib::Owned< meshlib::MeshOrPointsObject >
static

construct, automatically detecting the object type (ObjectMesh or ObjectPoint) if set an another type, will be reset Generated from constructor MR::MeshOrPointsObject::MeshOrPointsObject.

Calls MR_MeshOrPointsObject_Construct_std_shared_ptr_MR_VisualObject(). The reference to the parameter vo might be preserved in the constructed object.

◆ get()

auto meshlib::MeshOrPointsObject::get ( ) const -> &meshlib::std_shared_ptr_MR_VisualObject

Generated from method MR::MeshOrPointsObject::get.

Calls MR_MeshOrPointsObject_get().

◆ mesh_or_points()

auto meshlib::MeshOrPointsObject::mesh_or_points ( ) const -> meshlib::Owned< meshlib::MeshOrPoints >

get class that hold either mesh part or point cloud Generated from method MR::MeshOrPointsObject::meshOrPoints.

Calls MR_MeshOrPointsObject_meshOrPoints().

◆ new()

auto meshlib::MeshOrPointsObject::new ( ) -> meshlib::Owned< meshlib::MeshOrPointsObject >
static

Constructs an empty (default-constructed) instance.

Calls MR_MeshOrPointsObject_DefaultConstruct().

◆ op_equal_std_shared_ptr_mr_visual_object()

auto meshlib::MeshOrPointsObject::op_equal_std_shared_ptr_mr_visual_object ( other:&meshlib::std_shared_ptr_MR_VisualObject ) const -> bool

Generated from method MR::MeshOrPointsObject::operator==.

Calls MR_equal_MR_MeshOrPointsObject_std_shared_ptr_MR_VisualObject().

◆ op_not_equal_std_shared_ptr_mr_visual_object()

auto meshlib::MeshOrPointsObject::op_not_equal_std_shared_ptr_mr_visual_object ( other:&meshlib::std_shared_ptr_MR_VisualObject ) const -> bool

Generated from method MR::MeshOrPointsObject::operator!=.

Calls MR_not_equal_MR_MeshOrPointsObject_std_shared_ptr_MR_VisualObject().

◆ reset()

void meshlib::MeshOrPointsObject::reset ( )

Generated from method MR::MeshOrPointsObject::reset.

Calls MR_MeshOrPointsObject_reset().

◆ set_std_shared_ptr_mr_object_mesh()

void meshlib::MeshOrPointsObject::set_std_shared_ptr_mr_object_mesh ( om:&meshlib::std_shared_ptr_MR_ObjectMesh )

set to hold ObjectMesh Generated from method MR::MeshOrPointsObject::set.

Calls MR_MeshOrPointsObject_set_std_shared_ptr_MR_ObjectMesh().

◆ set_std_shared_ptr_mr_object_points()

void meshlib::MeshOrPointsObject::set_std_shared_ptr_mr_object_points ( op:&meshlib::std_shared_ptr_MR_ObjectPoints )

set to hold ObjectPoints Generated from method MR::MeshOrPointsObject::set.

Calls MR_MeshOrPointsObject_set_std_shared_ptr_MR_ObjectPoints().


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