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

Public Member Functions

auto assign_from_another (_other:meshlib::Owned< meshlib::DistanceMeasurementObject >) -> &mut meshlib::DistanceMeasurementObject
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 clone () const -> meshlib::Owned< meshlib::std_shared_ptr_MR_Object >
auto shallow_clone () const -> meshlib::Owned< meshlib::std_shared_ptr_MR_Object >
auto get_world_point () const -> meshlib::Vector3f
auto get_local_point () const -> meshlib::Vector3f
auto get_world_delta () const -> meshlib::Vector3f
auto get_local_delta () const -> meshlib::Vector3f
void set_local_point (point:&meshlib::Vector3f)
void set_local_delta (delta:&meshlib::Vector3f)
auto is_negative () const -> bool
void set_is_negative (value:bool)
auto get_distance_mode () const -> meshlib::DistanceMeasurementObject_DistanceMode
void set_distance_mode (mode:meshlib::DistanceMeasurementObject_DistanceMode)
auto compute_distance () const -> f32
auto get_info_lines () const -> meshlib::Owned< meshlib::std_vector_std_string >
auto num_comparable_properties () const -> usize
auto get_comparable_property_name (i:usize) const -> meshlib::Owned< meshlib::std_string_view >
auto compute_comparable_property (i:usize) const -> meshlib::Owned< meshlib::std_optional_MR_ObjectComparableWithReference_ComparableProperty >
auto get_comparison_tolerence (i:usize) const -> meshlib::Owned< meshlib::std_optional_MR_ObjectComparableWithReference_ComparisonTolerance >
void set_comparison_tolerance (i:usize, newTolerance:Option<&meshlib::ObjectComparableWithReference_ComparisonTolerance >)
auto get_comparison_reference_value_name (i:usize) const -> meshlib::Owned< meshlib::std_string_view >
auto get_comparison_reference_value (i:usize) const -> meshlib::Owned< meshlib::ObjectComparableWithReference_ComparisonReferenceValue >
void set_comparison_reference_value (i:usize, value:Option<&meshlib::std_variant_float_MR_Vector3f >)
auto supports_visualize_property (type:&meshlib::AnyVisualizeMaskEnum) const -> bool
void set_visualize_property (value:bool, type:&meshlib::AnyVisualizeMaskEnum, viewportMask:&meshlib::ViewportMask)
void set_visualize_property_mask (type:&meshlib::AnyVisualizeMaskEnum, viewportMask:&meshlib::ViewportMask)
auto get_visualize_property (type:&meshlib::AnyVisualizeMaskEnum, viewportMask:&meshlib::ViewportMask) const -> bool
auto get_visualize_property_mask (type:&meshlib::AnyVisualizeMaskEnum) const -> &meshlib::ViewportMask
void toggle_visualize_property (type:&meshlib::AnyVisualizeMaskEnum, viewportMask:&meshlib::ViewportMask)
auto get_all_visualize_properties () const -> meshlib::Owned< meshlib::std_vector_MR_ViewportMask >
void set_all_visualize_properties (properties:&meshlib::std_vector_MR_ViewportMask)
void copy_all_solid_colors (other:&meshlib::VisualObject)
auto global_clipped_by_plane_mask () const -> meshlib::Owned< meshlib::ViewportMask >
auto global_clipped_by_plane (viewportMask:Option<&meshlib::ViewportMask >) const -> bool
void set_global_clipped_by_plane (on:bool, viewportMask:Option<&meshlib::ViewportMask >)
auto get_front_color (selected:Option< bool >, viewportId:Option<&meshlib::ViewportId >) const -> &meshlib::Color
void set_front_color (color:&meshlib::Color, selected:bool, viewportId:Option<&meshlib::ViewportId >)
auto get_front_colors_for_all_viewports (selected:Option< bool >) const -> &meshlib::ViewportProperty_MR_Color
void set_front_colors_for_all_viewports (val:&meshlib::ViewportProperty_MR_Color, selected:Option< bool >)
auto get_back_colors_for_all_viewports () const -> &meshlib::ViewportProperty_MR_Color
void set_back_colors_for_all_viewports (val:&meshlib::ViewportProperty_MR_Color)
auto get_back_color (viewportId:Option<&meshlib::ViewportId >) const -> &meshlib::Color
void set_back_color (color:&meshlib::Color, viewportId:Option<&meshlib::ViewportId >)
auto get_global_alpha (viewportId:Option<&meshlib::ViewportId >) const -> &core::ffi::c_uchar
void set_global_alpha (alpha:core::ffi::c_uchar, viewportId:Option<&meshlib::ViewportId >)
auto get_global_alpha_for_all_viewports () const -> &meshlib::ViewportProperty_unsigned_char
void set_global_alpha_for_all_viewports (val:&meshlib::ViewportProperty_unsigned_char)
void set_dirty_flags (mask:core::ffi::c_uint, invalidateCaches:Option< bool >)
auto get_dirty_flags () const -> core::ffi::c_uint
void reset_dirty () const
void reset_dirty_except_mask (mask:core::ffi::c_uint) const
auto get_bounding_box () const -> meshlib::Box3f
auto get_world_box (_1:Option<&meshlib::ViewportId >) const -> meshlib::Box3f
auto get_redraw_flag (viewportMask:&meshlib::ViewportMask) const -> bool
auto is_pickable (viewportMask:Option<&meshlib::ViewportMask >) const -> bool
void set_pickable (on:bool, viewportMask:Option<&meshlib::ViewportMask >)
auto get_coloring_type () const -> meshlib::ColoringType
void set_coloring_type (coloringType:meshlib::ColoringType)
auto get_shininess () const -> f32
void set_shininess (shininess:f32)
auto get_specular_strength () const -> f32
void set_specular_strength (specularStrength:f32)
auto get_ambient_strength () const -> f32
void set_ambient_strength (ambientStrength:f32)
auto render (_1:&meshlib::ModelRenderParams) const -> bool
void render_for_picker (_1:&meshlib::ModelBaseRenderParams, _2:core::ffi::c_uint) const
void render_ui (params:&meshlib::UiRenderParams) const
auto heap_bytes () const -> usize
auto use_default_scene_properties_on_deserialization () const -> bool
void set_use_default_scene_properties_on_deserialization (useDefaultScenePropertiesOnDeserialization:bool)
void reset_front_color ()
void reset_colors ()
auto name () const -> &meshlib::std_string
void set_name (name:&str)
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 is_ancestor (ancestor:Option<&meshlib::Object >) const -> bool
auto detach_from_parent () -> bool
auto const_children () const -> meshlib::Owned< meshlib::ConstChildren >
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
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 >
void reset_redraw_flag () const
auto clone_tree () const -> meshlib::Owned< meshlib::std_shared_ptr_MR_Object >
auto shallow_clone_tree () const -> meshlib::Owned< meshlib::std_shared_ptr_MR_Object >
void swap (other:&mut meshlib::Object)
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 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 comparison_tolerance_is_always_only_positive (i:usize) const -> bool
auto num_comparison_reference_values () const -> usize
void set_comparison_reference_val (i:usize, value:&meshlib::ObjectComparableWithReference_ComparisonReferenceValue)
auto upcast_to_object_children_holder () const -> &meshlib::ObjectChildrenHolder
auto upcast_to_object_children_holder_mut () -> &mut meshlib::ObjectChildrenHolder
auto upcast_to_object () const -> &meshlib::Object
auto upcast_to_object_mut () -> &mut meshlib::Object
auto upcast_to_visual_object () const -> &meshlib::VisualObject
auto upcast_to_visual_object_mut () -> &mut meshlib::VisualObject
auto upcast_to_measurement_object () const -> &meshlib::MeasurementObject
auto upcast_to_measurement_object_mut () -> &mut meshlib::MeasurementObject
auto upcast_to_object_comparable_with_reference () const -> &meshlib::ObjectComparableWithReference
auto upcast_to_object_comparable_with_reference_mut () -> &mut meshlib::ObjectComparableWithReference

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::DistanceMeasurementObject >
static auto construct_from_another (_other:meshlib::Owned< meshlib::DistanceMeasurementObject >) -> meshlib::Owned< meshlib::DistanceMeasurementObject >
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 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 auto static_downcast_from_visual_object (object:&meshlib::VisualObject) -> &Self
static auto static_downcast_from_visual_object_mut (object:&mut meshlib::VisualObject) -> &mut Self
static auto dynamic_downcast_from_visual_object (object:&meshlib::VisualObject) -> Option<&Self >
static auto dynamic_downcast_from_visual_object_mut (object:&mut meshlib::VisualObject) -> Option<&mut Self >
static auto static_downcast_from_measurement_object (object:&meshlib::MeasurementObject) -> &Self
static auto static_downcast_from_measurement_object_mut (object:&mut meshlib::MeasurementObject) -> &mut Self
static auto dynamic_downcast_from_measurement_object (object:&meshlib::MeasurementObject) -> Option<&Self >
static auto dynamic_downcast_from_measurement_object_mut (object:&mut meshlib::MeasurementObject) -> Option<&mut Self >
static auto static_downcast_from_object_comparable_with_reference (object:&meshlib::ObjectComparableWithReference) -> &Self
static auto static_downcast_from_object_comparable_with_reference_mut (object:&mut meshlib::ObjectComparableWithReference) -> &mut Self
static auto dynamic_downcast_from_object_comparable_with_reference (object:&meshlib::ObjectComparableWithReference) -> Option<&Self >
static auto dynamic_downcast_from_object_comparable_with_reference_mut (object:&mut meshlib::ObjectComparableWithReference) -> Option<&mut Self >
Static Public Member Functions inherited from meshlib::CppClass
static void destroy (ptr:*mut Self)

