MeshLib Rust Docs
Loading...
Searching...
No Matches
Inheritance diagram for meshlib::Object:

Public Member Functions

auto assign_from_another (_other:meshlib::Owned< meshlib::Object >) -> &mut meshlib::Object
auto type_name () const -> Option<&core::ffi::c_char >
auto class_name () const -> meshlib::Owned< meshlib::std_string >
auto class_name_in_plural () const -> meshlib::Owned< meshlib::std_string >
auto as_type_mut () -> Option<&mut meshlib::VisualObject >
auto as_type () const -> Option<&meshlib::VisualObject >
auto name () const -> &meshlib::std_string
void set_name (name:&str)
auto find (name:&str) const -> meshlib::Owned< meshlib::std_shared_ptr_const_MR_Object >
auto find_mut (name:&str) -> meshlib::Owned< meshlib::std_shared_ptr_MR_Object >
auto xf (id:Option<&meshlib::ViewportId >, isDef:Option<&mut bool >) const -> &meshlib::AffineXf3f
void set_xf (xf:&meshlib::AffineXf3f, id:Option<&meshlib::ViewportId >)
void reset_xf (id:Option<&meshlib::ViewportId >)
auto xfs_for_all_viewports () const -> &meshlib::ViewportProperty_MR_AffineXf3f
void set_xfs_for_all_viewports (xf:&meshlib::ViewportProperty_MR_AffineXf3f)
auto world_xf (id:Option<&meshlib::ViewportId >, isDef:Option<&mut bool >) const -> meshlib::AffineXf3f
void set_world_xf (xf:&meshlib::AffineXf3f, id:Option<&meshlib::ViewportId >)
void apply_scale (scaleFactor:f32)
auto global_visibility_mask () const -> meshlib::Owned< meshlib::ViewportMask >
auto global_visibility (viewportMask:Option<&meshlib::ViewportMask >) const -> bool
void set_global_visibility (on:bool, viewportMask:Option<&meshlib::ViewportMask >)
auto is_locked () const -> bool
void set_locked (on:bool)
auto is_parent_locked () const -> bool
void set_parent_locked (lock:bool)
auto parent () const -> Option<&meshlib::Object >
auto parent_mut () -> Option<&mut meshlib::Object >
auto is_ancestor (ancestor:Option<&meshlib::Object >) const -> bool
auto find_common_ancestor_mut (other:&mut meshlib::Object) -> Option<&mut meshlib::Object >
auto find_common_ancestor (other:&meshlib::Object) const -> Option<&meshlib::Object >
auto detach_from_parent () -> bool
auto children_mut () -> &meshlib::std_vector_std_shared_ptr_MR_Object
auto const_children () const -> meshlib::Owned< meshlib::ConstChildren >
auto children () const -> &meshlib::std_vector_std_shared_ptr_const_MR_Object
auto add_child (child:&meshlib::std_shared_ptr_MR_Object, recognizedChild:Option< bool >) -> bool
auto add_child_before (newChild:&meshlib::std_shared_ptr_MR_Object, existingChild:&meshlib::std_shared_ptr_MR_Object) -> bool
auto remove_child_std_shared_ptr_mr_object (child:&meshlib::std_shared_ptr_MR_Object) -> bool
auto remove_child_mr_object_ptr (child:Option<&mut meshlib::Object >) -> bool
void remove_all_children ()
void sort_children ()
auto select (on:bool) -> bool
auto is_selected () const -> bool
void set_ancillary (ancillary:bool)
auto is_ancillary () const -> bool
auto is_global_ancillary () const -> bool
void set_visible (on:bool, viewportMask:Option<&meshlib::ViewportMask >)
auto is_visible (viewportMask:Option<&meshlib::ViewportMask >) const -> bool
void set_visibility_mask (viewportMask:&meshlib::ViewportMask)
auto visibility_mask () const -> meshlib::Owned< meshlib::ViewportMask >
auto get_redraw_flag (_1:&meshlib::ViewportMask) const -> bool
void reset_redraw_flag () const
auto clone_tree () const -> meshlib::Owned< meshlib::std_shared_ptr_MR_Object >
auto clone () const -> meshlib::Owned< meshlib::std_shared_ptr_MR_Object >
auto shallow_clone_tree () const -> meshlib::Owned< meshlib::std_shared_ptr_MR_Object >
auto shallow_clone () const -> meshlib::Owned< meshlib::std_shared_ptr_MR_Object >
auto get_info_lines () const -> meshlib::Owned< meshlib::std_vector_std_string >
void swap (other:&mut meshlib::Object)
auto get_world_box (_1:Option<&meshlib::ViewportId >) const -> meshlib::Box3f
auto get_world_tree_box (_1:Option<&meshlib::ViewportId >) const -> meshlib::Box3f
auto has_visual_representation () const -> bool
auto has_model () const -> bool
auto tags () const -> &meshlib::std_set_std_string
auto add_tag (tag:&str) -> bool
auto remove_tag (tag:&str) -> bool
auto heap_bytes () const -> usize
auto same_models (other:&meshlib::Object) const -> bool
auto get_model_hash () const -> usize
auto get_shared_ptr () const -> meshlib::Owned< meshlib::std_shared_ptr_MR_Object >
auto upcast_to_object_children_holder () const -> &meshlib::ObjectChildrenHolder
auto upcast_to_object_children_holder_mut () -> &mut meshlib::ObjectChildrenHolder

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::Object >
static auto construct_from_another (_other:meshlib::Owned< meshlib::Object >) -> meshlib::Owned< meshlib::Object >
static auto static_type_name () -> *const core::ffi::c_char
static auto static_class_name () -> *const core::ffi::c_char
static auto static_class_name_in_plural () -> *const core::ffi::c_char
static auto static_downcast_from_object_children_holder (object:&meshlib::ObjectChildrenHolder) -> &Self
static auto static_downcast_from_object_children_holder_mut (object:&mut meshlib::ObjectChildrenHolder) -> &mut Self
Static Public Member Functions inherited from meshlib::CppClass
static void destroy (ptr:*mut Self)

