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

Public Member Functions

auto assign_from_another (_other:meshlib::Owned< meshlib::ObjectGcode >) -> &mut meshlib::ObjectGcode
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 >
void set_cnc_machine_settings (cncSettings:&meshlib::CNCMachineSettings)
auto get_cnc_machine_settings () const -> &meshlib::CNCMachineSettings
void set_gcode_source (gcodeSource:&meshlib::std_shared_ptr_std_vector_std_string)
auto gcode_source () const -> &meshlib::std_shared_ptr_std_vector_std_string
auto action_list () const -> &meshlib::std_vector_MR_GcodeProcessor_MoveAction
auto segment_to_source_line_map () const -> &meshlib::std_vector_int
void set_dirty_flags (mask:core::ffi::c_uint, invalidateCaches:Option< bool >)
auto get_info_lines () const -> meshlib::Owned< meshlib::std_vector_std_string >
void switch_feedrate_gradient (isFeedrateGradientEnabled:bool)
auto is_feedrate_gradient () const -> bool
void set_idle_color (color:&meshlib::Color)
auto get_idle_color () const -> &meshlib::Color
auto select (isSelected:bool) -> bool
void set_front_color (color:&meshlib::Color, selected:bool, viewportId:Option<&meshlib::ViewportId >)
auto heap_bytes () const -> usize
void apply_scale (scaleFactor:f32)
auto has_visual_representation () const -> bool
auto has_model () const -> bool
auto var_polyline_ptr () -> Option<&mut meshlib::Polyline3 >
auto polyline_ptr () const -> Option<&meshlib::Polyline3 >
auto polyline () const -> &meshlib::std_shared_ptr_const_MR_Polyline3
void set_dash_pattern (pattern:&meshlib::Vector4_unsigned_char, vpId:Option<&meshlib::ViewportId >)
auto get_dash_pattern (vpId:Option<&meshlib::ViewportId >, isDef:Option<&mut bool >) const -> &meshlib::Vector4_unsigned_char
void set_line_width (width:f32)
auto get_line_width () const -> f32
void set_point_size (size:f32)
auto get_point_size () const -> f32
auto get_verts_color_map () const -> &meshlib::VertColors
void set_verts_color_map (vertsColorMap:&meshlib::VertColors)
void update_verts_color_map (vertsColorMap:&mut meshlib::VertColors)
auto get_lines_color_map () const -> &meshlib::UndirectedEdgeColors
void set_lines_color_map (linesColorMap:&meshlib::UndirectedEdgeColors)
void update_lines_color_map (updated:&mut meshlib::UndirectedEdgeColors)
auto supports_visualize_property (type:&meshlib::AnyVisualizeMaskEnum) const -> bool
auto get_all_visualize_properties () const -> meshlib::Owned< meshlib::std_vector_MR_ViewportMask >
auto get_visualize_property_mask (type:&meshlib::AnyVisualizeMaskEnum) const -> &meshlib::ViewportMask
void copy_colors (src:&meshlib::ObjectLinesHolder, thisToSrc:&meshlib::VertMap)
auto get_world_box (_1:Option<&meshlib::ViewportId >) const -> meshlib::Box3f
auto avg_edge_len () const -> f32
auto num_undirected_edges () const -> usize
auto num_components () const -> usize
auto total_length () const -> f32
void reset_front_color ()
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
void toggle_visualize_property (type:&meshlib::AnyVisualizeMaskEnum, viewportMask:&meshlib::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
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)
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_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 use_default_scene_properties_on_deserialization () const -> bool
void set_use_default_scene_properties_on_deserialization (useDefaultScenePropertiesOnDeserialization:bool)
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 >)
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 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 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 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_object_lines_holder () const -> &meshlib::ObjectLinesHolder
auto upcast_to_object_lines_holder_mut () -> &mut meshlib::ObjectLinesHolder

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::ObjectGcode >
static auto construct_from_another (_other:meshlib::Owned< meshlib::ObjectGcode >) -> meshlib::Owned< meshlib::ObjectGcode >
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_object_lines_holder (object:&meshlib::ObjectLinesHolder) -> &Self
static auto static_downcast_from_object_lines_holder_mut (object:&mut meshlib::ObjectLinesHolder) -> &mut Self
static auto dynamic_downcast_from_object_lines_holder (object:&meshlib::ObjectLinesHolder) -> Option<&Self >
static auto dynamic_downcast_from_object_lines_holder_mut (object:&mut meshlib::ObjectLinesHolder) -> Option<&mut Self >
Static Public Member Functions inherited from meshlib::CppClass
static void destroy (ptr:*mut Self)