Detailed Description

Represents a distance measurement. Generated from class MR::DistanceMeasurementObject. Base classes: Direct: (non-virtual) MR::MeasurementObject MR::ObjectComparableWithReference Indirect: (non-virtual) MR::ObjectChildrenHolder MR::Object MR::VisualObject

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

Member Function Documentation

◆ add_child()

auto meshlib::DistanceMeasurementObject::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::DistanceMeasurementObject::addChild.

Calls MR_DistanceMeasurementObject_addChild().

◆ add_child_before()

auto meshlib::DistanceMeasurementObject::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::DistanceMeasurementObject::addChildBefore.

Calls MR_DistanceMeasurementObject_addChildBefore().

◆ add_tag()

auto meshlib::DistanceMeasurementObject::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::DistanceMeasurementObject::addTag.

Calls MR_DistanceMeasurementObject_addTag().

◆ apply_scale()

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

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

Calls MR_DistanceMeasurementObject_applyScale().

◆ assign_from_another()

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

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

Calls MR_DistanceMeasurementObject_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.

◆ class_name()

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

Generated from method MR::DistanceMeasurementObject::className.

Calls MR_DistanceMeasurementObject_className().

◆ class_name_in_plural()

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

Generated from method MR::DistanceMeasurementObject::classNameInPlural.

Calls MR_DistanceMeasurementObject_classNameInPlural().

◆ clone()

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

Generated from method MR::DistanceMeasurementObject::clone.

Calls MR_DistanceMeasurementObject_clone().

◆ clone_tree()

auto meshlib::DistanceMeasurementObject::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::DistanceMeasurementObject::cloneTree.

Calls MR_DistanceMeasurementObject_cloneTree().

◆ comparison_tolerance_is_always_only_positive()

auto meshlib::DistanceMeasurementObject::comparison_tolerance_is_always_only_positive ( i:usize ) const -> bool

If true, indicates that the getter will always return zero negative tolerance, and the setter will ignore the negative tolerance. i goes up to numComparableProperties(), exclusive. Generated from method MR::DistanceMeasurementObject::comparisonToleranceIsAlwaysOnlyPositive.

Calls MR_DistanceMeasurementObject_comparisonToleranceIsAlwaysOnlyPositive().

◆ compute_comparable_property()

auto meshlib::DistanceMeasurementObject::compute_comparable_property ( i:usize ) const -> meshlib::Owned< meshlib::std_optional_MR_ObjectComparableWithReference_ComparableProperty >

Generated from method MR::DistanceMeasurementObject::computeComparableProperty.

Calls MR_DistanceMeasurementObject_computeComparableProperty().

◆ compute_distance()

auto meshlib::DistanceMeasurementObject::compute_distance ( ) const -> f32

Computes the distance value. This is affected by getDistanceMode(). In euclidean, this is getWorldDelta().length() * (isNegative() ? -1 : 1). Generated from method MR::DistanceMeasurementObject::computeDistance.

Calls MR_DistanceMeasurementObject_computeDistance().

◆ const_children()

auto meshlib::DistanceMeasurementObject::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::DistanceMeasurementObject::constChildren.

Calls MR_DistanceMeasurementObject_constChildren().

◆ construct_from_another()

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