Detailed Description

named object in the data model Generated from class MR::Object. Base classes: Direct: (non-virtual) MR::ObjectChildrenHolder Derived classes: Direct: (non-virtual) MR::SceneRootObject MR::VisualObject Indirect: (non-virtual) MR::AddVisualProperties<MR::FeatureObject, MR::DimensionsVisualizePropertyType::diameter, MR::DimensionsVisualizePropertyType::angle, MR::DimensionsVisualizePropertyType::length> MR::AddVisualProperties<MR::FeatureObject, MR::DimensionsVisualizePropertyType::diameter, MR::DimensionsVisualizePropertyType::length> MR::AddVisualProperties<MR::FeatureObject, MR::DimensionsVisualizePropertyType::diameter> MR::AngleMeasurementObject MR::CircleObject MR::ConeObject MR::CylinderObject MR::DistanceMeasurementObject MR::FeatureObject MR::LineObject MR::MeasurementObject MR::ObjectDistanceMap MR::ObjectGcode MR::ObjectLabel MR::ObjectLines MR::ObjectLinesHolder MR::ObjectMesh MR::ObjectMeshHolder MR::ObjectPoints MR::ObjectPointsHolder MR::ObjectVoxels MR::PlaneObject MR::PointMeasurementObject MR::PointObject MR::RadiusMeasurementObject MR::SphereObject

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

Member Function Documentation

◆ add_child()

auto meshlib::Object::add_child ( child:&meshlib::std_shared_ptr_MR_Object ,
recognizedChild:Option< bool >  ) -> bool

adds given object at the end of children (recognized or not); returns false if it was already child of this, of if given pointer is empty; child object will always report this as parent after the call;

Parameters
recognizedChildif set to false then child object will be excluded from children() and it will be stored by weak_ptr Generated from method MR::Object::addChild.

Calls MR_Object_addChild().

◆ add_child_before()