Detailed Description

an object that stores a g-code Generated from class MR::ObjectGcode. Base classes: Direct: (non-virtual) MR::ObjectLinesHolder Indirect: (non-virtual) MR::ObjectChildrenHolder MR::Object MR::VisualObject

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

Member Function Documentation

◆ action_list()

auto meshlib::ObjectGcode::action_list ( ) const -> &meshlib::std_vector_MR_GcodeProcessor_MoveAction

get action list (produced from g-code source) Generated from method MR::ObjectGcode::actionList.

Calls MR_ObjectGcode_actionList().

◆ add_child()

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

Calls MR_ObjectGcode_addChild().

◆ add_child_before()

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

Calls MR_ObjectGcode_addChildBefore().

◆ add_tag()

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

Calls MR_ObjectGcode_addTag().

◆ apply_scale()

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

Generated from method MR::ObjectGcode::applyScale.

Calls MR_ObjectGcode_applyScale().

◆ assign_from_another()

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

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

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

◆ avg_edge_len()

auto meshlib::ObjectGcode::avg_edge_len ( ) const -> f32

returns cached average edge length Generated from method MR::ObjectGcode::avgEdgeLen.

Calls MR_ObjectGcode_avgEdgeLen().

◆ class_name()

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

Generated from method MR::ObjectGcode::className.

Calls MR_ObjectGcode_className().

◆ class_name_in_plural()

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

Generated from method MR::ObjectGcode::classNameInPlural.

Calls MR_ObjectGcode_classNameInPlural().

◆ clone()

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

Generated from method MR::ObjectGcode::clone.

Calls MR_ObjectGcode_clone().

◆ clone_tree()

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

Calls MR_ObjectGcode_cloneTree().

◆ const_children()

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

Calls MR_ObjectGcode_constChildren().

◆ construct_from_another()

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

Generated from constructor MR::ObjectGcode::ObjectGcode.

Calls MR_ObjectGcode_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::ObjectGcode::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::ObjectGcode::copyAllSolidColors.

Calls MR_ObjectGcode_copyAllSolidColors().

◆ copy_colors()

void meshlib::ObjectGcode::copy_colors ( src:&meshlib::ObjectLinesHolder ,
thisToSrc:&meshlib::VertMap  )

copies vertex colors from given source object

Parameters
srcusing given map
thisToSrcGenerated from method MR::ObjectGcode::copyColors.

Calls MR_ObjectGcode_copyColors().

◆ detach_from_parent()

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

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

Calls MR_ObjectGcode_detachFromParent().

◆ dynamic_downcast_from_object()

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

Calls MR_ObjectGcode_DynamicDowncastFrom_MR_Object().

◆ dynamic_downcast_from_object_lines_holder()

auto meshlib::ObjectGcode::dynamic_downcast_from_object_lines_holder ( object:&meshlib::ObjectLinesHolder ) -> Option<&Self >
static

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

Calls MR_ObjectGcode_DynamicDowncastFrom_MR_ObjectLinesHolder().

◆ dynamic_downcast_from_object_lines_holder_mut()

auto meshlib::ObjectGcode::dynamic_downcast_from_object_lines_holder_mut ( object:&mut meshlib::ObjectLinesHolder ) -> Option<&mut Self >
static

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

