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>.
| 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().
| 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;
| recognizedChild | if set to false then child object will be excluded from children() and it will be stored by weak_ptr Generated from method MR::ObjectGcode::addChild. |
Calls MR_ObjectGcode_addChild().
| 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().
| 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().
| void meshlib::ObjectGcode::apply_scale | ( | scaleFactor:f32 | ) |
Generated from method MR::ObjectGcode::applyScale.
Calls MR_ObjectGcode_applyScale().
| 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.
| auto meshlib::ObjectGcode::avg_edge_len | ( | ) | const -> f32 |
returns cached average edge length Generated from method MR::ObjectGcode::avgEdgeLen.
Calls MR_ObjectGcode_avgEdgeLen().
| auto meshlib::ObjectGcode::class_name | ( | ) | const -> meshlib::Owned< meshlib::std_string > |
Generated from method MR::ObjectGcode::className.
Calls MR_ObjectGcode_className().
| auto meshlib::ObjectGcode::class_name_in_plural | ( | ) | const -> meshlib::Owned< meshlib::std_string > |
Generated from method MR::ObjectGcode::classNameInPlural.
Calls MR_ObjectGcode_classNameInPlural().
| auto meshlib::ObjectGcode::clone | ( | ) | const -> meshlib::Owned< meshlib::std_shared_ptr_MR_Object > |
Generated from method MR::ObjectGcode::clone.
Calls MR_ObjectGcode_clone().
| 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().
| 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().
|
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.
| 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().
| void meshlib::ObjectGcode::copy_colors | ( | src:&meshlib::ObjectLinesHolder | , |
| thisToSrc:&meshlib::VertMap | ) |
copies vertex colors from given source object
| src | using given map |
| thisToSrc | Generated from method MR::ObjectGcode::copyColors. |
Calls MR_ObjectGcode_copyColors().
| 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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
| auto meshlib::ObjectGcode::gcode_source | ( | ) | const -> &meshlib::std_shared_ptr_std_vector_std_string |
Generated from method MR::ObjectGcode::gcodeSource.
Calls MR_ObjectGcode_gcodeSource().
| 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().
| auto meshlib::ObjectGcode::get_ambient_strength | ( | ) | const -> f32 |
returns intensity of non-directional light Generated from method MR::ObjectGcode::getAmbientStrength.
Calls MR_ObjectGcode_getAmbientStrength().
| 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().
| 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().
| 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().
| auto meshlib::ObjectGcode::get_cnc_machine_settings | ( | ) | const -> &meshlib::CNCMachineSettings |
Generated from method MR::ObjectGcode::getCNCMachineSettings.
Calls MR_ObjectGcode_getCNCMachineSettings().
| 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().
| 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().
| 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().
| 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().
| 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().
| 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().
| 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().
| auto meshlib::ObjectGcode::get_idle_color | ( | ) | const -> &meshlib::Color |
Generated from method MR::ObjectGcode::getIdleColor.
Calls MR_ObjectGcode_getIdleColor().
| auto meshlib::ObjectGcode::get_info_lines | ( | ) | const -> meshlib::Owned< meshlib::std_vector_std_string > |
Generated from method MR::ObjectGcode::getInfoLines.
Calls MR_ObjectGcode_getInfoLines().
| auto meshlib::ObjectGcode::get_line_width | ( | ) | const -> f32 |
Generated from method MR::ObjectGcode::getLineWidth.
Calls MR_ObjectGcode_getLineWidth().
| auto meshlib::ObjectGcode::get_lines_color_map | ( | ) | const -> &meshlib::UndirectedEdgeColors |
Generated from method MR::ObjectGcode::getLinesColorMap.
Calls MR_ObjectGcode_getLinesColorMap().
| 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().
| auto meshlib::ObjectGcode::get_point_size | ( | ) | const -> f32 |
Generated from method MR::ObjectGcode::getPointSize.
Calls MR_ObjectGcode_getPointSize().
| 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().
| 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().
| auto meshlib::ObjectGcode::get_shininess | ( | ) | const -> f32 |
returns the current shininess visual value Generated from method MR::ObjectGcode::getShininess.
Calls MR_ObjectGcode_getShininess().
| auto meshlib::ObjectGcode::get_specular_strength | ( | ) | const -> f32 |
returns intensity of reflections Generated from method MR::ObjectGcode::getSpecularStrength.
Calls MR_ObjectGcode_getSpecularStrength().
| 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().
| 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().
| 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().
| 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().
| 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().
| 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().
| 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().
| 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().
| 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().
| auto meshlib::ObjectGcode::has_model | ( | ) | const -> bool |
Generated from method MR::ObjectGcode::hasModel.
Calls MR_ObjectGcode_hasModel().
| auto meshlib::ObjectGcode::has_visual_representation | ( | ) | const -> bool |
Generated from method MR::ObjectGcode::hasVisualRepresentation.
Calls MR_ObjectGcode_hasVisualRepresentation().
| 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().
| 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().
| auto meshlib::ObjectGcode::is_ancillary | ( | ) | const -> bool |
Generated from method MR::ObjectGcode::isAncillary.
Calls MR_ObjectGcode_isAncillary().
| auto meshlib::ObjectGcode::is_feedrate_gradient | ( | ) | const -> bool |
Generated from method MR::ObjectGcode::isFeedrateGradient.
Calls MR_ObjectGcode_isFeedrateGradient().
| 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().
| auto meshlib::ObjectGcode::is_locked | ( | ) | const -> bool |
object properties lock for UI Generated from method MR::ObjectGcode::isLocked.
Calls MR_ObjectGcode_isLocked().
| 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().
| 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().
| auto meshlib::ObjectGcode::is_selected | ( | ) | const -> bool |
Generated from method MR::ObjectGcode::isSelected.
Calls MR_ObjectGcode_isSelected().
| 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().
| auto meshlib::ObjectGcode::name | ( | ) | const -> &meshlib::std_string |
Generated from method MR::ObjectGcode::name.
Calls MR_ObjectGcode_name().
|
static |
Constructs an empty (default-constructed) instance.
Calls MR_ObjectGcode_DefaultConstruct().
| 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().
| 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().
| auto meshlib::ObjectGcode::polyline | ( | ) | const -> &meshlib::std_shared_ptr_const_MR_Polyline3 |
Calls MR_ObjectGcode_polyline().
| 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().
| 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().
| 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().
| 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().
| 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().
| 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().
| 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().
| 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().
| 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().
| 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().
| void meshlib::ObjectGcode::reset_redraw_flag | ( | ) | const |
Generated from method MR::ObjectGcode::resetRedrawFlag.
Calls MR_ObjectGcode_resetRedrawFlag().
| 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().
| 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().
| 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().
| auto meshlib::ObjectGcode::select | ( | isSelected:bool | ) | -> bool |
Generated from method MR::ObjectGcode::select.
Calls MR_ObjectGcode_select().
| 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().
| void meshlib::ObjectGcode::set_ambient_strength | ( | ambientStrength:f32 | ) |
sets intensity of non-directional light Generated from method MR::ObjectGcode::setAmbientStrength.
Calls MR_ObjectGcode_setAmbientStrength().
| 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().
| 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().
| 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().
| void meshlib::ObjectGcode::set_cnc_machine_settings | ( | cncSettings:&meshlib::CNCMachineSettings | ) |
Generated from method MR::ObjectGcode::setCNCMachineSettings.
Calls MR_ObjectGcode_setCNCMachineSettings().
| 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().
| 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().
| void meshlib::ObjectGcode::set_dirty_flags | ( | mask:core::ffi::c_uint | , |
| invalidateCaches:Option< bool > | ) |
Generated from method MR::ObjectGcode::setDirtyFlags.
Calls MR_ObjectGcode_setDirtyFlags().
| 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().
| 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().
| 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().
| 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().
| 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().
| 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().
| 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().
| void meshlib::ObjectGcode::set_idle_color | ( | color:&meshlib::Color | ) |
Generated from method MR::ObjectGcode::setIdleColor.
Calls MR_ObjectGcode_setIdleColor().
| void meshlib::ObjectGcode::set_line_width | ( | width:f32 | ) |
Generated from method MR::ObjectGcode::setLineWidth.
Calls MR_ObjectGcode_setLineWidth().
| void meshlib::ObjectGcode::set_lines_color_map | ( | linesColorMap:&meshlib::UndirectedEdgeColors | ) |
Generated from method MR::ObjectGcode::setLinesColorMap.
Calls MR_ObjectGcode_setLinesColorMap().
| void meshlib::ObjectGcode::set_locked | ( | on:bool | ) |
Generated from method MR::ObjectGcode::setLocked.
Calls MR_ObjectGcode_setLocked().
| void meshlib::ObjectGcode::set_name | ( | name:& | str | ) |
Generated from method MR::ObjectGcode::setName.
Calls MR_ObjectGcode_setName().
| void meshlib::ObjectGcode::set_parent_locked | ( | lock:bool | ) |
Generated from method MR::ObjectGcode::setParentLocked.
Calls MR_ObjectGcode_setParentLocked().
| 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().
| void meshlib::ObjectGcode::set_point_size | ( | size:f32 | ) |
Generated from method MR::ObjectGcode::setPointSize.
Calls MR_ObjectGcode_setPointSize().
| 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().
| void meshlib::ObjectGcode::set_specular_strength | ( | specularStrength:f32 | ) |
sets intensity of reflections Generated from method MR::ObjectGcode::setSpecularStrength.
Calls MR_ObjectGcode_setSpecularStrength().
| 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().
| 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().
| 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().
| 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().
| 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().
| 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().
| void meshlib::ObjectGcode::set_world_xf | ( | xf:&meshlib::AffineXf3f | , |
| id:Option<&meshlib::ViewportId > | ) |
Generated from method MR::ObjectGcode::setWorldXf.
Calls MR_ObjectGcode_setWorldXf().
| void meshlib::ObjectGcode::set_xf | ( | xf:&meshlib::AffineXf3f | , |
| id:Option<&meshlib::ViewportId > | ) |
Generated from method MR::ObjectGcode::setXf.
Calls MR_ObjectGcode_setXf().
| 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().
| auto meshlib::ObjectGcode::shallow_clone | ( | ) | const -> meshlib::Owned< meshlib::std_shared_ptr_MR_Object > |
Generated from method MR::ObjectGcode::shallowClone.
Calls MR_ObjectGcode_shallowClone().
| 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().
| void meshlib::ObjectGcode::sort_children | ( | ) |
sort recognized children by name Generated from method MR::ObjectGcode::sortChildren.
Calls MR_ObjectGcode_sortChildren().
|
static |
Generated from method MR::ObjectGcode::StaticClassName.
Calls MR_ObjectGcode_StaticClassName().
|
static |
Generated from method MR::ObjectGcode::StaticClassNameInPlural.
Calls MR_ObjectGcode_StaticClassNameInPlural().
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
static |
Generated from method MR::ObjectGcode::StaticTypeName.
Calls MR_ObjectGcode_StaticTypeName().
| auto meshlib::ObjectGcode::supports_visualize_property | ( | type:&meshlib::AnyVisualizeMaskEnum | ) | const -> bool |
Generated from method MR::ObjectGcode::supportsVisualizeProperty.
Calls MR_ObjectGcode_supportsVisualizeProperty().
| 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().
| 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().
| 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().
| 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().
| auto meshlib::ObjectGcode::total_length | ( | ) | const -> f32 |
return cached total length Generated from method MR::ObjectGcode::totalLength.
Calls MR_ObjectGcode_totalLength().
| auto meshlib::ObjectGcode::type_name | ( | ) | const -> Option<&core::ffi::c_char > |
Generated from method MR::ObjectGcode::typeName.
Calls MR_ObjectGcode_typeName().
| auto meshlib::ObjectGcode::upcast_to_object | ( | ) | const -> &meshlib::Object |
Upcasts to the base class MR::Object.
Calls MR_ObjectGcode_UpcastTo_MR_Object().
| auto meshlib::ObjectGcode::upcast_to_object_children_holder | ( | ) | const -> &meshlib::ObjectChildrenHolder |
Upcasts to the base class MR::ObjectChildrenHolder.
Calls MR_ObjectGcode_UpcastTo_MR_ObjectChildrenHolder().
| 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().
| auto meshlib::ObjectGcode::upcast_to_object_lines_holder | ( | ) | const -> &meshlib::ObjectLinesHolder |
Upcasts to the base class MR::ObjectLinesHolder.
Calls MR_ObjectGcode_UpcastTo_MR_ObjectLinesHolder().
| 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().
| auto meshlib::ObjectGcode::upcast_to_object_mut | ( | ) | -> &mut meshlib::Object |
Upcasts to the base class MR::Object.
Calls MR_ObjectGcode_MutableUpcastTo_MR_Object().
| auto meshlib::ObjectGcode::upcast_to_visual_object | ( | ) | const -> &meshlib::VisualObject |
Upcasts to the base class MR::VisualObject.
Calls MR_ObjectGcode_UpcastTo_MR_VisualObject().
| auto meshlib::ObjectGcode::upcast_to_visual_object_mut | ( | ) | -> &mut meshlib::VisualObject |
Upcasts to the base class MR::VisualObject.
Calls MR_ObjectGcode_MutableUpcastTo_MR_VisualObject().
| void meshlib::ObjectGcode::update_lines_color_map | ( | updated:&mut meshlib::UndirectedEdgeColors | ) |
Generated from method MR::ObjectGcode::updateLinesColorMap.
Calls MR_ObjectGcode_updateLinesColorMap().
| 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().
| 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().
| 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().
| 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().
| 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
| isDef | receives true if the object has default transformation in this viewport (same as worldXf() returns) Generated from method MR::ObjectGcode::worldXf. |
Calls MR_ObjectGcode_worldXf().
| 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
| isDef | receives true if the object has default transformation in this viewport (same as xf() returns) Generated from method MR::ObjectGcode::xf. |
Calls MR_ObjectGcode_xf().
| 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().