auto meshlib::Object::add_child_before ( newChild:&meshlib::std_shared_ptr_MR_Object ,
existingChild:&meshlib::std_shared_ptr_MR_Object  ) -> bool

adds given object in the recognized children before existingChild; if newChild was already among this children then moves it just before existingChild keeping the order of other children intact; returns false if newChild is nullptr, or existingChild is not a child of this Generated from method MR::Object::addChildBefore.

Calls MR_Object_addChildBefore().

◆ add_tag()

auto meshlib::Object::add_tag ( tag:& str) -> bool

adds tag to the object's tag storage additionally calls ObjectTagManager::tagAddedSignal NOTE: tags starting with a dot are considered as service ones and might be hidden from UI Generated from method MR::Object::addTag.

Calls MR_Object_addTag().

◆ apply_scale()

void meshlib::Object::apply_scale ( scaleFactor:f32 )

scale object size (all point positions) Generated from method MR::Object::applyScale.

Calls MR_Object_applyScale().

◆ as_type()

auto meshlib::Object::as_type ( ) const -> Option<&meshlib::VisualObject >

Generated from method MR::Object::asType<MR::VisualObject>.

Calls MR_Object_asType().

◆ as_type_mut()

auto meshlib::Object::as_type_mut ( ) -> Option<&mut meshlib::VisualObject >

Generated from method MR::Object::asType<MR::VisualObject>.

Calls MR_Object_asType_mut().

◆ assign_from_another()

auto meshlib::Object::assign_from_another ( _other:meshlib::Owned< meshlib::Object > ) -> &mut meshlib::Object

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

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

◆ children()

auto meshlib::Object::children ( ) const -> &meshlib::std_vector_std_shared_ptr_const_MR_Object
Deprecated
the cast inside is undefined behaviour, use constChildren() instead Generated from method MR::Object::children.

Calls MR_Object_children().

Deprecated
use constChildren() instead

◆ children_mut()

auto meshlib::Object::children_mut ( ) -> &meshlib::std_vector_std_shared_ptr_MR_Object

an object can hold other sub-objects Generated from method MR::Object::children.

Calls MR_Object_children_mut().

◆ class_name()

auto meshlib::Object::class_name ( ) const -> meshlib::Owned< meshlib::std_string >

Generated from method MR::Object::className.

Calls MR_Object_className().

◆ class_name_in_plural()

auto meshlib::Object::class_name_in_plural ( ) const -> meshlib::Owned< meshlib::std_string >

Generated from method MR::Object::classNameInPlural.

Calls MR_Object_classNameInPlural().

◆ clone()

auto meshlib::Object::clone ( ) const -> meshlib::Owned< meshlib::std_shared_ptr_MR_Object >

clones current object only, without parent and/or children Generated from method MR::Object::clone.

Calls MR_Object_clone().

◆ clone_tree()

auto meshlib::Object::clone_tree ( ) const -> meshlib::Owned< meshlib::std_shared_ptr_MR_Object >

clones all tree of this object (except ancillary and unrecognized children) Generated from method MR::Object::cloneTree.

Calls MR_Object_cloneTree().

◆ const_children()

auto meshlib::Object::const_children ( ) const -> meshlib::Owned< meshlib::ConstChildren >

the same sub-objects without the ability to modify them; the returned view is invalidated by anything that changes the children of this object Generated from method MR::Object::constChildren.

Calls MR_Object_constChildren().

◆ construct_from_another()

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

Generated from constructor MR::Object::Object.

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

◆ detach_from_parent()

auto meshlib::Object::detach_from_parent ( ) -> bool

removes this from its parent children list returns false if it was already orphan Generated from method MR::Object::detachFromParent.

Calls MR_Object_detachFromParent().

◆ find()

auto meshlib::Object::find ( name:& str) const -> meshlib::Owned< meshlib::std_shared_ptr_const_MR_Object >

finds a direct child by name Generated from method MR::Object::find.

Calls MR_Object_find().

◆ find_common_ancestor()