Calls MR_ObjectGcode_MutableDynamicDowncastFrom_MR_ObjectLinesHolder().

◆ dynamic_downcast_from_object_mut()

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

Calls MR_ObjectGcode_MutableDynamicDowncastFrom_MR_Object().

◆ dynamic_downcast_from_visual_object()

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

Calls MR_ObjectGcode_DynamicDowncastFrom_MR_VisualObject().

◆ dynamic_downcast_from_visual_object_mut()

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

Calls MR_ObjectGcode_MutableDynamicDowncastFrom_MR_VisualObject().

◆ gcode_source()

auto meshlib::ObjectGcode::gcode_source ( ) const -> &meshlib::std_shared_ptr_std_vector_std_string

Generated from method MR::ObjectGcode::gcodeSource.

Calls MR_ObjectGcode_gcodeSource().

◆ get_all_visualize_properties()

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

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

Calls MR_ObjectGcode_getAllVisualizeProperties().

◆ get_ambient_strength()

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

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

Calls MR_ObjectGcode_getAmbientStrength().

◆ get_back_color()

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

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

Calls MR_ObjectGcode_getBackColor().

◆ get_back_colors_for_all_viewports()

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

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

Calls MR_ObjectGcode_getBackColorsForAllViewports().

◆ get_bounding_box()

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

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

Calls MR_ObjectGcode_getBoundingBox().

◆ get_cnc_machine_settings()

auto meshlib::ObjectGcode::get_cnc_machine_settings ( ) const -> &meshlib::CNCMachineSettings

Generated from method MR::ObjectGcode::getCNCMachineSettings.

Calls MR_ObjectGcode_getCNCMachineSettings().

◆ get_coloring_type()

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

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

Calls MR_ObjectGcode_getColoringType().

◆ get_dash_pattern()

auto meshlib::ObjectGcode::get_dash_pattern ( vpId:Option<&meshlib::ViewportId > ,
isDef:Option<&mut bool >  ) const -> &meshlib::Vector4_unsigned_char

Generated from method MR::ObjectGcode::getDashPattern.

Calls MR_ObjectGcode_getDashPattern().

◆ get_dirty_flags()

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

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

Calls MR_ObjectGcode_getDirtyFlags().

◆ get_front_color()

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

Calls MR_ObjectGcode_getFrontColor().

◆ get_front_colors_for_all_viewports()

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

Calls MR_ObjectGcode_getFrontColorsForAllViewports().

◆ get_global_alpha()

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

Calls MR_ObjectGcode_getGlobalAlpha().

◆ get_global_alpha_for_all_viewports()

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

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

Calls MR_ObjectGcode_getGlobalAlphaForAllViewports().

◆ get_idle_color()

auto meshlib::ObjectGcode::get_idle_color ( ) const -> &meshlib::Color

Generated from method MR::ObjectGcode::getIdleColor.

Calls MR_ObjectGcode_getIdleColor().

◆ get_info_lines()

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

Generated from method MR::ObjectGcode::getInfoLines.

Calls MR_ObjectGcode_getInfoLines().

◆ get_line_width()

auto meshlib::ObjectGcode::get_line_width ( ) const -> f32

Generated from method MR::ObjectGcode::getLineWidth.

Calls MR_ObjectGcode_getLineWidth().

◆ get_lines_color_map()

auto meshlib::ObjectGcode::get_lines_color_map ( ) const -> &meshlib::UndirectedEdgeColors

Generated from method MR::ObjectGcode::getLinesColorMap.

Calls MR_ObjectGcode_getLinesColorMap().

◆ get_model_hash()

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

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

Calls MR_ObjectGcode_getModelHash().

◆ get_point_size()

auto meshlib::ObjectGcode::get_point_size ( ) const -> f32

Generated from method MR::ObjectGcode::getPointSize.

Calls MR_ObjectGcode_getPointSize().

◆ get_redraw_flag()

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

Calls MR_ObjectGcode_getRedrawFlag().

◆ get_shared_ptr()

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

