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

Public Member Functions

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

Static Public Member Functions

static auto construct (name:&str, obj:&meshlib::std_shared_ptr_MR_ObjectMesh) -> meshlib::Owned< meshlib::VersatileChangeMeshPointsAction >
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)

Detailed Description

Undo action for ObjectMesh points only (not topology) change; It starts its life storing all points (uncompressed format), but can be switched to store only modified points (compressed format) Generated from class MR::VersatileChangeMeshPointsAction. Base classes: Direct: (non-virtual) MR::HistoryAction

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

Member Function Documentation

◆ action()

void meshlib::VersatileChangeMeshPointsAction::action ( t:meshlib::HistoryAction_Type )

Generated from method MR::VersatileChangeMeshPointsAction::action.

Calls MR_VersatileChangeMeshPointsAction_action().

◆ compress()

void meshlib::VersatileChangeMeshPointsAction::compress ( )

switch from uncompressed to compressed format to occupy less amount of memory Generated from method MR::VersatileChangeMeshPointsAction::compress.

Calls MR_VersatileChangeMeshPointsAction_compress().

◆ construct()

auto meshlib::VersatileChangeMeshPointsAction::construct ( name:& str,
obj:&meshlib::std_shared_ptr_MR_ObjectMesh  ) -> meshlib::Owned< meshlib::VersatileChangeMeshPointsAction >
static

use this constructor to remember object's mesh points in uncompressed format before making any changes in it Generated from constructor MR::VersatileChangeMeshPointsAction::VersatileChangeMeshPointsAction.

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

◆ dynamic_downcast_from_history_action()

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

Calls MR_VersatileChangeMeshPointsAction_DynamicDowncastFrom_MR_HistoryAction().

◆ dynamic_downcast_from_history_action_mut()

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

Calls MR_VersatileChangeMeshPointsAction_MutableDynamicDowncastFrom_MR_HistoryAction().

◆ heap_bytes()

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

Generated from method MR::VersatileChangeMeshPointsAction::heapBytes.

Calls MR_VersatileChangeMeshPointsAction_heapBytes().

◆ name()

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

Generated from method MR::VersatileChangeMeshPointsAction::name.

Calls MR_VersatileChangeMeshPointsAction_name().

◆ set_object_dirty()

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

Generated from method MR::VersatileChangeMeshPointsAction::setObjectDirty.

Calls MR_VersatileChangeMeshPointsAction_setObjectDirty().

◆ static_downcast_from_history_action()

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

Static downcast from the base class MR::HistoryAction.

Calls MR_VersatileChangeMeshPointsAction_StaticDowncastFrom_MR_HistoryAction(). Undefined behavior if the object isn't actually a VersatileChangeMeshPointsAction.

Note
This function is unsafe.

◆ static_downcast_from_history_action_mut()

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

Static downcast from the base class MR::HistoryAction.

Calls MR_VersatileChangeMeshPointsAction_MutableStaticDowncastFrom_MR_HistoryAction(). Undefined behavior if the object isn't actually a VersatileChangeMeshPointsAction.

Note
This function is unsafe.

◆ upcast_to_history_action()

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

Upcasts to the base class MR::HistoryAction.

Calls MR_VersatileChangeMeshPointsAction_UpcastTo_MR_HistoryAction().

◆ upcast_to_history_action_mut()

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

Upcasts to the base class MR::HistoryAction.

Calls MR_VersatileChangeMeshPointsAction_MutableUpcastTo_MR_HistoryAction().


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