auto meshlib::Object::find_common_ancestor ( other:&meshlib::Object ) const -> Option<&meshlib::Object >

Generated from method MR::Object::findCommonAncestor.

Calls MR_Object_findCommonAncestor().

◆ find_common_ancestor_mut()

auto meshlib::Object::find_common_ancestor_mut ( other:&mut meshlib::Object ) -> Option<&mut meshlib::Object >

Find a common ancestor between this object and the other one. Returns null on failure (which is impossible if both are children of the scene root). Will return this if other matches this. Generated from method MR::Object::findCommonAncestor.

Calls MR_Object_findCommonAncestor_mut().

◆ find_mut()

auto meshlib::Object::find_mut ( name:& str) -> meshlib::Owned< meshlib::std_shared_ptr_MR_Object >

Generated from method MR::Object::find.

Calls MR_Object_find_mut().

◆ get_info_lines()

auto meshlib::Object::get_info_lines ( ) const -> meshlib::Owned< meshlib::std_vector_std_string >

return several info lines that can better describe object in the UI Generated from method MR::Object::getInfoLines.

Calls MR_Object_getInfoLines().

◆ get_model_hash()

auto meshlib::Object::get_model_hash ( ) const -> usize

return hash of model (or hash object pointer if object has no model) Generated from method MR::Object::getModelHash.

Calls MR_Object_getModelHash().

◆ get_redraw_flag()

auto meshlib::Object::get_redraw_flag ( _1:&meshlib::ViewportMask ) const -> bool

this method virtual because others data model types could have dirty flags or something Generated from method MR::Object::getRedrawFlag.

Calls MR_Object_getRedrawFlag().

◆ get_shared_ptr()

auto meshlib::Object::get_shared_ptr ( ) const -> meshlib::Owned< meshlib::std_shared_ptr_MR_Object >

returns this Object as shared_ptr finds it among its parent's recognized children Generated from method MR::Object::getSharedPtr.

Calls MR_Object_getSharedPtr().

◆ get_world_box()

auto meshlib::Object::get_world_box ( _1:Option<&meshlib::ViewportId > ) const -> meshlib::Box3f

returns bounding box of this object in world coordinates for default or specific viewport Generated from method MR::Object::getWorldBox.

Calls MR_Object_getWorldBox().

◆ get_world_tree_box()

auto meshlib::Object::get_world_tree_box ( _1:Option<&meshlib::ViewportId > ) const -> meshlib::Box3f

returns bounding box of this object and all children visible in given (or default) viewport in world coordinates Generated from method MR::Object::getWorldTreeBox.

Calls MR_Object_getWorldTreeBox().

◆ global_visibility()

auto meshlib::Object::global_visibility ( viewportMask:Option<&meshlib::ViewportMask > ) const -> bool

returns true if this object is visible together with all its parents in any of given viewports Generated from method MR::Object::globalVisibility.

Calls MR_Object_globalVisibility().

◆ global_visibility_mask()

auto meshlib::Object::global_visibility_mask ( ) const -> meshlib::Owned< meshlib::ViewportMask >

returns all viewports where this object is visible together with all its parents Generated from method MR::Object::globalVisibilityMask.

Calls MR_Object_globalVisibilityMask().

◆ has_model()

auto meshlib::Object::has_model ( ) const -> bool

does the object have any model available (but possibly empty), e.g. ObjectMesh has valid meshPtr() or ObjectPoints has valid pointCloudPtr() Generated from method MR::Object::hasModel.

Calls MR_Object_hasModel().

◆ has_visual_representation()

auto meshlib::Object::has_visual_representation ( ) const -> bool

does the object have any visual representation (visible points, triangles, edges, etc.), no considering child objects Generated from method MR::Object::hasVisualRepresentation.

Calls MR_Object_hasVisualRepresentation().

◆ heap_bytes()

auto meshlib::Object::heap_bytes ( ) const -> usize

returns the amount of memory this object occupies on heap Generated from method MR::Object::heapBytes.

Calls MR_Object_heapBytes().