Generated from constructor MR::DistanceMeasurementObject::DistanceMeasurementObject.

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

◆ copy_all_solid_colors()

void meshlib::DistanceMeasurementObject::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::DistanceMeasurementObject::copyAllSolidColors.

Calls MR_DistanceMeasurementObject_copyAllSolidColors().

◆ detach_from_parent()

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

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

Calls MR_DistanceMeasurementObject_detachFromParent().

◆ dynamic_downcast_from_measurement_object()

auto meshlib::DistanceMeasurementObject::dynamic_downcast_from_measurement_object ( object:&meshlib::MeasurementObject ) -> Option<&Self >
static

Dynamic downcast from the base class MR::MeasurementObject. Returns None if the object isn't actually a DistanceMeasurementObject.

Calls MR_DistanceMeasurementObject_DynamicDowncastFrom_MR_MeasurementObject().

◆ dynamic_downcast_from_measurement_object_mut()

auto meshlib::DistanceMeasurementObject::dynamic_downcast_from_measurement_object_mut ( object:&mut meshlib::MeasurementObject ) -> Option<&mut Self >
static

Dynamic downcast from the base class MR::MeasurementObject. Returns None if the object isn't actually a DistanceMeasurementObject.

Calls MR_DistanceMeasurementObject_MutableDynamicDowncastFrom_MR_MeasurementObject().

◆ dynamic_downcast_from_object()

auto meshlib::DistanceMeasurementObject::dynamic_downcast_from_object ( object:&meshlib::Object ) -> Option<&Self >
static

Dynamic downcast from the base class MR::Object. Returns None if the object isn't actually a DistanceMeasurementObject.

Calls MR_DistanceMeasurementObject_DynamicDowncastFrom_MR_Object().

◆ dynamic_downcast_from_object_comparable_with_reference()

auto meshlib::DistanceMeasurementObject::dynamic_downcast_from_object_comparable_with_reference ( object:&meshlib::ObjectComparableWithReference ) -> Option<&Self >
static

Dynamic downcast from the base class MR::ObjectComparableWithReference. Returns None if the object isn't actually a DistanceMeasurementObject.

Calls MR_DistanceMeasurementObject_DynamicDowncastFrom_MR_ObjectComparableWithReference().

◆ dynamic_downcast_from_object_comparable_with_reference_mut()

auto meshlib::DistanceMeasurementObject::dynamic_downcast_from_object_comparable_with_reference_mut ( object:&mut meshlib::ObjectComparableWithReference ) -> Option<&mut Self >
static

Dynamic downcast from the base class MR::ObjectComparableWithReference. Returns None if the object isn't actually a DistanceMeasurementObject.

Calls MR_DistanceMeasurementObject_MutableDynamicDowncastFrom_MR_ObjectComparableWithReference().

◆ dynamic_downcast_from_object_mut()

auto meshlib::DistanceMeasurementObject::dynamic_downcast_from_object_mut ( object:&mut meshlib::Object ) -> Option<&mut Self >
static

Dynamic downcast from the base class MR::Object. Returns None if the object isn't actually a DistanceMeasurementObject.

Calls MR_DistanceMeasurementObject_MutableDynamicDowncastFrom_MR_Object().

◆ dynamic_downcast_from_visual_object()

auto meshlib::DistanceMeasurementObject::dynamic_downcast_from_visual_object ( object:&meshlib::VisualObject ) -> Option<&Self >
static

Dynamic downcast from the base class MR::VisualObject. Returns None if the object isn't actually a DistanceMeasurementObject.

Calls MR_DistanceMeasurementObject_DynamicDowncastFrom_MR_VisualObject().

◆ dynamic_downcast_from_visual_object_mut()

auto meshlib::DistanceMeasurementObject::dynamic_downcast_from_visual_object_mut ( object:&mut meshlib::VisualObject ) -> Option<&mut Self >
static

Dynamic downcast from the base class MR::VisualObject. Returns None if the object isn't actually a DistanceMeasurementObject.

Calls MR_DistanceMeasurementObject_MutableDynamicDowncastFrom_MR_VisualObject().

◆ get_all_visualize_properties()

auto meshlib::DistanceMeasurementObject::get_all_visualize_properties ( ) const -> meshlib::Owned< meshlib::std_vector_MR_ViewportMask >

get all visualize properties masks Generated from method MR::DistanceMeasurementObject::getAllVisualizeProperties.

Calls MR_DistanceMeasurementObject_getAllVisualizeProperties().

◆ get_ambient_strength()

auto meshlib::DistanceMeasurementObject::get_ambient_strength ( ) const -> f32

returns intensity of non-directional light Generated from method MR::DistanceMeasurementObject::getAmbientStrength.

Calls MR_DistanceMeasurementObject_getAmbientStrength().

◆ get_back_color()

auto meshlib::DistanceMeasurementObject::get_back_color ( viewportId:Option<&meshlib::ViewportId > ) const -> &meshlib::Color

returns backward color of object in given viewport Generated from method MR::DistanceMeasurementObject::getBackColor.

Calls MR_DistanceMeasurementObject_getBackColor().

◆ get_back_colors_for_all_viewports()

auto meshlib::DistanceMeasurementObject::get_back_colors_for_all_viewports ( ) const -> &meshlib::ViewportProperty_MR_Color

returns backward color of object in all viewports Generated from method MR::DistanceMeasurementObject::getBackColorsForAllViewports.

Calls MR_DistanceMeasurementObject_getBackColorsForAllViewports().

◆ get_bounding_box()

auto meshlib::DistanceMeasurementObject::get_bounding_box ( ) const -> meshlib::Box3f

returns cached bounding box of this object in local coordinates Generated from method MR::DistanceMeasurementObject::getBoundingBox.

Calls MR_DistanceMeasurementObject_getBoundingBox().

◆ get_coloring_type()

auto meshlib::DistanceMeasurementObject::get_coloring_type ( ) const -> meshlib::ColoringType

returns the current coloring mode of the object Generated from method MR::DistanceMeasurementObject::getColoringType.

Calls MR_DistanceMeasurementObject_getColoringType().

◆ get_comparable_property_name()

auto meshlib::DistanceMeasurementObject::get_comparable_property_name ( i:usize ) const -> meshlib::Owned< meshlib::std_string_view >

Generated from method MR::DistanceMeasurementObject::getComparablePropertyName.

Calls MR_DistanceMeasurementObject_getComparablePropertyName().

◆ get_comparison_reference_value()

