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

Public Member Functions

auto name () const -> meshlib::Owned< meshlib::std_string >
void action (_1:meshlib::HistoryAction_Type)
auto heap_bytes () const -> usize
auto obj () const -> &meshlib::std_shared_ptr_MR_ObjectMesh
auto data () const -> &meshlib::ObjectMeshData
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::ChangeMeshDataAction) -> meshlib::Owned< meshlib::ChangeMeshDataAction >
static auto construct_bool (name:&str, obj:&meshlib::std_shared_ptr_MR_ObjectMesh, cloneMesh:bool) -> meshlib::Owned< meshlib::ChangeMeshDataAction >
static auto construct_mr_object_mesh_data (name:&str, obj:&meshlib::std_shared_ptr_MR_ObjectMesh, newData:&mut meshlib::ObjectMeshData) -> meshlib::Owned< meshlib::ChangeMeshDataAction >
static void set_object_dirty (obj:&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 ObjectMeshData change Generated from class MR::ChangeMeshDataAction. Base classes: Direct: (non-virtual) MR::HistoryAction

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

Member Function Documentation

◆ action()

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

Generated from method MR::ChangeMeshDataAction::action.

Calls MR_ChangeMeshDataAction_action().

◆ construct_bool()

auto meshlib::ChangeMeshDataAction::construct_bool ( name:& str,
obj:&meshlib::std_shared_ptr_MR_ObjectMesh ,
cloneMesh:bool  ) -> meshlib::Owned< meshlib::ChangeMeshDataAction >
static

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

Calls MR_ChangeMeshDataAction_Construct_bool(). 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.

◆ construct_from_another()

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

Generated from constructor MR::ChangeMeshDataAction::ChangeMeshDataAction.

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

◆ construct_mr_object_mesh_data()

auto meshlib::ChangeMeshDataAction::construct_mr_object_mesh_data ( name:& str,
obj:&meshlib::std_shared_ptr_MR_ObjectMesh ,
newData:&mut meshlib::ObjectMeshData  ) -> meshlib::Owned< meshlib::ChangeMeshDataAction >
static

use this constructor to remember object's data and immediately set new data Generated from constructor MR::ChangeMeshDataAction::ChangeMeshDataAction.

Calls MR_ChangeMeshDataAction_Construct_MR_ObjectMeshData(). 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 newData might be preserved in the constructed object.

◆ data()

auto meshlib::ChangeMeshDataAction::data ( ) const -> &meshlib::ObjectMeshData

Generated from method MR::ChangeMeshDataAction::data.

Calls MR_ChangeMeshDataAction_data().

◆ dynamic_downcast_from_history_action()

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

Calls MR_ChangeMeshDataAction_DynamicDowncastFrom_MR_HistoryAction().

◆ dynamic_downcast_from_history_action_mut()

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

Calls MR_ChangeMeshDataAction_MutableDynamicDowncastFrom_MR_HistoryAction().

◆ heap_bytes()

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

Generated from method MR::ChangeMeshDataAction::heapBytes.

Calls MR_ChangeMeshDataAction_heapBytes().

◆ name()

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

Generated from method MR::ChangeMeshDataAction::name.

Calls MR_ChangeMeshDataAction_name().

◆ obj()

auto meshlib::ChangeMeshDataAction::obj ( ) const -> &meshlib::std_shared_ptr_MR_ObjectMesh

Generated from method MR::ChangeMeshDataAction::obj.

Calls MR_ChangeMeshDataAction_obj().

◆ set_object_dirty()

void meshlib::ChangeMeshDataAction::set_object_dirty ( obj:&meshlib::std_shared_ptr_MR_ObjectMesh )
static

Generated from method MR::ChangeMeshDataAction::setObjectDirty.

Calls MR_ChangeMeshDataAction_setObjectDirty().

◆ static_downcast_from_history_action()

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

Static downcast from the base class MR::HistoryAction.

Calls MR_ChangeMeshDataAction_StaticDowncastFrom_MR_HistoryAction(). Undefined behavior if the object isn't actually a ChangeMeshDataAction.

Note
This function is unsafe.

◆ static_downcast_from_history_action_mut()

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

Static downcast from the base class MR::HistoryAction.

Calls MR_ChangeMeshDataAction_MutableStaticDowncastFrom_MR_HistoryAction(). Undefined behavior if the object isn't actually a ChangeMeshDataAction.

Note
This function is unsafe.

◆ upcast_to_history_action()

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

Upcasts to the base class MR::HistoryAction.

Calls MR_ChangeMeshDataAction_UpcastTo_MR_HistoryAction().

◆ upcast_to_history_action_mut()

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

Upcasts to the base class MR::HistoryAction.

Calls MR_ChangeMeshDataAction_MutableUpcastTo_MR_HistoryAction().


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