◆ is_ancestor()

auto meshlib::Object::is_ancestor ( ancestor:Option<&meshlib::Object > ) const -> bool

return true if given object is ancestor of this one, false otherwise Generated from method MR::Object::isAncestor.

Calls MR_Object_isAncestor().

◆ is_ancillary()

auto meshlib::Object::is_ancillary ( ) const -> bool

Generated from method MR::Object::isAncillary.

Calls MR_Object_isAncillary().

◆ is_global_ancillary()

auto meshlib::Object::is_global_ancillary ( ) const -> bool

returns true if the object or any of its ancestors are ancillary Generated from method MR::Object::isGlobalAncillary.

Calls MR_Object_isGlobalAncillary().

◆ is_locked()

auto meshlib::Object::is_locked ( ) const -> bool

object properties lock for UI Generated from method MR::Object::isLocked.

Calls MR_Object_isLocked().

◆ is_parent_locked()

auto meshlib::Object::is_parent_locked ( ) const -> bool

If true, the scene tree GUI doesn't allow you to drag'n'drop this object into a different parent. Defaults to false. Generated from method MR::Object::isParentLocked.

Calls MR_Object_isParentLocked().

◆ is_selected()

auto meshlib::Object::is_selected ( ) const -> bool

Generated from method MR::Object::isSelected.

Calls MR_Object_isSelected().

◆ is_visible()

auto meshlib::Object::is_visible ( viewportMask:Option<&meshlib::ViewportMask > ) const -> bool

checks whether the object is visible in any of the viewports specified by the mask (by default in any viewport) Generated from method MR::Object::isVisible.

Calls MR_Object_isVisible().

◆ name()

auto meshlib::Object::name ( ) const -> &meshlib::std_string

Generated from method MR::Object::name.

Calls MR_Object_name().

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_Object_DefaultConstruct().

◆ parent()

auto meshlib::Object::parent ( ) const -> Option<&meshlib::Object >

returns parent object in the tree Generated from method MR::Object::parent.

Calls MR_Object_parent().

◆ parent_mut()

auto meshlib::Object::parent_mut ( ) -> Option<&mut meshlib::Object >

Generated from method MR::Object::parent.

Calls MR_Object_parent_mut().

◆ remove_all_children()

void meshlib::Object::remove_all_children ( )

detaches all recognized children from this, keeping all unrecognized ones Generated from method MR::Object::removeAllChildren.

Calls MR_Object_removeAllChildren().

◆ remove_child_mr_object_ptr()

auto meshlib::Object::remove_child_mr_object_ptr ( child:Option<&mut meshlib::Object > ) -> bool

Generated from method MR::Object::removeChild.

Calls MR_Object_removeChild_MR_Object_ptr().

◆ remove_child_std_shared_ptr_mr_object()

auto meshlib::Object::remove_child_std_shared_ptr_mr_object ( child:&meshlib::std_shared_ptr_MR_Object ) -> bool

returns false if it was not child of this Generated from method MR::Object::removeChild.

Calls MR_Object_removeChild_std_shared_ptr_MR_Object().

◆ remove_tag()

auto meshlib::Object::remove_tag ( tag:& str) -> bool

removes tag from the object's tag storage additionally calls ObjectTagManager::tagRemovedSignal Generated from method MR::Object::removeTag.

Calls MR_Object_removeTag().

◆ reset_redraw_flag()

void meshlib::Object::reset_redraw_flag ( ) const

Generated from method MR::Object::resetRedrawFlag.

Calls MR_Object_resetRedrawFlag().

◆ reset_xf()

void meshlib::Object::reset_xf ( id:Option<&meshlib::ViewportId > )

forgets specific transform in given viewport (or forgets all specific transforms for {} input) Generated from method MR::Object::resetXf.

Calls MR_Object_resetXf().

◆ same_models()

auto meshlib::Object::same_models ( other:&meshlib::Object ) const -> bool

return true if model of current object equals to model (the same) of other Generated from method MR::Object::sameModels.