Calls MR_ObjectGcode_getSharedPtr().

◆ get_shininess()

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

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

Calls MR_ObjectGcode_getShininess().

◆ get_specular_strength()

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

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

Calls MR_ObjectGcode_getSpecularStrength().

◆ get_verts_color_map()

auto meshlib::ObjectGcode::get_verts_color_map ( ) const -> &meshlib::VertColors

returns per-vertex colors of the object Generated from method MR::ObjectGcode::getVertsColorMap.

Calls MR_ObjectGcode_getVertsColorMap().

◆ get_visualize_property()

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

Calls MR_ObjectGcode_getVisualizeProperty().

◆ get_visualize_property_mask()

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

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

Calls MR_ObjectGcode_getVisualizePropertyMask().

◆ get_world_box()

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

returns cached bounding box of this point object in world coordinates; if you need bounding box in local coordinates please call getBoundingBox() Generated from method MR::ObjectGcode::getWorldBox.

Calls MR_ObjectGcode_getWorldBox().

◆ get_world_tree_box()

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

Calls MR_ObjectGcode_getWorldTreeBox().

◆ global_clipped_by_plane()

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

Calls MR_ObjectGcode_globalClippedByPlane().

◆ global_clipped_by_plane_mask()

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

Calls MR_ObjectGcode_globalClippedByPlaneMask().

◆ global_visibility()

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

Calls MR_ObjectGcode_globalVisibility().

◆ global_visibility_mask()

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

Calls MR_ObjectGcode_globalVisibilityMask().

◆ has_model()

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

Generated from method MR::ObjectGcode::hasModel.

Calls MR_ObjectGcode_hasModel().

◆ has_visual_representation()

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

Generated from method MR::ObjectGcode::hasVisualRepresentation.

Calls MR_ObjectGcode_hasVisualRepresentation().

◆ heap_bytes()

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

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

Calls MR_ObjectGcode_heapBytes().

◆ is_ancestor()

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

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

Calls MR_ObjectGcode_isAncestor().

◆ is_ancillary()

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

Generated from method MR::ObjectGcode::isAncillary.

Calls MR_ObjectGcode_isAncillary().

◆ is_feedrate_gradient()

auto meshlib::ObjectGcode::is_feedrate_gradient ( ) const -> bool

Generated from method MR::ObjectGcode::isFeedrateGradient.

Calls MR_ObjectGcode_isFeedrateGradient().

◆ is_global_ancillary()

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

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

Calls MR_ObjectGcode_isGlobalAncillary().

◆ is_locked()

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

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

Calls MR_ObjectGcode_isLocked().

◆ is_parent_locked()

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

Calls MR_ObjectGcode_isParentLocked().

◆ is_pickable()

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

Calls MR_ObjectGcode_isPickable().

◆ is_selected()

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

Generated from method MR::ObjectGcode::isSelected.

Calls MR_ObjectGcode_isSelected().

◆ is_visible()

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

Calls MR_ObjectGcode_isVisible().

◆ name()

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

Generated from method MR::ObjectGcode::name.

Calls MR_ObjectGcode_name().

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_ObjectGcode_DefaultConstruct().

◆ num_components()

auto meshlib::ObjectGcode::num_components ( ) const -> usize

returns cached information about the number of components in the polyline Generated from method MR::ObjectGcode::numComponents.

Calls MR_ObjectGcode_numComponents().

◆ num_undirected_edges()

auto meshlib::ObjectGcode::num_undirected_edges ( ) const -> usize

returns cached information about the number of undirected edges in the polyline Generated from method MR::ObjectGcode::numUndirectedEdges.

Calls MR_ObjectGcode_numUndirectedEdges().

◆ polyline()

auto meshlib::ObjectGcode::polyline ( ) const -> &meshlib::std_shared_ptr_const_MR_Polyline3
Deprecated
the cast inside is undefined behaviour, use polylinePtr() instead Generated from method MR::ObjectGcode::polyline.

Calls MR_ObjectGcode_polyline().

