This object type renders label in scene
default pivot point = (0, 0) Generated from class MR::ObjectLabel. Base classes: Direct: (non-virtual) MR::VisualObject Indirect: (non-virtual) MR::ObjectChildrenHolder MR::Object
Generated from class MR::ObjectLabel. Heap-allocated instances are held in Owned<ObjectLabel>.
| auto meshlib::ObjectLabel::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::ObjectLabel::addChild. |
Calls MR_ObjectLabel_addChild().
| auto meshlib::ObjectLabel::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::ObjectLabel::addChildBefore.
Calls MR_ObjectLabel_addChildBefore().
| auto meshlib::ObjectLabel::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::ObjectLabel::addTag.
Calls MR_ObjectLabel_addTag().
| void meshlib::ObjectLabel::apply_scale | ( | scaleFactor:f32 | ) |
Generated from method MR::ObjectLabel::applyScale.
Calls MR_ObjectLabel_applyScale().
| auto meshlib::ObjectLabel::assign_from_another | ( | _other:meshlib::Owned< meshlib::ObjectLabel > | ) | -> &mut meshlib::ObjectLabel |
Generated from method MR::ObjectLabel::operator=.
Calls MR_ObjectLabel_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.
| void meshlib::ObjectLabel::build_mesh_from_text | ( | ) | const |
Loads font, and converts the symbols of text into mesh; since this operation is time consuming, one can call this method in parallel for several ObjectLabels before rendering Generated from method MR::ObjectLabel::buildMeshFromText.
Calls MR_ObjectLabel_buildMeshFromText().
| auto meshlib::ObjectLabel::class_name | ( | ) | const -> meshlib::Owned< meshlib::std_string > |
Generated from method MR::ObjectLabel::className.
Calls MR_ObjectLabel_className().
| auto meshlib::ObjectLabel::class_name_in_plural | ( | ) | const -> meshlib::Owned< meshlib::std_string > |
Generated from method MR::ObjectLabel::classNameInPlural.
Calls MR_ObjectLabel_classNameInPlural().
| auto meshlib::ObjectLabel::clone | ( | ) | const -> meshlib::Owned< meshlib::std_shared_ptr_MR_Object > |
Generated from method MR::ObjectLabel::clone.
Calls MR_ObjectLabel_clone().
| auto meshlib::ObjectLabel::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::ObjectLabel::cloneTree.
Calls MR_ObjectLabel_cloneTree().
| auto meshlib::ObjectLabel::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::ObjectLabel::constChildren.
Calls MR_ObjectLabel_constChildren().
|
static |
Generated from constructor MR::ObjectLabel::ObjectLabel.
Calls MR_ObjectLabel_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.
| void meshlib::ObjectLabel::copy_all_solid_colors | ( | other:&meshlib::VisualObject | ) |
set all object solid colors (front/back/etc.) from other object for all viewports Generated from method MR::ObjectLabel::copyAllSolidColors.
Calls MR_ObjectLabel_copyAllSolidColors().
| auto meshlib::ObjectLabel::detach_from_parent | ( | ) | -> bool |
removes this from its parent children list returns false if it was already orphan Generated from method MR::ObjectLabel::detachFromParent.
Calls MR_ObjectLabel_detachFromParent().
|
static |
Dynamic downcast from the base class MR::Object. Returns None if the object isn't actually a ObjectLabel.
Calls MR_ObjectLabel_DynamicDowncastFrom_MR_Object().
|
static |
Dynamic downcast from the base class MR::Object. Returns None if the object isn't actually a ObjectLabel.
Calls MR_ObjectLabel_MutableDynamicDowncastFrom_MR_Object().
|
static |
Dynamic downcast from the base class MR::VisualObject. Returns None if the object isn't actually a ObjectLabel.
Calls MR_ObjectLabel_DynamicDowncastFrom_MR_VisualObject().
|
static |
Dynamic downcast from the base class MR::VisualObject. Returns None if the object isn't actually a ObjectLabel.
Calls MR_ObjectLabel_MutableDynamicDowncastFrom_MR_VisualObject().
| auto meshlib::ObjectLabel::get_all_visualize_properties | ( | ) | const -> meshlib::Owned< meshlib::std_vector_MR_ViewportMask > |
get all visualize properties masks Generated from method MR::ObjectLabel::getAllVisualizeProperties.
Calls MR_ObjectLabel_getAllVisualizeProperties().
| auto meshlib::ObjectLabel::get_ambient_strength | ( | ) | const -> f32 |
returns intensity of non-directional light Generated from method MR::ObjectLabel::getAmbientStrength.
Calls MR_ObjectLabel_getAmbientStrength().
| auto meshlib::ObjectLabel::get_back_color | ( | viewportId:Option<&meshlib::ViewportId > | ) | const -> &meshlib::Color |
returns backward color of object in given viewport Generated from method MR::ObjectLabel::getBackColor.
Calls MR_ObjectLabel_getBackColor().
| auto meshlib::ObjectLabel::get_back_colors_for_all_viewports | ( | ) | const -> &meshlib::ViewportProperty_MR_Color |
returns backward color of object in all viewports Generated from method MR::ObjectLabel::getBackColorsForAllViewports.
Calls MR_ObjectLabel_getBackColorsForAllViewports().
| auto meshlib::ObjectLabel::get_background_padding | ( | ) | const -> f32 |
returns background padding in pixels Generated from method MR::ObjectLabel::getBackgroundPadding.
Calls MR_ObjectLabel_getBackgroundPadding().
| auto meshlib::ObjectLabel::get_bounding_box | ( | ) | const -> meshlib::Box3f |
returns cached bounding box of this object in local coordinates Generated from method MR::ObjectLabel::getBoundingBox.
Calls MR_ObjectLabel_getBoundingBox().
| auto meshlib::ObjectLabel::get_coloring_type | ( | ) | const -> meshlib::ColoringType |
returns the current coloring mode of the object Generated from method MR::ObjectLabel::getColoringType.
Calls MR_ObjectLabel_getColoringType().
| auto meshlib::ObjectLabel::get_contour_color | ( | id:Option<&meshlib::ViewportId > | ) | const -> &meshlib::Color |
return contour color Generated from method MR::ObjectLabel::getContourColor.
Calls MR_ObjectLabel_getContourColor().
| auto meshlib::ObjectLabel::get_contour_colors_for_all_viewports | ( | ) | const -> &meshlib::ViewportProperty_MR_Color |
Generated from method MR::ObjectLabel::getContourColorsForAllViewports.
Calls MR_ObjectLabel_getContourColorsForAllViewports().
| auto meshlib::ObjectLabel::get_dirty_flags | ( | ) | const -> core::ffi::c_uint |
returns current dirty flags for the object Generated from method MR::ObjectLabel::getDirtyFlags.
Calls MR_ObjectLabel_getDirtyFlags().
| auto meshlib::ObjectLabel::get_font_height | ( | ) | const -> f32 |
returns size of label font on screen in pixels Generated from method MR::ObjectLabel::getFontHeight.
Calls MR_ObjectLabel_getFontHeight().
| auto meshlib::ObjectLabel::get_font_path | ( | ) | const -> &meshlib::std_filesystem_path |
Generated from method MR::ObjectLabel::getFontPath.
Calls MR_ObjectLabel_getFontPath().
| auto meshlib::ObjectLabel::get_front_color | ( | selected:Option< bool > | , |
| viewportId:Option<&meshlib::ViewportId > | ) const -> &meshlib::Color |
returns color of object when it is selected/not-selected (depending on argument) in given viewport Generated from method MR::ObjectLabel::getFrontColor.
Calls MR_ObjectLabel_getFrontColor().
| auto meshlib::ObjectLabel::get_front_colors_for_all_viewports | ( | selected:Option< bool > | ) | const -> &meshlib::ViewportProperty_MR_Color |
returns color of object when it is selected/not-selected (depending on argument) in all viewports Generated from method MR::ObjectLabel::getFrontColorsForAllViewports.
Calls MR_ObjectLabel_getFrontColorsForAllViewports().
| auto meshlib::ObjectLabel::get_global_alpha | ( | viewportId:Option<&meshlib::ViewportId > | ) | const -> &core::ffi::c_uchar |
returns global transparency alpha of object in given viewport Generated from method MR::ObjectLabel::getGlobalAlpha.
Calls MR_ObjectLabel_getGlobalAlpha().
| auto meshlib::ObjectLabel::get_global_alpha_for_all_viewports | ( | ) | const -> &meshlib::ViewportProperty_unsigned_char |
returns global transparency alpha of object in all viewports Generated from method MR::ObjectLabel::getGlobalAlphaForAllViewports.
Calls MR_ObjectLabel_getGlobalAlphaForAllViewports().
| auto meshlib::ObjectLabel::get_info_lines | ( | ) | const -> meshlib::Owned< meshlib::std_vector_std_string > |
return several info lines that can better describe the object in the UI Generated from method MR::ObjectLabel::getInfoLines.
Calls MR_ObjectLabel_getInfoLines().
| auto meshlib::ObjectLabel::get_label | ( | ) | const -> &meshlib::PositionedText |
Generated from method MR::ObjectLabel::getLabel.
Calls MR_ObjectLabel_getLabel().
| auto meshlib::ObjectLabel::get_leader_line_color | ( | id:Option<&meshlib::ViewportId > | ) | const -> &meshlib::Color |
return color of leader line Generated from method MR::ObjectLabel::getLeaderLineColor.
Calls MR_ObjectLabel_getLeaderLineColor().
| auto meshlib::ObjectLabel::get_leader_line_colors_for_all_viewports | ( | ) | const -> &meshlib::ViewportProperty_MR_Color |
Generated from method MR::ObjectLabel::getLeaderLineColorsForAllViewports.
Calls MR_ObjectLabel_getLeaderLineColorsForAllViewports().
| auto meshlib::ObjectLabel::get_leader_line_width | ( | ) | const -> f32 |
returns width of leader line in pixels Generated from method MR::ObjectLabel::getLeaderLineWidth.
Calls MR_ObjectLabel_getLeaderLineWidth().
| auto meshlib::ObjectLabel::get_model_hash | ( | ) | const -> usize |
return hash of model (or hash object pointer if object has no model) Generated from method MR::ObjectLabel::getModelHash.
Calls MR_ObjectLabel_getModelHash().
| auto meshlib::ObjectLabel::get_pivot_point | ( | ) | const -> &meshlib::Vector2f |
get pivot point Generated from method MR::ObjectLabel::getPivotPoint.
Calls MR_ObjectLabel_getPivotPoint().
| auto meshlib::ObjectLabel::get_pivot_shift | ( | ) | const -> &meshlib::Vector2f |
get pivot shift (pivot point * text diagonal) Generated from method MR::ObjectLabel::getPivotShift.
Calls MR_ObjectLabel_getPivotShift().
| auto meshlib::ObjectLabel::get_redraw_flag | ( | viewportMask:&meshlib::ViewportMask | ) | const -> bool |
returns true if the object must be redrawn (due to dirty flags) in one of specified viewports Generated from method MR::ObjectLabel::getRedrawFlag.
Calls MR_ObjectLabel_getRedrawFlag().
| auto meshlib::ObjectLabel::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::ObjectLabel::getSharedPtr.
Calls MR_ObjectLabel_getSharedPtr().
| auto meshlib::ObjectLabel::get_shininess | ( | ) | const -> f32 |
returns the current shininess visual value Generated from method MR::ObjectLabel::getShininess.
Calls MR_ObjectLabel_getShininess().
| auto meshlib::ObjectLabel::get_source_point_color | ( | id:Option<&meshlib::ViewportId > | ) | const -> &meshlib::Color |
returns color of source point Generated from method MR::ObjectLabel::getSourcePointColor.
Calls MR_ObjectLabel_getSourcePointColor().
| auto meshlib::ObjectLabel::get_source_point_colors_for_all_viewports | ( | ) | const -> &meshlib::ViewportProperty_MR_Color |
Generated from method MR::ObjectLabel::getSourcePointColorsForAllViewports.
Calls MR_ObjectLabel_getSourcePointColorsForAllViewports().
| auto meshlib::ObjectLabel::get_source_point_size | ( | ) | const -> f32 |
returns size of source point in pixels Generated from method MR::ObjectLabel::getSourcePointSize.
Calls MR_ObjectLabel_getSourcePointSize().
| auto meshlib::ObjectLabel::get_specular_strength | ( | ) | const -> f32 |
returns intensity of reflections Generated from method MR::ObjectLabel::getSpecularStrength.
Calls MR_ObjectLabel_getSpecularStrength().
| auto meshlib::ObjectLabel::get_visualize_property | ( | type:&meshlib::AnyVisualizeMaskEnum | , |
| viewportMask:&meshlib::ViewportMask | ) const -> bool |
returns true if the property is set at least in one viewport specified by the mask Generated from method MR::ObjectLabel::getVisualizeProperty.
Calls MR_ObjectLabel_getVisualizeProperty().
| auto meshlib::ObjectLabel::get_visualize_property_mask | ( | type:&meshlib::AnyVisualizeMaskEnum | ) | const -> &meshlib::ViewportMask |
returns mask of viewports where given property is set Generated from method MR::ObjectLabel::getVisualizePropertyMask.
Calls MR_ObjectLabel_getVisualizePropertyMask().
| auto meshlib::ObjectLabel::get_world_box | ( | _1:Option<&meshlib::ViewportId > | ) | const -> meshlib::Box3f |
returns cached bounding box of this label object in world coordinates; if you need bounding box in local coordinates please call getBoundingBox() Generated from method MR::ObjectLabel::getWorldBox.
Calls MR_ObjectLabel_getWorldBox().
| auto meshlib::ObjectLabel::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::ObjectLabel::getWorldTreeBox.
Calls MR_ObjectLabel_getWorldTreeBox().
| auto meshlib::ObjectLabel::global_clipped_by_plane | ( | viewportMask:Option<&meshlib::ViewportMask > | ) | const -> bool |
returns true if this object or any of its parents is clipped by plane in any of given viewports Generated from method MR::ObjectLabel::globalClippedByPlane.
Calls MR_ObjectLabel_globalClippedByPlane().
| auto meshlib::ObjectLabel::global_clipped_by_plane_mask | ( | ) | const -> meshlib::Owned< meshlib::ViewportMask > |
returns all viewports where this object or any of its parents is clipped by plane Generated from method MR::ObjectLabel::globalClippedByPlaneMask.
Calls MR_ObjectLabel_globalClippedByPlaneMask().
| auto meshlib::ObjectLabel::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::ObjectLabel::globalVisibility.
Calls MR_ObjectLabel_globalVisibility().
| auto meshlib::ObjectLabel::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::ObjectLabel::globalVisibilityMask.
Calls MR_ObjectLabel_globalVisibilityMask().
| auto meshlib::ObjectLabel::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::ObjectLabel::hasModel.
Calls MR_ObjectLabel_hasModel().
| auto meshlib::ObjectLabel::has_visual_representation | ( | ) | const -> bool |
Generated from method MR::ObjectLabel::hasVisualRepresentation.
Calls MR_ObjectLabel_hasVisualRepresentation().
| auto meshlib::ObjectLabel::heap_bytes | ( | ) | const -> usize |
returns the amount of memory this object occupies on heap Generated from method MR::ObjectLabel::heapBytes.
Calls MR_ObjectLabel_heapBytes().
| auto meshlib::ObjectLabel::is_ancestor | ( | ancestor:Option<&meshlib::Object > | ) | const -> bool |
return true if given object is ancestor of this one, false otherwise Generated from method MR::ObjectLabel::isAncestor.
Calls MR_ObjectLabel_isAncestor().
| auto meshlib::ObjectLabel::is_ancillary | ( | ) | const -> bool |
Generated from method MR::ObjectLabel::isAncillary.
Calls MR_ObjectLabel_isAncillary().
| auto meshlib::ObjectLabel::is_global_ancillary | ( | ) | const -> bool |
returns true if the object or any of its ancestors are ancillary Generated from method MR::ObjectLabel::isGlobalAncillary.
Calls MR_ObjectLabel_isGlobalAncillary().
| auto meshlib::ObjectLabel::is_locked | ( | ) | const -> bool |
object properties lock for UI Generated from method MR::ObjectLabel::isLocked.
Calls MR_ObjectLabel_isLocked().
| auto meshlib::ObjectLabel::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::ObjectLabel::isParentLocked.
Calls MR_ObjectLabel_isParentLocked().
| auto meshlib::ObjectLabel::is_pickable | ( | viewportMask:Option<&meshlib::ViewportMask > | ) | const -> bool |
whether the object can be picked (by mouse) in any of given viewports Generated from method MR::ObjectLabel::isPickable.
Calls MR_ObjectLabel_isPickable().
| auto meshlib::ObjectLabel::is_selected | ( | ) | const -> bool |
Generated from method MR::ObjectLabel::isSelected.
Calls MR_ObjectLabel_isSelected().
| auto meshlib::ObjectLabel::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::ObjectLabel::isVisible.
Calls MR_ObjectLabel_isVisible().
| auto meshlib::ObjectLabel::label_representing_mesh | ( | ) | const -> &meshlib::std_shared_ptr_MR_Mesh |
returns mesh that represents current label only used in Render object for binding, cleared after it Generated from method MR::ObjectLabel::labelRepresentingMesh.
Calls MR_ObjectLabel_labelRepresentingMesh().
| auto meshlib::ObjectLabel::name | ( | ) | const -> &meshlib::std_string |
Generated from method MR::ObjectLabel::name.
Calls MR_ObjectLabel_name().
|
static |
Constructs an empty (default-constructed) instance.
Calls MR_ObjectLabel_DefaultConstruct().
| void meshlib::ObjectLabel::remove_all_children | ( | ) |
detaches all recognized children from this, keeping all unrecognized ones Generated from method MR::ObjectLabel::removeAllChildren.
Calls MR_ObjectLabel_removeAllChildren().
| auto meshlib::ObjectLabel::remove_tag | ( | tag:& | str | ) | -> bool |
removes tag from the object's tag storage additionally calls ObjectTagManager::tagRemovedSignal Generated from method MR::ObjectLabel::removeTag.
Calls MR_ObjectLabel_removeTag().
| auto meshlib::ObjectLabel::render | ( | _1:&meshlib::ModelRenderParams | ) | const -> bool |
draws this object for visualization Returns true if something was drawn. Generated from method MR::ObjectLabel::render.
Calls MR_ObjectLabel_render().
| void meshlib::ObjectLabel::render_for_picker | ( | _1:&meshlib::ModelBaseRenderParams | , |
| _2:core::ffi::c_uint | ) const |
draws this object for picking Generated from method MR::ObjectLabel::renderForPicker.
Calls MR_ObjectLabel_renderForPicker().
| void meshlib::ObjectLabel::render_ui | ( | params:&meshlib::UiRenderParams | ) | const |
draws this object for 2d UI Generated from method MR::ObjectLabel::renderUi.
Calls MR_ObjectLabel_renderUi().
| void meshlib::ObjectLabel::reset_colors | ( | ) |
reset all object colors to their default values from the current theme Generated from method MR::ObjectLabel::resetColors.
Calls MR_ObjectLabel_resetColors().
| void meshlib::ObjectLabel::reset_dirty | ( | ) | const |
resets all dirty flags (except for cache flags that will be reset automatically on cache update) Generated from method MR::ObjectLabel::resetDirty.
Calls MR_ObjectLabel_resetDirty().
| void meshlib::ObjectLabel::reset_dirty_except_mask | ( | mask:core::ffi::c_uint | ) | const |
reset dirty flags without some specific bits (useful for lazy normals update) Generated from method MR::ObjectLabel::resetDirtyExceptMask.
Calls MR_ObjectLabel_resetDirtyExceptMask().
| void meshlib::ObjectLabel::reset_front_color | ( | ) |
reset basic object colors to their default values from the current theme Generated from method MR::ObjectLabel::resetFrontColor.
Calls MR_ObjectLabel_resetFrontColor().
| void meshlib::ObjectLabel::reset_redraw_flag | ( | ) | const |
Generated from method MR::ObjectLabel::resetRedrawFlag.
Calls MR_ObjectLabel_resetRedrawFlag().
| void meshlib::ObjectLabel::reset_xf | ( | id:Option<&meshlib::ViewportId > | ) |
forgets specific transform in given viewport (or forgets all specific transforms for {} input) Generated from method MR::ObjectLabel::resetXf.
Calls MR_ObjectLabel_resetXf().
| auto meshlib::ObjectLabel::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::ObjectLabel::sameModels.
Calls MR_ObjectLabel_sameModels().
| auto meshlib::ObjectLabel::select | ( | on:bool | ) | -> bool |
selects the object, returns true if value changed, otherwise returns false Generated from method MR::ObjectLabel::select.
Calls MR_ObjectLabel_select().
| void meshlib::ObjectLabel::set_all_visualize_properties | ( | properties:&meshlib::std_vector_MR_ViewportMask | ) |
set all visualize properties masks Generated from method MR::ObjectLabel::setAllVisualizeProperties.
Calls MR_ObjectLabel_setAllVisualizeProperties().
| void meshlib::ObjectLabel::set_ambient_strength | ( | ambientStrength:f32 | ) |
sets intensity of non-directional light Generated from method MR::ObjectLabel::setAmbientStrength.
Calls MR_ObjectLabel_setAmbientStrength().
| void meshlib::ObjectLabel::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::ObjectLabel::setAncillary.
Calls MR_ObjectLabel_setAncillary().
| void meshlib::ObjectLabel::set_back_color | ( | color:&meshlib::Color | , |
| viewportId:Option<&meshlib::ViewportId > | ) |
sets backward color of object in given viewport Generated from method MR::ObjectLabel::setBackColor.
Calls MR_ObjectLabel_setBackColor().
| void meshlib::ObjectLabel::set_back_colors_for_all_viewports | ( | val:&meshlib::ViewportProperty_MR_Color | ) |
sets backward color of object in all viewports Generated from method MR::ObjectLabel::setBackColorsForAllViewports.
Calls MR_ObjectLabel_setBackColorsForAllViewports().
| void meshlib::ObjectLabel::set_background_padding | ( | padding:f32 | ) |
sets background padding in pixels Generated from method MR::ObjectLabel::setBackgroundPadding.
Calls MR_ObjectLabel_setBackgroundPadding().
| void meshlib::ObjectLabel::set_coloring_type | ( | coloringType:meshlib::ColoringType | ) |
sets coloring mode of the object with given argument Generated from method MR::ObjectLabel::setColoringType.
Calls MR_ObjectLabel_setColoringType().
| void meshlib::ObjectLabel::set_contour_color | ( | color:&meshlib::Color | , |
| id:Option<&meshlib::ViewportId > | ) |
sets contour color Generated from method MR::ObjectLabel::setContourColor.
Calls MR_ObjectLabel_setContourColor().
| void meshlib::ObjectLabel::set_contour_colors_for_all_viewports | ( | val:&meshlib::ViewportProperty_MR_Color | ) |
Generated from method MR::ObjectLabel::setContourColorsForAllViewports.
Calls MR_ObjectLabel_setContourColorsForAllViewports().
| void meshlib::ObjectLabel::set_dirty_flags | ( | mask:core::ffi::c_uint | , |
| invalidateCaches:Option< bool > | ) |
sets some dirty flags for the object (to force its visual update)
| mask | is a union of DirtyFlags flags |
| invalidateCaches | whether to automatically invalidate model caches (pass false here if you manually update the caches) Generated from method MR::ObjectLabel::setDirtyFlags. |
Calls MR_ObjectLabel_setDirtyFlags().
| void meshlib::ObjectLabel::set_font_height | ( | size:f32 | ) |
sets size of label font in pixels Generated from method MR::ObjectLabel::setFontHeight.
Calls MR_ObjectLabel_setFontHeight().
| void meshlib::ObjectLabel::set_font_path | ( | pathToFont:& | str | ) |
sets path to font file Generated from method MR::ObjectLabel::setFontPath.
Calls MR_ObjectLabel_setFontPath().
| void meshlib::ObjectLabel::set_front_color | ( | color:&meshlib::Color | , |
| selected:bool | , | ||
| viewportId:Option<&meshlib::ViewportId > | ) |
sets color of object when it is selected/not-selected (depending on argument) in given viewport Generated from method MR::ObjectLabel::setFrontColor.
Calls MR_ObjectLabel_setFrontColor().
| void meshlib::ObjectLabel::set_front_colors_for_all_viewports | ( | val:&meshlib::ViewportProperty_MR_Color | , |
| selected:Option< bool > | ) |
sets color of object when it is selected/not-selected (depending on argument) in all viewports Generated from method MR::ObjectLabel::setFrontColorsForAllViewports.
Calls MR_ObjectLabel_setFrontColorsForAllViewports().
| void meshlib::ObjectLabel::set_global_alpha | ( | alpha:core::ffi::c_uchar | , |
| viewportId:Option<&meshlib::ViewportId > | ) |
sets global transparency alpha of object in given viewport Generated from method MR::ObjectLabel::setGlobalAlpha.
Calls MR_ObjectLabel_setGlobalAlpha().
| void meshlib::ObjectLabel::set_global_alpha_for_all_viewports | ( | val:&meshlib::ViewportProperty_unsigned_char | ) |
sets global transparency alpha of object in all viewports Generated from method MR::ObjectLabel::setGlobalAlphaForAllViewports.
Calls MR_ObjectLabel_setGlobalAlphaForAllViewports().
| void meshlib::ObjectLabel::set_global_clipped_by_plane | ( | on:bool | , |
| viewportMask:Option<&meshlib::ViewportMask > | ) |
if false deactivates clipped-by-plane for this object and all of its parents, otherwise sets clipped-by-plane for this this object only Generated from method MR::ObjectLabel::setGlobalClippedByPlane.
Calls MR_ObjectLabel_setGlobalClippedByPlane().
| void meshlib::ObjectLabel::set_global_visibility | ( | on:bool | , |
| viewportMask:Option<&meshlib::ViewportMask > | ) |
if true sets all predecessors visible, otherwise sets this object invisible Generated from method MR::ObjectLabel::setGlobalVisibility.
Calls MR_ObjectLabel_setGlobalVisibility().
| void meshlib::ObjectLabel::set_label | ( | label:&meshlib::PositionedText | ) |
sets text and position of label Generated from method MR::ObjectLabel::setLabel.
Calls MR_ObjectLabel_setLabel().
| void meshlib::ObjectLabel::set_leader_line_color | ( | color:&meshlib::Color | , |
| id:Option<&meshlib::ViewportId > | ) |
sets color of leader line Generated from method MR::ObjectLabel::setLeaderLineColor.
Calls MR_ObjectLabel_setLeaderLineColor().
| void meshlib::ObjectLabel::set_leader_line_colors_for_all_viewports | ( | val:&meshlib::ViewportProperty_MR_Color | ) |
Generated from method MR::ObjectLabel::setLeaderLineColorsForAllViewports.
Calls MR_ObjectLabel_setLeaderLineColorsForAllViewports().
| void meshlib::ObjectLabel::set_leader_line_width | ( | width:f32 | ) |
sets width of leader line in pixels Generated from method MR::ObjectLabel::setLeaderLineWidth.
Calls MR_ObjectLabel_setLeaderLineWidth().
| void meshlib::ObjectLabel::set_locked | ( | on:bool | ) |
Generated from method MR::ObjectLabel::setLocked.
Calls MR_ObjectLabel_setLocked().
| void meshlib::ObjectLabel::set_name | ( | name:& | str | ) |
Generated from method MR::ObjectLabel::setName.
Calls MR_ObjectLabel_setName().
| void meshlib::ObjectLabel::set_parent_locked | ( | lock:bool | ) |
Generated from method MR::ObjectLabel::setParentLocked.
Calls MR_ObjectLabel_setParentLocked().
| void meshlib::ObjectLabel::set_pickable | ( | on:bool | , |
| viewportMask:Option<&meshlib::ViewportMask > | ) |
sets the object as can/cannot be picked (by mouse) in all of given viewports Generated from method MR::ObjectLabel::setPickable.
Calls MR_ObjectLabel_setPickable().
| void meshlib::ObjectLabel::set_pivot_point | ( | pivotPoint:&meshlib::Vector2f | ) |
set pivot point
| pivotPoint | - text location parameter of relative to text position point [0, 0] - text position point is left-down corner of text [1, 1] - text position point is right-up corner can be outside range [0, 0] - [1, 1] Generated from method MR::ObjectLabel::setPivotPoint. |
Calls MR_ObjectLabel_setPivotPoint().
| void meshlib::ObjectLabel::set_shininess | ( | shininess:f32 | ) |
sets shininess visual value of the object with given argument Generated from method MR::ObjectLabel::setShininess.
Calls MR_ObjectLabel_setShininess().
| void meshlib::ObjectLabel::set_source_point_color | ( | color:&meshlib::Color | , |
| id:Option<&meshlib::ViewportId > | ) |
sets color of source point Generated from method MR::ObjectLabel::setSourcePointColor.
Calls MR_ObjectLabel_setSourcePointColor().
| void meshlib::ObjectLabel::set_source_point_colors_for_all_viewports | ( | val:&meshlib::ViewportProperty_MR_Color | ) |
Generated from method MR::ObjectLabel::setSourcePointColorsForAllViewports.
Calls MR_ObjectLabel_setSourcePointColorsForAllViewports().
| void meshlib::ObjectLabel::set_source_point_size | ( | size:f32 | ) |
sets size of source point in pixels Generated from method MR::ObjectLabel::setSourcePointSize.
Calls MR_ObjectLabel_setSourcePointSize().
| void meshlib::ObjectLabel::set_specular_strength | ( | specularStrength:f32 | ) |
sets intensity of reflections Generated from method MR::ObjectLabel::setSpecularStrength.
Calls MR_ObjectLabel_setSpecularStrength().
| void meshlib::ObjectLabel::set_use_default_scene_properties_on_deserialization | ( | useDefaultScenePropertiesOnDeserialization:bool | ) |
set whether the scene-related properties should get their values from SceneColors and SceneSettings instances rather than from the input data on deserialization Generated from method MR::ObjectLabel::setUseDefaultScenePropertiesOnDeserialization.
Calls MR_ObjectLabel_setUseDefaultScenePropertiesOnDeserialization().
| void meshlib::ObjectLabel::set_visibility_mask | ( | viewportMask:&meshlib::ViewportMask | ) |
specifies object visibility as bitmask of viewports Generated from method MR::ObjectLabel::setVisibilityMask.
Calls MR_ObjectLabel_setVisibilityMask().
| void meshlib::ObjectLabel::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::ObjectLabel::setVisible.
Calls MR_ObjectLabel_setVisible().
| void meshlib::ObjectLabel::set_visualize_property | ( | value:bool | , |
| type:&meshlib::AnyVisualizeMaskEnum | , | ||
| viewportMask:&meshlib::ViewportMask | ) |
set visual property in all viewports specified by the mask Generated from method MR::ObjectLabel::setVisualizeProperty.
Calls MR_ObjectLabel_setVisualizeProperty().
| void meshlib::ObjectLabel::set_visualize_property_mask | ( | type:&meshlib::AnyVisualizeMaskEnum | , |
| viewportMask:&meshlib::ViewportMask | ) |
set visual property mask Generated from method MR::ObjectLabel::setVisualizePropertyMask.
Calls MR_ObjectLabel_setVisualizePropertyMask().
| void meshlib::ObjectLabel::set_world_xf | ( | xf:&meshlib::AffineXf3f | , |
| id:Option<&meshlib::ViewportId > | ) |
Generated from method MR::ObjectLabel::setWorldXf.
Calls MR_ObjectLabel_setWorldXf().
| void meshlib::ObjectLabel::set_xf | ( | xf:&meshlib::AffineXf3f | , |
| id:Option<&meshlib::ViewportId > | ) |
Generated from method MR::ObjectLabel::setXf.
Calls MR_ObjectLabel_setXf().
| void meshlib::ObjectLabel::set_xfs_for_all_viewports | ( | xf:&meshlib::ViewportProperty_MR_AffineXf3f | ) |
modifies xfs for all viewports at once Generated from method MR::ObjectLabel::setXfsForAllViewports.
Calls MR_ObjectLabel_setXfsForAllViewports().
| auto meshlib::ObjectLabel::shallow_clone | ( | ) | const -> meshlib::Owned< meshlib::std_shared_ptr_MR_Object > |
Generated from method MR::ObjectLabel::shallowClone.
Calls MR_ObjectLabel_shallowClone().
| auto meshlib::ObjectLabel::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::ObjectLabel::shallowCloneTree.
Calls MR_ObjectLabel_shallowCloneTree().
| void meshlib::ObjectLabel::sort_children | ( | ) |
sort recognized children by name Generated from method MR::ObjectLabel::sortChildren.
Calls MR_ObjectLabel_sortChildren().
|
static |
Generated from method MR::ObjectLabel::StaticClassName.
Calls MR_ObjectLabel_StaticClassName().
|
static |
Generated from method MR::ObjectLabel::StaticClassNameInPlural.
Calls MR_ObjectLabel_StaticClassNameInPlural().
|
static |
Static downcast from the base class MR::Object.
Calls MR_ObjectLabel_StaticDowncastFrom_MR_Object(). Undefined behavior if the object isn't actually a ObjectLabel.
|
static |
Static downcast from the base class MR::ObjectChildrenHolder.
Calls MR_ObjectLabel_StaticDowncastFrom_MR_ObjectChildrenHolder(). Undefined behavior if the object isn't actually a ObjectLabel.
|
static |
Static downcast from the base class MR::ObjectChildrenHolder.
Calls MR_ObjectLabel_MutableStaticDowncastFrom_MR_ObjectChildrenHolder(). Undefined behavior if the object isn't actually a ObjectLabel.
|
static |
Static downcast from the base class MR::Object.
Calls MR_ObjectLabel_MutableStaticDowncastFrom_MR_Object(). Undefined behavior if the object isn't actually a ObjectLabel.
|
static |
Static downcast from the base class MR::VisualObject.
Calls MR_ObjectLabel_StaticDowncastFrom_MR_VisualObject(). Undefined behavior if the object isn't actually a ObjectLabel.
|
static |
Static downcast from the base class MR::VisualObject.
Calls MR_ObjectLabel_MutableStaticDowncastFrom_MR_VisualObject(). Undefined behavior if the object isn't actually a ObjectLabel.
|
static |
Generated from method MR::ObjectLabel::StaticTypeName.
Calls MR_ObjectLabel_StaticTypeName().
| auto meshlib::ObjectLabel::supports_visualize_property | ( | type:&meshlib::AnyVisualizeMaskEnum | ) | const -> bool |
Returns true if this class supports the property type. Otherwise passing it to the functions below is illegal. Generated from method MR::ObjectLabel::supportsVisualizeProperty.
Calls MR_ObjectLabel_supportsVisualizeProperty().
| void meshlib::ObjectLabel::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::ObjectLabel::swap.
Calls MR_ObjectLabel_swap().
| auto meshlib::ObjectLabel::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::ObjectLabel::tags.
Calls MR_ObjectLabel_tags().
| void meshlib::ObjectLabel::toggle_visualize_property | ( | type:&meshlib::AnyVisualizeMaskEnum | , |
| viewportMask:&meshlib::ViewportMask | ) |
toggle visual property in all viewports specified by the mask Generated from method MR::ObjectLabel::toggleVisualizeProperty.
Calls MR_ObjectLabel_toggleVisualizeProperty().
| auto meshlib::ObjectLabel::type_name | ( | ) | const -> Option<&core::ffi::c_char > |
Generated from method MR::ObjectLabel::typeName.
Calls MR_ObjectLabel_typeName().
| auto meshlib::ObjectLabel::upcast_to_object | ( | ) | const -> &meshlib::Object |
Upcasts to the base class MR::Object.
Calls MR_ObjectLabel_UpcastTo_MR_Object().
| auto meshlib::ObjectLabel::upcast_to_object_children_holder | ( | ) | const -> &meshlib::ObjectChildrenHolder |
Upcasts to the base class MR::ObjectChildrenHolder.
Calls MR_ObjectLabel_UpcastTo_MR_ObjectChildrenHolder().
| auto meshlib::ObjectLabel::upcast_to_object_children_holder_mut | ( | ) | -> &mut meshlib::ObjectChildrenHolder |
Upcasts to the base class MR::ObjectChildrenHolder.
Calls MR_ObjectLabel_MutableUpcastTo_MR_ObjectChildrenHolder().
| auto meshlib::ObjectLabel::upcast_to_object_mut | ( | ) | -> &mut meshlib::Object |
Upcasts to the base class MR::Object.
Calls MR_ObjectLabel_MutableUpcastTo_MR_Object().
| auto meshlib::ObjectLabel::upcast_to_visual_object | ( | ) | const -> &meshlib::VisualObject |
Upcasts to the base class MR::VisualObject.
Calls MR_ObjectLabel_UpcastTo_MR_VisualObject().
| auto meshlib::ObjectLabel::upcast_to_visual_object_mut | ( | ) | -> &mut meshlib::VisualObject |
Upcasts to the base class MR::VisualObject.
Calls MR_ObjectLabel_MutableUpcastTo_MR_VisualObject().
| auto meshlib::ObjectLabel::use_default_scene_properties_on_deserialization | ( | ) | const -> bool |
whether the scene-related properties should get their values from SceneColors and SceneSettings instances rather than from the input data on deserialization Generated from method MR::ObjectLabel::useDefaultScenePropertiesOnDeserialization.
Calls MR_ObjectLabel_useDefaultScenePropertiesOnDeserialization().
| auto meshlib::ObjectLabel::visibility_mask | ( | ) | const -> meshlib::Owned< meshlib::ViewportMask > |
gets object visibility as bitmask of viewports Generated from method MR::ObjectLabel::visibilityMask.
Calls MR_ObjectLabel_visibilityMask().
| auto meshlib::ObjectLabel::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::ObjectLabel::worldXf. |
Calls MR_ObjectLabel_worldXf().
| auto meshlib::ObjectLabel::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::ObjectLabel::xf. |
Calls MR_ObjectLabel_xf().
| auto meshlib::ObjectLabel::xfs_for_all_viewports | ( | ) | const -> &meshlib::ViewportProperty_MR_AffineXf3f |
returns xfs for all viewports, combined into a single object Generated from method MR::ObjectLabel::xfsForAllViewports.
Calls MR_ObjectLabel_xfsForAllViewports().