Calls MR_Object_sameModels().

◆ select()

auto meshlib::Object::select ( on:bool ) -> bool

selects the object, returns true if value changed, otherwise returns false Generated from method MR::Object::select.

Calls MR_Object_select().

◆ set_ancillary()

void meshlib::Object::set_ancillary ( ancillary:bool )

ancillary object is an object hidden (in scene menu) from a regular user such objects cannot be selected, and if it has been selected, it is unselected when turn ancillary Generated from method MR::Object::setAncillary.

Calls MR_Object_setAncillary().

◆ set_global_visibility()

void meshlib::Object::set_global_visibility ( on:bool ,
viewportMask:Option<&meshlib::ViewportMask >  )

if true sets all predecessors visible, otherwise sets this object invisible Generated from method MR::Object::setGlobalVisibility.

Calls MR_Object_setGlobalVisibility().

◆ set_locked()

void meshlib::Object::set_locked ( on:bool )

Generated from method MR::Object::setLocked.

Calls MR_Object_setLocked().

◆ set_name()

void meshlib::Object::set_name ( name:& str)

Generated from method MR::Object::setName.

Calls MR_Object_setName().

◆ set_parent_locked()

void meshlib::Object::set_parent_locked ( lock:bool )

Generated from method MR::Object::setParentLocked.

Calls MR_Object_setParentLocked().

◆ set_visibility_mask()

void meshlib::Object::set_visibility_mask ( viewportMask:&meshlib::ViewportMask )

specifies object visibility as bitmask of viewports Generated from method MR::Object::setVisibilityMask.

Calls MR_Object_setVisibilityMask().

◆ set_visible()

void meshlib::Object::set_visible ( on:bool ,
viewportMask:Option<&meshlib::ViewportMask >  )

sets the object visible in the viewports specified by the mask (by default in all viewports) Generated from method MR::Object::setVisible.

Calls MR_Object_setVisible().

◆ set_world_xf()

void meshlib::Object::set_world_xf ( xf:&meshlib::AffineXf3f ,
id:Option<&meshlib::ViewportId >  )

Generated from method MR::Object::setWorldXf.

Calls MR_Object_setWorldXf().

◆ set_xf()

void meshlib::Object::set_xf ( xf:&meshlib::AffineXf3f ,
id:Option<&meshlib::ViewportId >  )

Generated from method MR::Object::setXf.

Calls MR_Object_setXf().

◆ set_xfs_for_all_viewports()

void meshlib::Object::set_xfs_for_all_viewports ( xf:&meshlib::ViewportProperty_MR_AffineXf3f )

modifies xfs for all viewports at once Generated from method MR::Object::setXfsForAllViewports.

Calls MR_Object_setXfsForAllViewports().

◆ shallow_clone()

auto meshlib::Object::shallow_clone ( ) const -> meshlib::Owned< meshlib::std_shared_ptr_MR_Object >

clones current object only, without parent and/or children clones only pointers to mesh, points or voxels Generated from method MR::Object::shallowClone.

Calls MR_Object_shallowClone().

◆ shallow_clone_tree()

auto meshlib::Object::shallow_clone_tree ( ) const -> meshlib::Owned< meshlib::std_shared_ptr_MR_Object >

clones all tree of this object (except ancillary and unrecognied children) clones only pointers to mesh, points or voxels Generated from method MR::Object::shallowCloneTree.

Calls MR_Object_shallowCloneTree().

◆ sort_children()

void meshlib::Object::sort_children ( )

sort recognized children by name Generated from method MR::Object::sortChildren.

Calls MR_Object_sortChildren().

◆ static_class_name()

auto meshlib::Object::static_class_name ( ) -> *const core::ffi::c_char
static

return human readable name of subclass Generated from method MR::Object::StaticClassName.

Calls MR_Object_StaticClassName().

◆ static_class_name_in_plural()

auto meshlib::Object::static_class_name_in_plural ( ) -> *const core::ffi::c_char
static