auto meshlib::DistanceMeasurementObject::get_comparison_reference_value ( i:usize ) const -> meshlib::Owned< meshlib::ObjectComparableWithReference_ComparisonReferenceValue >

Generated from method MR::DistanceMeasurementObject::getComparisonReferenceValue.

Calls MR_DistanceMeasurementObject_getComparisonReferenceValue().

◆ get_comparison_reference_value_name()

auto meshlib::DistanceMeasurementObject::get_comparison_reference_value_name ( i:usize ) const -> meshlib::Owned< meshlib::std_string_view >

Generated from method MR::DistanceMeasurementObject::getComparisonReferenceValueName.

Calls MR_DistanceMeasurementObject_getComparisonReferenceValueName().

◆ get_comparison_tolerence()

auto meshlib::DistanceMeasurementObject::get_comparison_tolerence ( i:usize ) const -> meshlib::Owned< meshlib::std_optional_MR_ObjectComparableWithReference_ComparisonTolerance >

Generated from method MR::DistanceMeasurementObject::getComparisonTolerence.

Calls MR_DistanceMeasurementObject_getComparisonTolerence().

◆ get_dirty_flags()

auto meshlib::DistanceMeasurementObject::get_dirty_flags ( ) const -> core::ffi::c_uint

returns current dirty flags for the object Generated from method MR::DistanceMeasurementObject::getDirtyFlags.

Calls MR_DistanceMeasurementObject_getDirtyFlags().

◆ get_distance_mode()

auto meshlib::DistanceMeasurementObject::get_distance_mode ( ) const -> meshlib::DistanceMeasurementObject_DistanceMode

Whether we should draw the individual X/Y/Z deltas in addition to the distance itself. Generated from method MR::DistanceMeasurementObject::getDistanceMode.

Calls MR_DistanceMeasurementObject_getDistanceMode().

◆ get_front_color()

auto meshlib::DistanceMeasurementObject::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::DistanceMeasurementObject::getFrontColor.

Calls MR_DistanceMeasurementObject_getFrontColor().

◆ get_front_colors_for_all_viewports()

auto meshlib::DistanceMeasurementObject::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::DistanceMeasurementObject::getFrontColorsForAllViewports.

Calls MR_DistanceMeasurementObject_getFrontColorsForAllViewports().

◆ get_global_alpha()

auto meshlib::DistanceMeasurementObject::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::DistanceMeasurementObject::getGlobalAlpha.

Calls MR_DistanceMeasurementObject_getGlobalAlpha().

◆ get_global_alpha_for_all_viewports()

auto meshlib::DistanceMeasurementObject::get_global_alpha_for_all_viewports ( ) const -> &meshlib::ViewportProperty_unsigned_char

returns global transparency alpha of object in all viewports Generated from method MR::DistanceMeasurementObject::getGlobalAlphaForAllViewports.

Calls MR_DistanceMeasurementObject_getGlobalAlphaForAllViewports().

◆ get_info_lines()

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

Generated from method MR::DistanceMeasurementObject::getInfoLines.

Calls MR_DistanceMeasurementObject_getInfoLines().

◆ get_local_delta()

auto meshlib::DistanceMeasurementObject::get_local_delta ( ) const -> meshlib::Vector3f

Generated from method MR::DistanceMeasurementObject::getLocalDelta.

Calls MR_DistanceMeasurementObject_getLocalDelta().

◆ get_local_point()

auto meshlib::DistanceMeasurementObject::get_local_point ( ) const -> meshlib::Vector3f

Get the starting point in local coordinates. Generated from method MR::DistanceMeasurementObject::getLocalPoint.

Calls MR_DistanceMeasurementObject_getLocalPoint().

◆ get_model_hash()

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

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

Calls MR_DistanceMeasurementObject_getModelHash().

◆ get_redraw_flag()

auto meshlib::DistanceMeasurementObject::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::DistanceMeasurementObject::getRedrawFlag.

Calls MR_DistanceMeasurementObject_getRedrawFlag().

◆ get_shared_ptr()

auto meshlib::DistanceMeasurementObject::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::DistanceMeasurementObject::getSharedPtr.

Calls MR_DistanceMeasurementObject_getSharedPtr().

◆ get_shininess()

auto meshlib::DistanceMeasurementObject::get_shininess ( ) const -> f32

returns the current shininess visual value Generated from method MR::DistanceMeasurementObject::getShininess.

Calls MR_DistanceMeasurementObject_getShininess().

◆ get_specular_strength()

auto meshlib::DistanceMeasurementObject::get_specular_strength ( ) const -> f32

returns intensity of reflections Generated from method MR::DistanceMeasurementObject::getSpecularStrength.

Calls MR_DistanceMeasurementObject_getSpecularStrength().

◆ get_visualize_property()

auto meshlib::DistanceMeasurementObject::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::DistanceMeasurementObject::getVisualizeProperty.

Calls MR_DistanceMeasurementObject_getVisualizeProperty().

◆ get_visualize_property_mask()

auto meshlib::DistanceMeasurementObject::get_visualize_property_mask ( type:&meshlib::AnyVisualizeMaskEnum ) const -> &meshlib::ViewportMask

returns mask of viewports where given property is set Generated from method MR::DistanceMeasurementObject::getVisualizePropertyMask.

Calls MR_DistanceMeasurementObject_getVisualizePropertyMask().

◆ get_world_box()

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

returns bounding box of this object in given viewport in world coordinates, to get world bounding box of the object with all child objects, please call Object::getWorldTreeBox method Generated from method MR::DistanceMeasurementObject::getWorldBox.

Calls MR_DistanceMeasurementObject_getWorldBox().

◆ get_world_delta()

auto meshlib::DistanceMeasurementObject::get_world_delta ( ) const -> meshlib::Vector3f

The delta from the starting point to the other point. Generated from method MR::DistanceMeasurementObject::getWorldDelta.

Calls MR_DistanceMeasurementObject_getWorldDelta().

◆ get_world_point()

auto meshlib::DistanceMeasurementObject::get_world_point ( ) const -> meshlib::Vector3f

Get the starting point in world coordinates. Generated from method MR::DistanceMeasurementObject::getWorldPoint.

Calls MR_DistanceMeasurementObject_getWorldPoint().

◆ get_world_tree_box()

auto meshlib::DistanceMeasurementObject::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::DistanceMeasurementObject::getWorldTreeBox.

Calls MR_DistanceMeasurementObject_getWorldTreeBox().

◆ global_clipped_by_plane()