Deprecated
use polylinePtr() instead

◆ polyline_ptr()

auto meshlib::ObjectGcode::polyline_ptr ( ) const -> Option<&meshlib::Polyline3 >

returns the polyline of this object, or nullptr if it is not set Generated from method MR::ObjectGcode::polylinePtr.

Calls MR_ObjectGcode_polylinePtr().

◆ remove_all_children()

void meshlib::ObjectGcode::remove_all_children ( )

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

Calls MR_ObjectGcode_removeAllChildren().

◆ remove_tag()

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

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

Calls MR_ObjectGcode_removeTag().

◆ render()

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

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

Calls MR_ObjectGcode_render().

◆ render_for_picker()

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

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

Calls MR_ObjectGcode_renderForPicker().

◆ render_ui()

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

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

Calls MR_ObjectGcode_renderUi().

◆ reset_colors()

void meshlib::ObjectGcode::reset_colors ( )

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

Calls MR_ObjectGcode_resetColors().

◆ reset_dirty()

void meshlib::ObjectGcode::reset_dirty ( ) const

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

Calls MR_ObjectGcode_resetDirty().

◆ reset_dirty_except_mask()

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

Calls MR_ObjectGcode_resetDirtyExceptMask().

◆ reset_front_color()

void meshlib::ObjectGcode::reset_front_color ( )

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

Calls MR_ObjectGcode_resetFrontColor().

◆ reset_redraw_flag()

void meshlib::ObjectGcode::reset_redraw_flag ( ) const

Generated from method MR::ObjectGcode::resetRedrawFlag.

Calls MR_ObjectGcode_resetRedrawFlag().

◆ reset_xf()

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

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

Calls MR_ObjectGcode_resetXf().

◆ same_models()

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

Calls MR_ObjectGcode_sameModels().

◆ segment_to_source_line_map()

auto meshlib::ObjectGcode::segment_to_source_line_map ( ) const -> &meshlib::std_vector_int

get mapping of tool path polyline segment id to source line number of g-code source Generated from method MR::ObjectGcode::segmentToSourceLineMap.

Calls MR_ObjectGcode_segmentToSourceLineMap().

◆ select()

auto meshlib::ObjectGcode::select ( isSelected:bool ) -> bool

Generated from method MR::ObjectGcode::select.

Calls MR_ObjectGcode_select().

◆ set_all_visualize_properties()

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

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

Calls MR_ObjectGcode_setAllVisualizeProperties().

◆ set_ambient_strength()

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

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

Calls MR_ObjectGcode_setAmbientStrength().

◆ set_ancillary()

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

Calls MR_ObjectGcode_setAncillary().

◆ set_back_color()

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

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

Calls MR_ObjectGcode_setBackColor().

◆ set_back_colors_for_all_viewports()

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

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

Calls MR_ObjectGcode_setBackColorsForAllViewports().

◆ set_cnc_machine_settings()

void meshlib::ObjectGcode::set_cnc_machine_settings ( cncSettings:&meshlib::CNCMachineSettings )

Generated from method MR::ObjectGcode::setCNCMachineSettings.

Calls MR_ObjectGcode_setCNCMachineSettings().

◆ set_coloring_type()

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

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

Calls MR_ObjectGcode_setColoringType().

◆ set_dash_pattern()

void meshlib::ObjectGcode::set_dash_pattern ( pattern:&meshlib::Vector4_unsigned_char ,
vpId:Option<&meshlib::ViewportId >  )

specify dash pattern in pixels [0] - dash [1] - space [2] - dash [3] - space Generated from method MR::ObjectGcode::setDashPattern.

Calls MR_ObjectGcode_setDashPattern().

◆ set_dirty_flags()

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

Generated from method MR::ObjectGcode::setDirtyFlags.

Calls MR_ObjectGcode_setDirtyFlags().

◆ set_front_color()

void meshlib::ObjectGcode::set_front_color ( color:&meshlib::Color ,
selected:bool ,
viewportId:Option<&meshlib::ViewportId >  )