return human readable name of subclass in plural form Generated from method MR::Object::StaticClassNameInPlural.

Calls MR_Object_StaticClassNameInPlural().

◆ static_downcast_from_object_children_holder()

auto meshlib::Object::static_downcast_from_object_children_holder ( object:&meshlib::ObjectChildrenHolder ) -> &Self
static

Static downcast from the base class MR::ObjectChildrenHolder.

Calls MR_Object_StaticDowncastFrom_MR_ObjectChildrenHolder(). Undefined behavior if the object isn't actually a Object.

Note
This function is unsafe.

◆ static_downcast_from_object_children_holder_mut()

auto meshlib::Object::static_downcast_from_object_children_holder_mut ( object:&mut meshlib::ObjectChildrenHolder ) -> &mut Self
static

Static downcast from the base class MR::ObjectChildrenHolder.

Calls MR_Object_MutableStaticDowncastFrom_MR_ObjectChildrenHolder(). Undefined behavior if the object isn't actually a Object.

Note
This function is unsafe.

◆ static_type_name()

auto meshlib::Object::static_type_name ( ) -> *const core::ffi::c_char
static

return name of subtype for serialization purposes Generated from method MR::Object::StaticTypeName.

Calls MR_Object_StaticTypeName().

◆ swap()

void meshlib::Object::swap ( other:&mut meshlib::Object )

swaps this object with other note: do not swap object signals, so listeners will get notifications from swapped object requires implementation of swapBase_ and swapSignals_ (if type has signals) Generated from method MR::Object::swap.

Calls MR_Object_swap().

◆ tags()

auto meshlib::Object::tags ( ) const -> &meshlib::std_set_std_string

provides read-only access to the tag storage the storage is a set of unique strings Generated from method MR::Object::tags.

Calls MR_Object_tags().

◆ type_name()

auto meshlib::Object::type_name ( ) const -> Option<&core::ffi::c_char >

Generated from method MR::Object::typeName.

Calls MR_Object_typeName().

◆ upcast_to_object_children_holder()

auto meshlib::Object::upcast_to_object_children_holder ( ) const -> &meshlib::ObjectChildrenHolder

Upcasts to the base class MR::ObjectChildrenHolder.

Calls MR_Object_UpcastTo_MR_ObjectChildrenHolder().

◆ upcast_to_object_children_holder_mut()

auto meshlib::Object::upcast_to_object_children_holder_mut ( ) -> &mut meshlib::ObjectChildrenHolder

Upcasts to the base class MR::ObjectChildrenHolder.

Calls MR_Object_MutableUpcastTo_MR_ObjectChildrenHolder().

◆ visibility_mask()

auto meshlib::Object::visibility_mask ( ) const -> meshlib::Owned< meshlib::ViewportMask >

gets object visibility as bitmask of viewports Generated from method MR::Object::visibilityMask.

Calls MR_Object_visibilityMask().

◆ world_xf()

auto meshlib::Object::world_xf ( id:Option<&meshlib::ViewportId > ,
isDef:Option<&mut bool >  ) const -> meshlib::AffineXf3f

this space to world space transformation for default or specific viewport

Parameters
isDefreceives true if the object has default transformation in this viewport (same as worldXf() returns) Generated from method MR::Object::worldXf.

Calls MR_Object_worldXf().

◆ xf()

auto meshlib::Object::xf ( id:Option<&meshlib::ViewportId > ,
isDef:Option<&mut bool >  ) const -> &meshlib::AffineXf3f

this space to parent space transformation (to world space if no parent) for default or given viewport

Parameters
isDefreceives true if the object has default transformation in this viewport (same as xf() returns) Generated from method MR::Object::xf.

Calls MR_Object_xf().

◆ xfs_for_all_viewports()

auto meshlib::Object::xfs_for_all_viewports ( ) const -> &meshlib::ViewportProperty_MR_AffineXf3f

returns xfs for all viewports, combined into a single object Generated from method MR::Object::xfsForAllViewports.

Calls MR_Object_xfsForAllViewports().


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