auto meshlib::DistanceMeasurementObject::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::DistanceMeasurementObject::globalClippedByPlane.

Calls MR_DistanceMeasurementObject_globalClippedByPlane().

◆ global_clipped_by_plane_mask()

auto meshlib::DistanceMeasurementObject::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::DistanceMeasurementObject::globalClippedByPlaneMask.

Calls MR_DistanceMeasurementObject_globalClippedByPlaneMask().

◆ global_visibility()

auto meshlib::DistanceMeasurementObject::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::DistanceMeasurementObject::globalVisibility.

Calls MR_DistanceMeasurementObject_globalVisibility().

◆ global_visibility_mask()

auto meshlib::DistanceMeasurementObject::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::DistanceMeasurementObject::globalVisibilityMask.

Calls MR_DistanceMeasurementObject_globalVisibilityMask().

◆ has_model()

auto meshlib::DistanceMeasurementObject::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::DistanceMeasurementObject::hasModel.

Calls MR_DistanceMeasurementObject_hasModel().

◆ has_visual_representation()

auto meshlib::DistanceMeasurementObject::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::DistanceMeasurementObject::hasVisualRepresentation.

Calls MR_DistanceMeasurementObject_hasVisualRepresentation().

◆ heap_bytes()

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

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

Calls MR_DistanceMeasurementObject_heapBytes().

◆ is_ancestor()

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

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

Calls MR_DistanceMeasurementObject_isAncestor().

◆ is_ancillary()

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

Generated from method MR::DistanceMeasurementObject::isAncillary.

Calls MR_DistanceMeasurementObject_isAncillary().

◆ is_global_ancillary()

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

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

Calls MR_DistanceMeasurementObject_isGlobalAncillary().

◆ is_locked()

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

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

Calls MR_DistanceMeasurementObject_isLocked().

◆ is_negative()

auto meshlib::DistanceMeasurementObject::is_negative ( ) const -> bool

Whether the distance should be displayed as a negative one. Generated from method MR::DistanceMeasurementObject::isNegative.

Calls MR_DistanceMeasurementObject_isNegative().

◆ is_parent_locked()

auto meshlib::DistanceMeasurementObject::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::DistanceMeasurementObject::isParentLocked.

Calls MR_DistanceMeasurementObject_isParentLocked().

◆ is_pickable()

auto meshlib::DistanceMeasurementObject::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::DistanceMeasurementObject::isPickable.

Calls MR_DistanceMeasurementObject_isPickable().

◆ is_selected()

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

Generated from method MR::DistanceMeasurementObject::isSelected.

Calls MR_DistanceMeasurementObject_isSelected().

◆ is_visible()

auto meshlib::DistanceMeasurementObject::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::DistanceMeasurementObject::isVisible.

Calls MR_DistanceMeasurementObject_isVisible().

◆ name()

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

Generated from method MR::DistanceMeasurementObject::name.

Calls MR_DistanceMeasurementObject_name().

◆ new()

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

The xf encodes the distance: the origin is one point, and (1,0,0) is another.

Calls MR_DistanceMeasurementObject_DefaultConstruct().

◆ num_comparable_properties()

auto meshlib::DistanceMeasurementObject::num_comparable_properties ( ) const -> usize

Implement ObjectComparableWithReference: Generated from method MR::DistanceMeasurementObject::numComparableProperties.

Calls MR_DistanceMeasurementObject_numComparableProperties().

◆ num_comparison_reference_values()

auto meshlib::DistanceMeasurementObject::num_comparison_reference_values ( ) const -> usize

The number and types of reference values can be entirely different compared to numComparableProperties(). Generated from method MR::DistanceMeasurementObject::numComparisonReferenceValues.

Calls MR_DistanceMeasurementObject_numComparisonReferenceValues().

◆ remove_all_children()

void meshlib::DistanceMeasurementObject::remove_all_children ( )

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

Calls MR_DistanceMeasurementObject_removeAllChildren().

◆ remove_tag()

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

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

Calls MR_DistanceMeasurementObject_removeTag().

◆ render()

auto meshlib::DistanceMeasurementObject::render ( _1:&meshlib::ModelRenderParams ) const -> bool

draws this object for visualization Returns true if something was drawn. Generated from method MR::DistanceMeasurementObject::render.

Calls MR_DistanceMeasurementObject_render().

◆ render_for_picker()

void meshlib::DistanceMeasurementObject::render_for_picker ( _1:&meshlib::ModelBaseRenderParams ,
_2:core::ffi::c_uint  ) const

draws this object for picking Generated from method MR::DistanceMeasurementObject::renderForPicker.

Calls MR_DistanceMeasurementObject_renderForPicker().

◆ render_ui()

void meshlib::DistanceMeasurementObject::render_ui ( params:&meshlib::UiRenderParams ) const

draws this object for 2d UI Generated from method MR::DistanceMeasurementObject::renderUi.

Calls MR_DistanceMeasurementObject_renderUi().

◆ reset_colors()

void meshlib::DistanceMeasurementObject::reset_colors ( )

reset all object colors to their default values from the current theme Generated from method MR::DistanceMeasurementObject::resetColors.

Calls MR_DistanceMeasurementObject_resetColors().

◆ reset_dirty()

void meshlib::DistanceMeasurementObject::reset_dirty ( ) const

resets all dirty flags (except for cache flags that will be reset automatically on cache update) Generated from method MR::DistanceMeasurementObject::resetDirty.

Calls MR_DistanceMeasurementObject_resetDirty().

◆ reset_dirty_except_mask()

void meshlib::DistanceMeasurementObject::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::DistanceMeasurementObject::resetDirtyExceptMask.

Calls MR_DistanceMeasurementObject_resetDirtyExceptMask().

◆ reset_front_color()

void meshlib::DistanceMeasurementObject::reset_front_color ( )

reset basic object colors to their default values from the current theme Generated from method MR::DistanceMeasurementObject::resetFrontColor.

Calls MR_DistanceMeasurementObject_resetFrontColor().

◆ reset_redraw_flag()

void meshlib::DistanceMeasurementObject::reset_redraw_flag ( ) const

Generated from method MR::DistanceMeasurementObject::resetRedrawFlag.

Calls MR_DistanceMeasurementObject_resetRedrawFlag().

◆ reset_xf()

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

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

Calls MR_DistanceMeasurementObject_resetXf().

◆ same_models()

auto meshlib::DistanceMeasurementObject::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::DistanceMeasurementObject::sameModels.

Calls MR_DistanceMeasurementObject_sameModels().

