Static Public Member Functions | |
| static auto | new () -> meshlib::Owned< meshlib::SceneRootObject > |
| static auto | construct_from_another (_other:meshlib::Owned< meshlib::SceneRootObject >) -> meshlib::Owned< meshlib::SceneRootObject > |
| 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 | root_name () -> *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 auto | static_downcast_from_object (object:&meshlib::Object) -> &Self |
| static auto | static_downcast_from_object_mut (object:&mut meshlib::Object) -> &mut Self |
| static auto | dynamic_downcast_from_object (object:&meshlib::Object) -> Option<&Self > |
| static auto | dynamic_downcast_from_object_mut (object:&mut meshlib::Object) -> Option<&mut Self > |
| Static Public Member Functions inherited from meshlib::CppClass | |
| static void | destroy (ptr:*mut Self) |
Object that is parent of all scene Generated from class MR::SceneRootObject. Base classes: Direct: (non-virtual) MR::Object Indirect: (non-virtual) MR::ObjectChildrenHolder
Generated from class MR::SceneRootObject. Heap-allocated instances are held in Owned<SceneRootObject>.
| auto meshlib::SceneRootObject::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;
| recognizedChild | if set to false then child object will be excluded from children() and it will be stored by weak_ptr Generated from method MR::SceneRootObject::addChild. |
Calls MR_SceneRootObject_addChild().
| auto meshlib::SceneRootObject::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::SceneRootObject::addChildBefore.
Calls MR_SceneRootObject_addChildBefore().
| auto meshlib::SceneRootObject::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::SceneRootObject::addTag.
Calls MR_SceneRootObject_addTag().
| void meshlib::SceneRootObject::apply_scale | ( | scaleFactor:f32 | ) |
scale object size (all point positions) Generated from method MR::SceneRootObject::applyScale.
Calls MR_SceneRootObject_applyScale().
| auto meshlib::SceneRootObject::assign_from_another | ( | _other:meshlib::Owned< meshlib::SceneRootObject > | ) | -> &mut meshlib::SceneRootObject |
Generated from method MR::SceneRootObject::operator=.
Calls MR_SceneRootObject_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.
| auto meshlib::SceneRootObject::class_name | ( | ) | const -> meshlib::Owned< meshlib::std_string > |
Generated from method MR::SceneRootObject::className.
Calls MR_SceneRootObject_className().
| auto meshlib::SceneRootObject::class_name_in_plural | ( | ) | const -> meshlib::Owned< meshlib::std_string > |
Generated from method MR::SceneRootObject::classNameInPlural.
Calls MR_SceneRootObject_classNameInPlural().
| auto meshlib::SceneRootObject::clone | ( | ) | const -> meshlib::Owned< meshlib::std_shared_ptr_MR_Object > |
Generated from method MR::SceneRootObject::clone.
Calls MR_SceneRootObject_clone().
| auto meshlib::SceneRootObject::clone_root | ( | ) | const -> meshlib::Owned< meshlib::std_shared_ptr_MR_SceneRootObject > |
same as clone but returns correct type Generated from method MR::SceneRootObject::cloneRoot.
Calls MR_SceneRootObject_cloneRoot().
| auto meshlib::SceneRootObject::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::SceneRootObject::cloneTree.
Calls MR_SceneRootObject_cloneTree().
| auto meshlib::SceneRootObject::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::SceneRootObject::constChildren.
Calls MR_SceneRootObject_constChildren().
|
static |
Generated from constructor MR::SceneRootObject::SceneRootObject.
Calls MR_SceneRootObject_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.
| auto meshlib::SceneRootObject::detach_from_parent | ( | ) | -> bool |
removes this from its parent children list returns false if it was already orphan Generated from method MR::SceneRootObject::detachFromParent.
Calls MR_SceneRootObject_detachFromParent().
|
static |
Dynamic downcast from the base class MR::Object. Returns None if the object isn't actually a SceneRootObject.
Calls MR_SceneRootObject_DynamicDowncastFrom_MR_Object().
|
static |
Dynamic downcast from the base class MR::Object. Returns None if the object isn't actually a SceneRootObject.
Calls MR_SceneRootObject_MutableDynamicDowncastFrom_MR_Object().
| auto meshlib::SceneRootObject::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::SceneRootObject::getInfoLines.
Calls MR_SceneRootObject_getInfoLines().
| auto meshlib::SceneRootObject::get_model_hash | ( | ) | const -> usize |
return hash of model (or hash object pointer if object has no model) Generated from method MR::SceneRootObject::getModelHash.
Calls MR_SceneRootObject_getModelHash().
| auto meshlib::SceneRootObject::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::SceneRootObject::getRedrawFlag.
Calls MR_SceneRootObject_getRedrawFlag().
| auto meshlib::SceneRootObject::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::SceneRootObject::getSharedPtr.
Calls MR_SceneRootObject_getSharedPtr().
| auto meshlib::SceneRootObject::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::SceneRootObject::getWorldBox.
Calls MR_SceneRootObject_getWorldBox().
| auto meshlib::SceneRootObject::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::SceneRootObject::getWorldTreeBox.
Calls MR_SceneRootObject_getWorldTreeBox().
| auto meshlib::SceneRootObject::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::SceneRootObject::globalVisibility.
Calls MR_SceneRootObject_globalVisibility().
| auto meshlib::SceneRootObject::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::SceneRootObject::globalVisibilityMask.
Calls MR_SceneRootObject_globalVisibilityMask().
| auto meshlib::SceneRootObject::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::SceneRootObject::hasModel.
Calls MR_SceneRootObject_hasModel().
| auto meshlib::SceneRootObject::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::SceneRootObject::hasVisualRepresentation.
Calls MR_SceneRootObject_hasVisualRepresentation().
| auto meshlib::SceneRootObject::heap_bytes | ( | ) | const -> usize |
returns the amount of memory this object occupies on heap Generated from method MR::SceneRootObject::heapBytes.
Calls MR_SceneRootObject_heapBytes().
| auto meshlib::SceneRootObject::is_ancestor | ( | ancestor:Option<&meshlib::Object > | ) | const -> bool |
return true if given object is ancestor of this one, false otherwise Generated from method MR::SceneRootObject::isAncestor.
Calls MR_SceneRootObject_isAncestor().
| auto meshlib::SceneRootObject::is_ancillary | ( | ) | const -> bool |
Generated from method MR::SceneRootObject::isAncillary.
Calls MR_SceneRootObject_isAncillary().
| auto meshlib::SceneRootObject::is_global_ancillary | ( | ) | const -> bool |
returns true if the object or any of its ancestors are ancillary Generated from method MR::SceneRootObject::isGlobalAncillary.
Calls MR_SceneRootObject_isGlobalAncillary().
| auto meshlib::SceneRootObject::is_locked | ( | ) | const -> bool |
object properties lock for UI Generated from method MR::SceneRootObject::isLocked.
Calls MR_SceneRootObject_isLocked().
| auto meshlib::SceneRootObject::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::SceneRootObject::isParentLocked.
Calls MR_SceneRootObject_isParentLocked().
| auto meshlib::SceneRootObject::is_selected | ( | ) | const -> bool |
Generated from method MR::SceneRootObject::isSelected.
Calls MR_SceneRootObject_isSelected().
| auto meshlib::SceneRootObject::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::SceneRootObject::isVisible.
Calls MR_SceneRootObject_isVisible().
| auto meshlib::SceneRootObject::name | ( | ) | const -> &meshlib::std_string |
Generated from method MR::SceneRootObject::name.
Calls MR_SceneRootObject_name().
|
static |
Constructs an empty (default-constructed) instance.
Calls MR_SceneRootObject_DefaultConstruct().
| void meshlib::SceneRootObject::remove_all_children | ( | ) |
detaches all recognized children from this, keeping all unrecognized ones Generated from method MR::SceneRootObject::removeAllChildren.
Calls MR_SceneRootObject_removeAllChildren().
| auto meshlib::SceneRootObject::remove_tag | ( | tag:& | str | ) | -> bool |
removes tag from the object's tag storage additionally calls ObjectTagManager::tagRemovedSignal Generated from method MR::SceneRootObject::removeTag.
Calls MR_SceneRootObject_removeTag().
| void meshlib::SceneRootObject::reset_redraw_flag | ( | ) | const |
Generated from method MR::SceneRootObject::resetRedrawFlag.
Calls MR_SceneRootObject_resetRedrawFlag().
| void meshlib::SceneRootObject::reset_xf | ( | id:Option<&meshlib::ViewportId > | ) |
forgets specific transform in given viewport (or forgets all specific transforms for {} input) Generated from method MR::SceneRootObject::resetXf.
Calls MR_SceneRootObject_resetXf().
|
static |
Generated from method MR::SceneRootObject::RootName.
Calls MR_SceneRootObject_RootName().
| auto meshlib::SceneRootObject::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::SceneRootObject::sameModels.
Calls MR_SceneRootObject_sameModels().
| auto meshlib::SceneRootObject::select | ( | _1:bool | ) | -> bool |
Generated from method MR::SceneRootObject::select.
Calls MR_SceneRootObject_select().
| void meshlib::SceneRootObject::set_ancillary | ( | _1:bool | ) |
Generated from method MR::SceneRootObject::setAncillary.
Calls MR_SceneRootObject_setAncillary().
| void meshlib::SceneRootObject::set_global_visibility | ( | on:bool | , |
| viewportMask:Option<&meshlib::ViewportMask > | ) |
if true sets all predecessors visible, otherwise sets this object invisible Generated from method MR::SceneRootObject::setGlobalVisibility.
Calls MR_SceneRootObject_setGlobalVisibility().
| void meshlib::SceneRootObject::set_locked | ( | on:bool | ) |
Generated from method MR::SceneRootObject::setLocked.
Calls MR_SceneRootObject_setLocked().
| void meshlib::SceneRootObject::set_name | ( | _1:& | str | ) |
Generated from method MR::SceneRootObject::setName.
Calls MR_SceneRootObject_setName().
| void meshlib::SceneRootObject::set_parent_locked | ( | lock:bool | ) |
Generated from method MR::SceneRootObject::setParentLocked.
Calls MR_SceneRootObject_setParentLocked().
| void meshlib::SceneRootObject::set_visibility_mask | ( | viewportMask:&meshlib::ViewportMask | ) |
specifies object visibility as bitmask of viewports Generated from method MR::SceneRootObject::setVisibilityMask.
Calls MR_SceneRootObject_setVisibilityMask().
| void meshlib::SceneRootObject::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::SceneRootObject::setVisible.
Calls MR_SceneRootObject_setVisible().
| void meshlib::SceneRootObject::set_world_xf | ( | xf:&meshlib::AffineXf3f | , |
| id:Option<&meshlib::ViewportId > | ) |
Generated from method MR::SceneRootObject::setWorldXf.
Calls MR_SceneRootObject_setWorldXf().
| void meshlib::SceneRootObject::set_xf | ( | xf:&meshlib::AffineXf3f | , |
| id:Option<&meshlib::ViewportId > | ) |
Generated from method MR::SceneRootObject::setXf.
Calls MR_SceneRootObject_setXf().
| void meshlib::SceneRootObject::set_xfs_for_all_viewports | ( | xf:&meshlib::ViewportProperty_MR_AffineXf3f | ) |
modifies xfs for all viewports at once Generated from method MR::SceneRootObject::setXfsForAllViewports.
Calls MR_SceneRootObject_setXfsForAllViewports().
| auto meshlib::SceneRootObject::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::SceneRootObject::shallowClone.
Calls MR_SceneRootObject_shallowClone().
| auto meshlib::SceneRootObject::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::SceneRootObject::shallowCloneTree.
Calls MR_SceneRootObject_shallowCloneTree().
| void meshlib::SceneRootObject::sort_children | ( | ) |
sort recognized children by name Generated from method MR::SceneRootObject::sortChildren.
Calls MR_SceneRootObject_sortChildren().
|
static |
Generated from method MR::SceneRootObject::StaticClassName.
Calls MR_SceneRootObject_StaticClassName().
|
static |
Generated from method MR::SceneRootObject::StaticClassNameInPlural.
Calls MR_SceneRootObject_StaticClassNameInPlural().
|
static |
Static downcast from the base class MR::Object.
Calls MR_SceneRootObject_StaticDowncastFrom_MR_Object(). Undefined behavior if the object isn't actually a SceneRootObject.
|
static |
Static downcast from the base class MR::ObjectChildrenHolder.
Calls MR_SceneRootObject_StaticDowncastFrom_MR_ObjectChildrenHolder(). Undefined behavior if the object isn't actually a SceneRootObject.
|
static |
Static downcast from the base class MR::ObjectChildrenHolder.
Calls MR_SceneRootObject_MutableStaticDowncastFrom_MR_ObjectChildrenHolder(). Undefined behavior if the object isn't actually a SceneRootObject.
|
static |
Static downcast from the base class MR::Object.
Calls MR_SceneRootObject_MutableStaticDowncastFrom_MR_Object(). Undefined behavior if the object isn't actually a SceneRootObject.
|
static |
Generated from method MR::SceneRootObject::StaticTypeName.
Calls MR_SceneRootObject_StaticTypeName().
| void meshlib::SceneRootObject::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::SceneRootObject::swap.
Calls MR_SceneRootObject_swap().
| auto meshlib::SceneRootObject::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::SceneRootObject::tags.
Calls MR_SceneRootObject_tags().
| auto meshlib::SceneRootObject::type_name | ( | ) | const -> Option<&core::ffi::c_char > |
Generated from method MR::SceneRootObject::typeName.
Calls MR_SceneRootObject_typeName().
| auto meshlib::SceneRootObject::upcast_to_object | ( | ) | const -> &meshlib::Object |
Upcasts to the base class MR::Object.
Calls MR_SceneRootObject_UpcastTo_MR_Object().
| auto meshlib::SceneRootObject::upcast_to_object_children_holder | ( | ) | const -> &meshlib::ObjectChildrenHolder |
Upcasts to the base class MR::ObjectChildrenHolder.
Calls MR_SceneRootObject_UpcastTo_MR_ObjectChildrenHolder().
| auto meshlib::SceneRootObject::upcast_to_object_children_holder_mut | ( | ) | -> &mut meshlib::ObjectChildrenHolder |
Upcasts to the base class MR::ObjectChildrenHolder.
Calls MR_SceneRootObject_MutableUpcastTo_MR_ObjectChildrenHolder().
| auto meshlib::SceneRootObject::upcast_to_object_mut | ( | ) | -> &mut meshlib::Object |
Upcasts to the base class MR::Object.
Calls MR_SceneRootObject_MutableUpcastTo_MR_Object().
| auto meshlib::SceneRootObject::visibility_mask | ( | ) | const -> meshlib::Owned< meshlib::ViewportMask > |
gets object visibility as bitmask of viewports Generated from method MR::SceneRootObject::visibilityMask.
Calls MR_SceneRootObject_visibilityMask().
| auto meshlib::SceneRootObject::world_xf | ( | id:Option<&meshlib::ViewportId > | , |
| isDef:Option<&mut bool > | ) const -> meshlib::AffineXf3f |
this space to world space transformation for default or specific viewport
| isDef | receives true if the object has default transformation in this viewport (same as worldXf() returns) Generated from method MR::SceneRootObject::worldXf. |
Calls MR_SceneRootObject_worldXf().
| auto meshlib::SceneRootObject::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
| isDef | receives true if the object has default transformation in this viewport (same as xf() returns) Generated from method MR::SceneRootObject::xf. |
Calls MR_SceneRootObject_xf().
| auto meshlib::SceneRootObject::xfs_for_all_viewports | ( | ) | const -> &meshlib::ViewportProperty_MR_AffineXf3f |
returns xfs for all viewports, combined into a single object Generated from method MR::SceneRootObject::xfsForAllViewports.
Calls MR_SceneRootObject_xfsForAllViewports().