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

Public Member Functions

auto name () const -> meshlib::Owned< meshlib::std_string >
void action (_1:meshlib::HistoryAction_Type)
auto creases () const -> &meshlib::UndirectedEdgeBitSet
auto heap_bytes () const -> usize
auto upcast_to_history_action () const -> &meshlib::HistoryAction
auto upcast_to_history_action_mut () -> &mut meshlib::HistoryAction

Static Public Member Functions

static auto construct_from_another (_other:&meshlib::ChangeMeshCreasesAction) -> meshlib::Owned< meshlib::ChangeMeshCreasesAction >
static auto construct_2 (name:&str, objMesh:&meshlib::std_shared_ptr_MR_ObjectMesh) -> meshlib::Owned< meshlib::ChangeMeshCreasesAction >
static auto construct_3 (name:&str, objMesh:&meshlib::std_shared_ptr_MR_ObjectMesh, newCreases:&mut meshlib::UndirectedEdgeBitSet) -> meshlib::Owned< meshlib::ChangeMeshCreasesAction >
static void set_object_dirty (_1:&meshlib::std_shared_ptr_MR_ObjectMesh)
static auto static_downcast_from_history_action (object:&meshlib::HistoryAction) -> &Self
static auto static_downcast_from_history_action_mut (object:&mut meshlib::HistoryAction) -> &mut Self
static auto dynamic_downcast_from_history_action (object:&meshlib::HistoryAction) -> Option<&Self >
static auto dynamic_downcast_from_history_action_mut (object:&mut meshlib::HistoryAction) -> Option<&mut Self >
Static Public Member Functions inherited from meshlib::CppClass
static void destroy (ptr:*mut Self)
Static Public Member Functions inherited from meshlib::CppCopy
static auto copy (ptr:*const Self) -> *mut Self

Detailed Description

Undo action for ObjectMesh creases Generated from class MR::ChangeMeshCreasesAction. Base classes: Direct: (non-virtual) MR::HistoryAction

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

Member Function Documentation

◆ action()

void meshlib::ChangeMeshCreasesAction::action ( _1:meshlib::HistoryAction_Type )

Generated from method MR::ChangeMeshCreasesAction::action.

Calls MR_ChangeMeshCreasesAction_action().

◆ construct_2()

auto meshlib::ChangeMeshCreasesAction::construct_2 ( name:& str,
objMesh:&meshlib::std_shared_ptr_MR_ObjectMesh  ) -> meshlib::Owned< meshlib::ChangeMeshCreasesAction >
static

use this constructor to remember object's creases before making any changes in it Generated from constructor MR::ChangeMeshCreasesAction::ChangeMeshCreasesAction.

Calls MR_ChangeMeshCreasesAction_Construct_2(). The reference to the parameter name might be preserved in the constructed object. The reference to the parameter objMesh might be preserved in the constructed object.

◆ construct_3()

auto meshlib::ChangeMeshCreasesAction::construct_3 ( name:& str,
objMesh:&meshlib::std_shared_ptr_MR_ObjectMesh ,
newCreases:&mut meshlib::UndirectedEdgeBitSet  ) -> meshlib::Owned< meshlib::ChangeMeshCreasesAction >
static

use this constructor to remember object's current creases and immediate set new creases Generated from constructor MR::ChangeMeshCreasesAction::ChangeMeshCreasesAction.

Calls MR_ChangeMeshCreasesAction_Construct_3(). The reference to the parameter name might be preserved in the constructed object. The reference to the parameter objMesh might be preserved in the constructed object. The reference to the parameter newCreases might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::ChangeMeshCreasesAction::ChangeMeshCreasesAction.

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

◆ creases()

auto meshlib::ChangeMeshCreasesAction::creases ( ) const -> &meshlib::UndirectedEdgeBitSet

Generated from method MR::ChangeMeshCreasesAction::creases.

Calls MR_ChangeMeshCreasesAction_creases().

◆ dynamic_downcast_from_history_action()

auto meshlib::ChangeMeshCreasesAction::dynamic_downcast_from_history_action ( object:&meshlib::HistoryAction ) -> Option<&Self >
static

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

Calls MR_ChangeMeshCreasesAction_DynamicDowncastFrom_MR_HistoryAction().

◆ dynamic_downcast_from_history_action_mut()

auto meshlib::ChangeMeshCreasesAction::dynamic_downcast_from_history_action_mut ( object:&mut meshlib::HistoryAction ) -> Option<&mut Self >
static

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

Calls MR_ChangeMeshCreasesAction_MutableDynamicDowncastFrom_MR_HistoryAction().

◆ heap_bytes()

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

Generated from method MR::ChangeMeshCreasesAction::heapBytes.

Calls MR_ChangeMeshCreasesAction_heapBytes().

◆ name()

auto meshlib::ChangeMeshCreasesAction::name ( ) const -> meshlib::Owned< meshlib::std_string >

Generated from method MR::ChangeMeshCreasesAction::name.

Calls MR_ChangeMeshCreasesAction_name().

◆ set_object_dirty()

void meshlib::ChangeMeshCreasesAction::set_object_dirty ( _1:&meshlib::std_shared_ptr_MR_ObjectMesh )
static

empty because set dirty is inside setCreases Generated from method MR::ChangeMeshCreasesAction::setObjectDirty.

Calls MR_ChangeMeshCreasesAction_setObjectDirty().

◆ static_downcast_from_history_action()

auto meshlib::ChangeMeshCreasesAction::static_downcast_from_history_action ( object:&meshlib::HistoryAction ) -> &Self
static

Static downcast from the base class MR::HistoryAction.

Calls MR_ChangeMeshCreasesAction_StaticDowncastFrom_MR_HistoryAction(). Undefined behavior if the object isn't actually a ChangeMeshCreasesAction.

Note
This function is unsafe.

◆ static_downcast_from_history_action_mut()

auto meshlib::ChangeMeshCreasesAction::static_downcast_from_history_action_mut ( object:&mut meshlib::HistoryAction ) -> &mut Self
static

Static downcast from the base class MR::HistoryAction.

Calls MR_ChangeMeshCreasesAction_MutableStaticDowncastFrom_MR_HistoryAction(). Undefined behavior if the object isn't actually a ChangeMeshCreasesAction.

Note
This function is unsafe.

◆ upcast_to_history_action()

auto meshlib::ChangeMeshCreasesAction::upcast_to_history_action ( ) const -> &meshlib::HistoryAction

Upcasts to the base class MR::HistoryAction.

Calls MR_ChangeMeshCreasesAction_UpcastTo_MR_HistoryAction().

◆ upcast_to_history_action_mut()

auto meshlib::ChangeMeshCreasesAction::upcast_to_history_action_mut ( ) -> &mut meshlib::HistoryAction

Upcasts to the base class MR::HistoryAction.

Calls MR_ChangeMeshCreasesAction_MutableUpcastTo_MR_HistoryAction().


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