◆ select()

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

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

Calls MR_DistanceMeasurementObject_select().

◆ set_all_visualize_properties()

void meshlib::DistanceMeasurementObject::set_all_visualize_properties ( properties:&meshlib::std_vector_MR_ViewportMask )

set all visualize properties masks Generated from method MR::DistanceMeasurementObject::setAllVisualizeProperties.

Calls MR_DistanceMeasurementObject_setAllVisualizeProperties().

◆ set_ambient_strength()

void meshlib::DistanceMeasurementObject::set_ambient_strength ( ambientStrength:f32 )

sets intensity of non-directional light Generated from method MR::DistanceMeasurementObject::setAmbientStrength.

Calls MR_DistanceMeasurementObject_setAmbientStrength().

◆ set_ancillary()

void meshlib::DistanceMeasurementObject::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::DistanceMeasurementObject::setAncillary.

Calls MR_DistanceMeasurementObject_setAncillary().

◆ set_back_color()

void meshlib::DistanceMeasurementObject::set_back_color ( color:&meshlib::Color ,
viewportId:Option<&meshlib::ViewportId >  )

sets backward color of object in given viewport Generated from method MR::DistanceMeasurementObject::setBackColor.

Calls MR_DistanceMeasurementObject_setBackColor().

◆ set_back_colors_for_all_viewports()

void meshlib::DistanceMeasurementObject::set_back_colors_for_all_viewports ( val:&meshlib::ViewportProperty_MR_Color )

sets backward color of object in all viewports Generated from method MR::DistanceMeasurementObject::setBackColorsForAllViewports.

Calls MR_DistanceMeasurementObject_setBackColorsForAllViewports().

◆ set_coloring_type()

void meshlib::DistanceMeasurementObject::set_coloring_type ( coloringType:meshlib::ColoringType )

sets coloring mode of the object with given argument Generated from method MR::DistanceMeasurementObject::setColoringType.

Calls MR_DistanceMeasurementObject_setColoringType().

◆ set_comparison_reference_val()

void meshlib::DistanceMeasurementObject::set_comparison_reference_val ( i:usize ,
value:&meshlib::ObjectComparableWithReference_ComparisonReferenceValue  )

Generated from method MR::DistanceMeasurementObject::setComparisonReferenceVal.

Calls MR_DistanceMeasurementObject_setComparisonReferenceVal().

◆ set_comparison_reference_value()

void meshlib::DistanceMeasurementObject::set_comparison_reference_value ( i:usize ,
value:Option<&meshlib::std_variant_float_MR_Vector3f >  )

Generated from method MR::DistanceMeasurementObject::setComparisonReferenceValue.

Calls MR_DistanceMeasurementObject_setComparisonReferenceValue().

◆ set_comparison_tolerance()

void meshlib::DistanceMeasurementObject::set_comparison_tolerance ( i:usize ,
newTolerance:Option<&meshlib::ObjectComparableWithReference_ComparisonTolerance >  )

Generated from method MR::DistanceMeasurementObject::setComparisonTolerance.

Calls MR_DistanceMeasurementObject_setComparisonTolerance().

◆ set_dirty_flags()

void meshlib::DistanceMeasurementObject::set_dirty_flags ( mask:core::ffi::c_uint ,
invalidateCaches:Option< bool >  )

sets some dirty flags for the object (to force its visual update)

Parameters
maskis a union of DirtyFlags flags
invalidateCacheswhether to automatically invalidate model caches (pass false here if you manually update the caches) Generated from method MR::DistanceMeasurementObject::setDirtyFlags.

Calls MR_DistanceMeasurementObject_setDirtyFlags().

◆ set_distance_mode()

void meshlib::DistanceMeasurementObject::set_distance_mode ( mode:meshlib::DistanceMeasurementObject_DistanceMode )

Generated from method MR::DistanceMeasurementObject::setDistanceMode.

Calls MR_DistanceMeasurementObject_setDistanceMode().

◆ set_front_color()

void meshlib::DistanceMeasurementObject::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::DistanceMeasurementObject::setFrontColor.

Calls MR_DistanceMeasurementObject_setFrontColor().

◆ set_front_colors_for_all_viewports()

void meshlib::DistanceMeasurementObject::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::DistanceMeasurementObject::setFrontColorsForAllViewports.

Calls MR_DistanceMeasurementObject_setFrontColorsForAllViewports().

◆ set_global_alpha()

void meshlib::DistanceMeasurementObject::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::DistanceMeasurementObject::setGlobalAlpha.

Calls MR_DistanceMeasurementObject_setGlobalAlpha().

◆ set_global_alpha_for_all_viewports()

void meshlib::DistanceMeasurementObject::set_global_alpha_for_all_viewports ( val:&meshlib::ViewportProperty_unsigned_char )

sets global transparency alpha of object in all viewports Generated from method MR::DistanceMeasurementObject::setGlobalAlphaForAllViewports.

Calls MR_DistanceMeasurementObject_setGlobalAlphaForAllViewports().

◆ set_global_clipped_by_plane()

void meshlib::DistanceMeasurementObject::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::DistanceMeasurementObject::setGlobalClippedByPlane.

Calls MR_DistanceMeasurementObject_setGlobalClippedByPlane().

◆ set_global_visibility()

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

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

Calls MR_DistanceMeasurementObject_setGlobalVisibility().

◆ set_is_negative()

void meshlib::DistanceMeasurementObject::set_is_negative ( value:bool )

Generated from method MR::DistanceMeasurementObject::setIsNegative.

Calls MR_DistanceMeasurementObject_setIsNegative().

◆ set_local_delta()

void meshlib::DistanceMeasurementObject::set_local_delta ( delta:&meshlib::Vector3f )

Set the delta vector in the local coordinates. Generated from method MR::DistanceMeasurementObject::setLocalDelta.

Calls MR_DistanceMeasurementObject_setLocalDelta().

◆ set_local_point()

void meshlib::DistanceMeasurementObject::set_local_point ( point:&meshlib::Vector3f )

Set the start point in the local coordinates. Generated from method MR::DistanceMeasurementObject::setLocalPoint.

Calls MR_DistanceMeasurementObject_setLocalPoint().

◆ set_locked()

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

Generated from method MR::DistanceMeasurementObject::setLocked.

Calls MR_DistanceMeasurementObject_setLocked().

◆ set_name()

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

Generated from method MR::DistanceMeasurementObject::setName.

Calls MR_DistanceMeasurementObject_setName().