Generated from method MR::ObjectGcode::setFrontColor.

Calls MR_ObjectGcode_setFrontColor().

◆ set_front_colors_for_all_viewports()

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

Calls MR_ObjectGcode_setFrontColorsForAllViewports().

◆ set_gcode_source()

void meshlib::ObjectGcode::set_gcode_source ( gcodeSource:&meshlib::std_shared_ptr_std_vector_std_string )

Generated from method MR::ObjectGcode::setGcodeSource.

Calls MR_ObjectGcode_setGcodeSource().

◆ set_global_alpha()

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

Calls MR_ObjectGcode_setGlobalAlpha().

◆ set_global_alpha_for_all_viewports()

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

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

Calls MR_ObjectGcode_setGlobalAlphaForAllViewports().

◆ set_global_clipped_by_plane()

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

Calls MR_ObjectGcode_setGlobalClippedByPlane().

◆ set_global_visibility()

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

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

Calls MR_ObjectGcode_setGlobalVisibility().

◆ set_idle_color()

void meshlib::ObjectGcode::set_idle_color ( color:&meshlib::Color )

Generated from method MR::ObjectGcode::setIdleColor.

Calls MR_ObjectGcode_setIdleColor().

◆ set_line_width()

void meshlib::ObjectGcode::set_line_width ( width:f32 )

Generated from method MR::ObjectGcode::setLineWidth.

Calls MR_ObjectGcode_setLineWidth().

◆ set_lines_color_map()

void meshlib::ObjectGcode::set_lines_color_map ( linesColorMap:&meshlib::UndirectedEdgeColors )

Generated from method MR::ObjectGcode::setLinesColorMap.

Calls MR_ObjectGcode_setLinesColorMap().

◆ set_locked()

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

Generated from method MR::ObjectGcode::setLocked.

Calls MR_ObjectGcode_setLocked().

◆ set_name()

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

Generated from method MR::ObjectGcode::setName.

Calls MR_ObjectGcode_setName().

◆ set_parent_locked()

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

Generated from method MR::ObjectGcode::setParentLocked.

Calls MR_ObjectGcode_setParentLocked().

◆ set_pickable()

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

Calls MR_ObjectGcode_setPickable().

◆ set_point_size()

void meshlib::ObjectGcode::set_point_size ( size:f32 )

Generated from method MR::ObjectGcode::setPointSize.

Calls MR_ObjectGcode_setPointSize().

◆ set_shininess()

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

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

Calls MR_ObjectGcode_setShininess().

◆ set_specular_strength()

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

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

Calls MR_ObjectGcode_setSpecularStrength().

◆ set_use_default_scene_properties_on_deserialization()

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

Calls MR_ObjectGcode_setUseDefaultScenePropertiesOnDeserialization().

◆ set_verts_color_map()

void meshlib::ObjectGcode::set_verts_color_map ( vertsColorMap:&meshlib::VertColors )

sets per-vertex colors of the object Generated from method MR::ObjectGcode::setVertsColorMap.

Calls MR_ObjectGcode_setVertsColorMap().

◆ set_visibility_mask()

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

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

Calls MR_ObjectGcode_setVisibilityMask().

◆ set_visible()

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

Calls MR_ObjectGcode_setVisible().

◆ set_visualize_property()

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

Calls MR_ObjectGcode_setVisualizeProperty().

◆ set_visualize_property_mask()

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

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

Calls MR_ObjectGcode_setVisualizePropertyMask().

◆ set_world_xf()

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

Generated from method MR::ObjectGcode::setWorldXf.

Calls MR_ObjectGcode_setWorldXf().

◆ set_xf()

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

Generated from method MR::ObjectGcode::setXf.

Calls MR_ObjectGcode_setXf().

◆ set_xfs_for_all_viewports()

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

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

Calls MR_ObjectGcode_setXfsForAllViewports().

◆ shallow_clone()

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

