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

Public Member Functions

auto name () const -> meshlib::Owned< meshlib::std_string >
void action (_1:meshlib::HistoryAction_Type)
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::PartialChangeMeshTopologyAction) -> meshlib::Owned< meshlib::PartialChangeMeshTopologyAction >
static auto construct_mr_cmp_old (name:&str, obj:&meshlib::std_shared_ptr_MR_ObjectMesh, _3:&meshlib::CmpOld, oldTopology:&meshlib::MeshTopology) -> meshlib::Owned< meshlib::PartialChangeMeshTopologyAction >
static auto construct_mr_set_new (name:&str, obj:&meshlib::std_shared_ptr_MR_ObjectMesh, _3:&meshlib::SetNew, newTopology:&mut meshlib::MeshTopology) -> meshlib::Owned< meshlib::PartialChangeMeshTopologyAction >
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 efficiently storage of partial change in mesh topology (e.g. a modification of small region) Generated from class MR::PartialChangeMeshTopologyAction. Base classes: Direct: (non-virtual) MR::HistoryAction

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

Member Function Documentation

◆ action()

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

Generated from method MR::PartialChangeMeshTopologyAction::action.

Calls MR_PartialChangeMeshTopologyAction_action().

◆ construct_from_another()

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

Generated from constructor MR::PartialChangeMeshTopologyAction::PartialChangeMeshTopologyAction.

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

◆ construct_mr_cmp_old()

auto meshlib::PartialChangeMeshTopologyAction::construct_mr_cmp_old ( name:& str,
obj:&meshlib::std_shared_ptr_MR_ObjectMesh ,
_3:&meshlib::CmpOld ,
oldTopology:&meshlib::MeshTopology  ) -> meshlib::Owned< meshlib::PartialChangeMeshTopologyAction >
static

use this constructor after the object already contains new topology, and old topology is passed to remember the difference for future undoing Generated from constructor MR::PartialChangeMeshTopologyAction::PartialChangeMeshTopologyAction.

Calls MR_PartialChangeMeshTopologyAction_Construct_MR_CmpOld(). The reference to the parameter name might be preserved in the constructed object. The reference to the parameter obj might be preserved in the constructed object. The reference to the parameter _3 might be preserved in the constructed object. The reference to the parameter oldTopology might be preserved in the constructed object.

◆ construct_mr_set_new()

auto meshlib::PartialChangeMeshTopologyAction::construct_mr_set_new ( name:& str,
obj:&meshlib::std_shared_ptr_MR_ObjectMesh ,
_3:&meshlib::SetNew ,
newTopology:&mut meshlib::MeshTopology  ) -> meshlib::Owned< meshlib::PartialChangeMeshTopologyAction >
static

use this constructor to set new object's topology and remember its difference from existed topology for future undoing Generated from constructor MR::PartialChangeMeshTopologyAction::PartialChangeMeshTopologyAction.

Calls MR_PartialChangeMeshTopologyAction_Construct_MR_SetNew(). The reference to the parameter name might be preserved in the constructed object. The reference to the parameter obj might be preserved in the constructed object. The reference to the parameter _3 might be preserved in the constructed object. The reference to the parameter newTopology might be preserved in the constructed object.

◆ dynamic_downcast_from_history_action()

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

Calls MR_PartialChangeMeshTopologyAction_DynamicDowncastFrom_MR_HistoryAction().

◆ dynamic_downcast_from_history_action_mut()

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

Calls MR_PartialChangeMeshTopologyAction_MutableDynamicDowncastFrom_MR_HistoryAction().

◆ heap_bytes()

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

Generated from method MR::PartialChangeMeshTopologyAction::heapBytes.

Calls MR_PartialChangeMeshTopologyAction_heapBytes().

◆ name()

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

Generated from method MR::PartialChangeMeshTopologyAction::name.

Calls MR_PartialChangeMeshTopologyAction_name().

◆ static_downcast_from_history_action()

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

Static downcast from the base class MR::HistoryAction.

Calls MR_PartialChangeMeshTopologyAction_StaticDowncastFrom_MR_HistoryAction(). Undefined behavior if the object isn't actually a PartialChangeMeshTopologyAction.

Note
This function is unsafe.

◆ static_downcast_from_history_action_mut()

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

Static downcast from the base class MR::HistoryAction.

Calls MR_PartialChangeMeshTopologyAction_MutableStaticDowncastFrom_MR_HistoryAction(). Undefined behavior if the object isn't actually a PartialChangeMeshTopologyAction.

Note
This function is unsafe.

◆ upcast_to_history_action()

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

Upcasts to the base class MR::HistoryAction.

Calls MR_PartialChangeMeshTopologyAction_UpcastTo_MR_HistoryAction().

◆ upcast_to_history_action_mut()

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

Upcasts to the base class MR::HistoryAction.

Calls MR_PartialChangeMeshTopologyAction_MutableUpcastTo_MR_HistoryAction().


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