◆ set_parent_locked()

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

Generated from method MR::DistanceMeasurementObject::setParentLocked.

Calls MR_DistanceMeasurementObject_setParentLocked().

◆ set_pickable()

void meshlib::DistanceMeasurementObject::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::DistanceMeasurementObject::setPickable.

Calls MR_DistanceMeasurementObject_setPickable().

◆ set_shininess()

void meshlib::DistanceMeasurementObject::set_shininess ( shininess:f32 )

sets shininess visual value of the object with given argument Generated from method MR::DistanceMeasurementObject::setShininess.

Calls MR_DistanceMeasurementObject_setShininess().

◆ set_specular_strength()

void meshlib::DistanceMeasurementObject::set_specular_strength ( specularStrength:f32 )

sets intensity of reflections Generated from method MR::DistanceMeasurementObject::setSpecularStrength.

Calls MR_DistanceMeasurementObject_setSpecularStrength().

◆ set_use_default_scene_properties_on_deserialization()

void meshlib::DistanceMeasurementObject::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::DistanceMeasurementObject::setUseDefaultScenePropertiesOnDeserialization.

Calls MR_DistanceMeasurementObject_setUseDefaultScenePropertiesOnDeserialization().

◆ set_visibility_mask()

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

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

Calls MR_DistanceMeasurementObject_setVisibilityMask().

◆ set_visible()

void meshlib::DistanceMeasurementObject::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::DistanceMeasurementObject::setVisible.

Calls MR_DistanceMeasurementObject_setVisible().

◆ set_visualize_property()

void meshlib::DistanceMeasurementObject::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::DistanceMeasurementObject::setVisualizeProperty.

Calls MR_DistanceMeasurementObject_setVisualizeProperty().

◆ set_visualize_property_mask()

void meshlib::DistanceMeasurementObject::set_visualize_property_mask ( type:&meshlib::AnyVisualizeMaskEnum ,
viewportMask:&meshlib::ViewportMask  )

set visual property mask Generated from method MR::DistanceMeasurementObject::setVisualizePropertyMask.

Calls MR_DistanceMeasurementObject_setVisualizePropertyMask().

◆ set_world_xf()

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

Generated from method MR::DistanceMeasurementObject::setWorldXf.

Calls MR_DistanceMeasurementObject_setWorldXf().

◆ set_xf()

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

Generated from method MR::DistanceMeasurementObject::setXf.

Calls MR_DistanceMeasurementObject_setXf().

◆ set_xfs_for_all_viewports()

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

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

Calls MR_DistanceMeasurementObject_setXfsForAllViewports().

◆ shallow_clone()

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

Generated from method MR::DistanceMeasurementObject::shallowClone.

Calls MR_DistanceMeasurementObject_shallowClone().

◆ shallow_clone_tree()

auto meshlib::DistanceMeasurementObject::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::DistanceMeasurementObject::shallowCloneTree.

Calls MR_DistanceMeasurementObject_shallowCloneTree().

◆ sort_children()

void meshlib::DistanceMeasurementObject::sort_children ( )

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

Calls MR_DistanceMeasurementObject_sortChildren().

◆ static_class_name()

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

Generated from method MR::DistanceMeasurementObject::StaticClassName.

Calls MR_DistanceMeasurementObject_StaticClassName().

◆ static_class_name_in_plural()

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

Generated from method MR::DistanceMeasurementObject::StaticClassNameInPlural.

Calls MR_DistanceMeasurementObject_StaticClassNameInPlural().

◆ static_downcast_from_measurement_object()

auto meshlib::DistanceMeasurementObject::static_downcast_from_measurement_object ( object:&meshlib::MeasurementObject ) -> &Self
static

Static downcast from the base class MR::MeasurementObject.

Calls MR_DistanceMeasurementObject_StaticDowncastFrom_MR_MeasurementObject(). Undefined behavior if the object isn't actually a DistanceMeasurementObject.

Note
This function is unsafe.

◆ static_downcast_from_measurement_object_mut()

auto meshlib::DistanceMeasurementObject::static_downcast_from_measurement_object_mut ( object:&mut meshlib::MeasurementObject ) -> &mut Self
static

Static downcast from the base class MR::MeasurementObject.

Calls MR_DistanceMeasurementObject_MutableStaticDowncastFrom_MR_MeasurementObject(). Undefined behavior if the object isn't actually a DistanceMeasurementObject.

Note
This function is unsafe.

◆ static_downcast_from_object()

auto meshlib::DistanceMeasurementObject::static_downcast_from_object ( object:&meshlib::Object ) -> &Self
static

Static downcast from the base class MR::Object.

Calls MR_DistanceMeasurementObject_StaticDowncastFrom_MR_Object(). Undefined behavior if the object isn't actually a DistanceMeasurementObject.

Note
This function is unsafe.

◆ static_downcast_from_object_children_holder()

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

Static downcast from the base class MR::ObjectChildrenHolder.

Calls MR_DistanceMeasurementObject_StaticDowncastFrom_MR_ObjectChildrenHolder(). Undefined behavior if the object isn't actually a DistanceMeasurementObject.

Note
This function is unsafe.

◆ static_downcast_from_object_children_holder_mut()

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

Static downcast from the base class MR::ObjectChildrenHolder.

Calls MR_DistanceMeasurementObject_MutableStaticDowncastFrom_MR_ObjectChildrenHolder(). Undefined behavior if the object isn't actually a DistanceMeasurementObject.

Note
This function is unsafe.

◆ static_downcast_from_object_comparable_with_reference()

auto meshlib::DistanceMeasurementObject::static_downcast_from_object_comparable_with_reference ( object:&meshlib::ObjectComparableWithReference ) -> &Self
static

Static downcast from the base class MR::ObjectComparableWithReference.

Calls MR_DistanceMeasurementObject_StaticDowncastFrom_MR_ObjectComparableWithReference(). Undefined behavior if the object isn't actually a DistanceMeasurementObject.

Note
This function is unsafe.

◆ static_downcast_from_object_comparable_with_reference_mut()

auto meshlib::DistanceMeasurementObject::static_downcast_from_object_comparable_with_reference_mut ( object:&mut meshlib::ObjectComparableWithReference ) -> &mut Self
static

Static downcast from the base class MR::ObjectComparableWithReference.

Calls MR_DistanceMeasurementObject_MutableStaticDowncastFrom_MR_ObjectComparableWithReference(). Undefined behavior if the object isn't actually a DistanceMeasurementObject.