Generated from method MR::ObjectGcode::shallowClone.

Calls MR_ObjectGcode_shallowClone().

◆ shallow_clone_tree()

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

Calls MR_ObjectGcode_shallowCloneTree().

◆ sort_children()

void meshlib::ObjectGcode::sort_children ( )

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

Calls MR_ObjectGcode_sortChildren().

◆ static_class_name()

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

Generated from method MR::ObjectGcode::StaticClassName.

Calls MR_ObjectGcode_StaticClassName().

◆ static_class_name_in_plural()

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

Generated from method MR::ObjectGcode::StaticClassNameInPlural.

Calls MR_ObjectGcode_StaticClassNameInPlural().

◆ static_downcast_from_object()

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

Static downcast from the base class MR::Object.

Calls MR_ObjectGcode_StaticDowncastFrom_MR_Object(). Undefined behavior if the object isn't actually a ObjectGcode.

Note
This function is unsafe.

◆ static_downcast_from_object_children_holder()

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

Static downcast from the base class MR::ObjectChildrenHolder.

Calls MR_ObjectGcode_StaticDowncastFrom_MR_ObjectChildrenHolder(). Undefined behavior if the object isn't actually a ObjectGcode.

Note
This function is unsafe.

◆ static_downcast_from_object_children_holder_mut()

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

Static downcast from the base class MR::ObjectChildrenHolder.

Calls MR_ObjectGcode_MutableStaticDowncastFrom_MR_ObjectChildrenHolder(). Undefined behavior if the object isn't actually a ObjectGcode.

Note
This function is unsafe.

◆ static_downcast_from_object_lines_holder()

auto meshlib::ObjectGcode::static_downcast_from_object_lines_holder ( object:&meshlib::ObjectLinesHolder ) -> &Self
static

Static downcast from the base class MR::ObjectLinesHolder.

Calls MR_ObjectGcode_StaticDowncastFrom_MR_ObjectLinesHolder(). Undefined behavior if the object isn't actually a ObjectGcode.

Note
This function is unsafe.

◆ static_downcast_from_object_lines_holder_mut()

auto meshlib::ObjectGcode::static_downcast_from_object_lines_holder_mut ( object:&mut meshlib::ObjectLinesHolder ) -> &mut Self
static

Static downcast from the base class MR::ObjectLinesHolder.

Calls MR_ObjectGcode_MutableStaticDowncastFrom_MR_ObjectLinesHolder(). Undefined behavior if the object isn't actually a ObjectGcode.

Note
This function is unsafe.

◆ static_downcast_from_object_mut()

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

Static downcast from the base class MR::Object.

Calls MR_ObjectGcode_MutableStaticDowncastFrom_MR_Object(). Undefined behavior if the object isn't actually a ObjectGcode.

Note
This function is unsafe.

◆ static_downcast_from_visual_object()

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

Static downcast from the base class MR::VisualObject.

Calls MR_ObjectGcode_StaticDowncastFrom_MR_VisualObject(). Undefined behavior if the object isn't actually a ObjectGcode.

Note
This function is unsafe.

◆ static_downcast_from_visual_object_mut()

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

Static downcast from the base class MR::VisualObject.

Calls MR_ObjectGcode_MutableStaticDowncastFrom_MR_VisualObject(). Undefined behavior if the object isn't actually a ObjectGcode.

Note
This function is unsafe.

◆ static_type_name()

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

Generated from method MR::ObjectGcode::StaticTypeName.

Calls MR_ObjectGcode_StaticTypeName().

◆ supports_visualize_property()

auto meshlib::ObjectGcode::supports_visualize_property ( type:&meshlib::AnyVisualizeMaskEnum ) const -> bool

Generated from method MR::ObjectGcode::supportsVisualizeProperty.

Calls MR_ObjectGcode_supportsVisualizeProperty().

◆ swap()

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

Calls MR_ObjectGcode_swap().

◆ switch_feedrate_gradient()

void meshlib::ObjectGcode::switch_feedrate_gradient ( isFeedrateGradientEnabled:bool )