Note
This function is unsafe.

◆ static_downcast_from_object_mut()

auto meshlib::DistanceMeasurementObject::static_downcast_from_object_mut ( object:&mut meshlib::Object ) -> &mut Self
static

Static downcast from the base class MR::Object.

Calls MR_DistanceMeasurementObject_MutableStaticDowncastFrom_MR_Object(). Undefined behavior if the object isn't actually a DistanceMeasurementObject.

Note
This function is unsafe.

◆ static_downcast_from_visual_object()

auto meshlib::DistanceMeasurementObject::static_downcast_from_visual_object ( object:&meshlib::VisualObject ) -> &Self
static

Static downcast from the base class MR::VisualObject.

Calls MR_DistanceMeasurementObject_StaticDowncastFrom_MR_VisualObject(). Undefined behavior if the object isn't actually a DistanceMeasurementObject.

Note
This function is unsafe.

◆ static_downcast_from_visual_object_mut()

auto meshlib::DistanceMeasurementObject::static_downcast_from_visual_object_mut ( object:&mut meshlib::VisualObject ) -> &mut Self
static

Static downcast from the base class MR::VisualObject.

Calls MR_DistanceMeasurementObject_MutableStaticDowncastFrom_MR_VisualObject(). Undefined behavior if the object isn't actually a DistanceMeasurementObject.

Note
This function is unsafe.

◆ static_type_name()

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

Generated from method MR::DistanceMeasurementObject::StaticTypeName.

Calls MR_DistanceMeasurementObject_StaticTypeName().

◆ supports_visualize_property()

auto meshlib::DistanceMeasurementObject::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::DistanceMeasurementObject::supportsVisualizeProperty.

Calls MR_DistanceMeasurementObject_supportsVisualizeProperty().

◆ swap()

void meshlib::DistanceMeasurementObject::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::DistanceMeasurementObject::swap.

Calls MR_DistanceMeasurementObject_swap().

◆ tags()

auto meshlib::DistanceMeasurementObject::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::DistanceMeasurementObject::tags.

Calls MR_DistanceMeasurementObject_tags().

◆ toggle_visualize_property()

void meshlib::DistanceMeasurementObject::toggle_visualize_property ( type:&meshlib::AnyVisualizeMaskEnum ,
viewportMask:&meshlib::ViewportMask  )

toggle visual property in all viewports specified by the mask Generated from method MR::DistanceMeasurementObject::toggleVisualizeProperty.

Calls MR_DistanceMeasurementObject_toggleVisualizeProperty().

◆ type_name()

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

Generated from method MR::DistanceMeasurementObject::typeName.

Calls MR_DistanceMeasurementObject_typeName().

◆ upcast_to_measurement_object()

auto meshlib::DistanceMeasurementObject::upcast_to_measurement_object ( ) const -> &meshlib::MeasurementObject

Upcasts to the base class MR::MeasurementObject.

Calls MR_DistanceMeasurementObject_UpcastTo_MR_MeasurementObject().

◆ upcast_to_measurement_object_mut()

auto meshlib::DistanceMeasurementObject::upcast_to_measurement_object_mut ( ) -> &mut meshlib::MeasurementObject

Upcasts to the base class MR::MeasurementObject.

Calls MR_DistanceMeasurementObject_MutableUpcastTo_MR_MeasurementObject().

◆ upcast_to_object()

auto meshlib::DistanceMeasurementObject::upcast_to_object ( ) const -> &meshlib::Object

Upcasts to the base class MR::Object.

Calls MR_DistanceMeasurementObject_UpcastTo_MR_Object().

◆ upcast_to_object_children_holder()

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

Upcasts to the base class MR::ObjectChildrenHolder.

Calls MR_DistanceMeasurementObject_UpcastTo_MR_ObjectChildrenHolder().

◆ upcast_to_object_children_holder_mut()

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

Upcasts to the base class MR::ObjectChildrenHolder.

Calls MR_DistanceMeasurementObject_MutableUpcastTo_MR_ObjectChildrenHolder().

◆ upcast_to_object_comparable_with_reference()

auto meshlib::DistanceMeasurementObject::upcast_to_object_comparable_with_reference ( ) const -> &meshlib::ObjectComparableWithReference

Upcasts to the base class MR::ObjectComparableWithReference.

Calls MR_DistanceMeasurementObject_UpcastTo_MR_ObjectComparableWithReference().

◆ upcast_to_object_comparable_with_reference_mut()

auto meshlib::DistanceMeasurementObject::upcast_to_object_comparable_with_reference_mut ( ) -> &mut meshlib::ObjectComparableWithReference

Upcasts to the base class MR::ObjectComparableWithReference.

Calls MR_DistanceMeasurementObject_MutableUpcastTo_MR_ObjectComparableWithReference().

◆ upcast_to_object_mut()

auto meshlib::DistanceMeasurementObject::upcast_to_object_mut ( ) -> &mut meshlib::Object

Upcasts to the base class MR::Object.

Calls MR_DistanceMeasurementObject_MutableUpcastTo_MR_Object().

◆ upcast_to_visual_object()

auto meshlib::DistanceMeasurementObject::upcast_to_visual_object ( ) const -> &meshlib::VisualObject

Upcasts to the base class MR::VisualObject.

Calls MR_DistanceMeasurementObject_UpcastTo_MR_VisualObject().

◆ upcast_to_visual_object_mut()

auto meshlib::DistanceMeasurementObject::upcast_to_visual_object_mut ( ) -> &mut meshlib::VisualObject

Upcasts to the base class MR::VisualObject.

Calls MR_DistanceMeasurementObject_MutableUpcastTo_MR_VisualObject().

◆ use_default_scene_properties_on_deserialization()

auto meshlib::DistanceMeasurementObject::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::DistanceMeasurementObject::useDefaultScenePropertiesOnDeserialization.

Calls MR_DistanceMeasurementObject_useDefaultScenePropertiesOnDeserialization().

◆ visibility_mask()

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

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

Calls MR_DistanceMeasurementObject_visibilityMask().

◆ world_xf()

auto meshlib::DistanceMeasurementObject::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::DistanceMeasurementObject::worldXf.

Calls MR_DistanceMeasurementObject_worldXf().

◆ xf()

auto meshlib::DistanceMeasurementObject::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::DistanceMeasurementObject::xf.

Calls MR_DistanceMeasurementObject_xf().

◆ xfs_for_all_viewports()

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

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

Calls MR_DistanceMeasurementObject_xfsForAllViewports().


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