set drawing feedrate as gradient of brightness Generated from method MR::ObjectGcode::switchFeedrateGradient.

Calls MR_ObjectGcode_switchFeedrateGradient().

◆ tags()

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

Calls MR_ObjectGcode_tags().

◆ toggle_visualize_property()

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

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

Calls MR_ObjectGcode_toggleVisualizeProperty().

◆ total_length()

auto meshlib::ObjectGcode::total_length ( ) const -> f32

return cached total length Generated from method MR::ObjectGcode::totalLength.

Calls MR_ObjectGcode_totalLength().

◆ type_name()

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

Generated from method MR::ObjectGcode::typeName.

Calls MR_ObjectGcode_typeName().

◆ upcast_to_object()

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

Upcasts to the base class MR::Object.

Calls MR_ObjectGcode_UpcastTo_MR_Object().

◆ upcast_to_object_children_holder()

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

Upcasts to the base class MR::ObjectChildrenHolder.

Calls MR_ObjectGcode_UpcastTo_MR_ObjectChildrenHolder().

◆ upcast_to_object_children_holder_mut()

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

Upcasts to the base class MR::ObjectChildrenHolder.

Calls MR_ObjectGcode_MutableUpcastTo_MR_ObjectChildrenHolder().

◆ upcast_to_object_lines_holder()

auto meshlib::ObjectGcode::upcast_to_object_lines_holder ( ) const -> &meshlib::ObjectLinesHolder

Upcasts to the base class MR::ObjectLinesHolder.

Calls MR_ObjectGcode_UpcastTo_MR_ObjectLinesHolder().

◆ upcast_to_object_lines_holder_mut()

auto meshlib::ObjectGcode::upcast_to_object_lines_holder_mut ( ) -> &mut meshlib::ObjectLinesHolder

Upcasts to the base class MR::ObjectLinesHolder.

Calls MR_ObjectGcode_MutableUpcastTo_MR_ObjectLinesHolder().

◆ upcast_to_object_mut()

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

Upcasts to the base class MR::Object.

Calls MR_ObjectGcode_MutableUpcastTo_MR_Object().

◆ upcast_to_visual_object()

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

Upcasts to the base class MR::VisualObject.

Calls MR_ObjectGcode_UpcastTo_MR_VisualObject().

◆ upcast_to_visual_object_mut()

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

Upcasts to the base class MR::VisualObject.

Calls MR_ObjectGcode_MutableUpcastTo_MR_VisualObject().

◆ update_lines_color_map()

void meshlib::ObjectGcode::update_lines_color_map ( updated:&mut meshlib::UndirectedEdgeColors )

Generated from method MR::ObjectGcode::updateLinesColorMap.

Calls MR_ObjectGcode_updateLinesColorMap().

◆ update_verts_color_map()

void meshlib::ObjectGcode::update_verts_color_map ( vertsColorMap:&mut meshlib::VertColors )

swaps per-vertex colors of the object with given argument Generated from method MR::ObjectGcode::updateVertsColorMap.

Calls MR_ObjectGcode_updateVertsColorMap().

◆ use_default_scene_properties_on_deserialization()

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

Calls MR_ObjectGcode_useDefaultScenePropertiesOnDeserialization().

◆ var_polyline_ptr()

auto meshlib::ObjectGcode::var_polyline_ptr ( ) -> Option<&mut meshlib::Polyline3 >

returns the polyline of this object for modification, or nullptr if it is not set Generated from method MR::ObjectGcode::varPolylinePtr.

Calls MR_ObjectGcode_varPolylinePtr().

◆ visibility_mask()

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

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

Calls MR_ObjectGcode_visibilityMask().

◆ world_xf()

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

Calls MR_ObjectGcode_worldXf().

◆ xf()

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

Calls MR_ObjectGcode_xf().

◆ xfs_for_all_viewports()

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

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

Calls MR_ObjectGcode_xfsForAllViewports().


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