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

Public Member Functions

auto name () const -> meshlib::Owned< meshlib::std_string >
void action (_1:meshlib::HistoryAction_Type)
auto selection () const -> &meshlib::VoxelBitSet
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::ChangVoxelSelectionAction) -> meshlib::Owned< meshlib::ChangVoxelSelectionAction >
static auto construct (name:&str, objVoxels:&meshlib::std_shared_ptr_MR_ObjectVoxels) -> meshlib::Owned< meshlib::ChangVoxelSelectionAction >
static void set_object_dirty (_1:&meshlib::std_shared_ptr_MR_ObjectVoxels)
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 ObjectVoxels face selection Generated from class MR::ChangVoxelSelectionAction. Base classes: Direct: (non-virtual) MR::HistoryAction

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

Member Function Documentation

◆ action()

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

Generated from method MR::ChangVoxelSelectionAction::action.

Calls MR_ChangVoxelSelectionAction_action().

◆ construct()

auto meshlib::ChangVoxelSelectionAction::construct ( name:& str,
objVoxels:&meshlib::std_shared_ptr_MR_ObjectVoxels  ) -> meshlib::Owned< meshlib::ChangVoxelSelectionAction >
static

use this constructor to remember object's face selection before making any changes in it Generated from constructor MR::ChangVoxelSelectionAction::ChangVoxelSelectionAction.

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

◆ construct_from_another()

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

Generated from constructor MR::ChangVoxelSelectionAction::ChangVoxelSelectionAction.

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

◆ dynamic_downcast_from_history_action()

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

Calls MR_ChangVoxelSelectionAction_DynamicDowncastFrom_MR_HistoryAction().

◆ dynamic_downcast_from_history_action_mut()

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

Calls MR_ChangVoxelSelectionAction_MutableDynamicDowncastFrom_MR_HistoryAction().

◆ heap_bytes()

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

Generated from method MR::ChangVoxelSelectionAction::heapBytes.

Calls MR_ChangVoxelSelectionAction_heapBytes().

◆ name()

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

Generated from method MR::ChangVoxelSelectionAction::name.

Calls MR_ChangVoxelSelectionAction_name().

◆ selection()

auto meshlib::ChangVoxelSelectionAction::selection ( ) const -> &meshlib::VoxelBitSet

Generated from method MR::ChangVoxelSelectionAction::selection.

Calls MR_ChangVoxelSelectionAction_selection().

◆ set_object_dirty()

void meshlib::ChangVoxelSelectionAction::set_object_dirty ( _1:&meshlib::std_shared_ptr_MR_ObjectVoxels )
static

empty because set dirty is inside selectFaces Generated from method MR::ChangVoxelSelectionAction::setObjectDirty.

Calls MR_ChangVoxelSelectionAction_setObjectDirty().

◆ static_downcast_from_history_action()

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

Static downcast from the base class MR::HistoryAction.

Calls MR_ChangVoxelSelectionAction_StaticDowncastFrom_MR_HistoryAction(). Undefined behavior if the object isn't actually a ChangVoxelSelectionAction.

Note
This function is unsafe.

◆ static_downcast_from_history_action_mut()

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

Static downcast from the base class MR::HistoryAction.

Calls MR_ChangVoxelSelectionAction_MutableStaticDowncastFrom_MR_HistoryAction(). Undefined behavior if the object isn't actually a ChangVoxelSelectionAction.

Note
This function is unsafe.

◆ upcast_to_history_action()

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

Upcasts to the base class MR::HistoryAction.

Calls MR_ChangVoxelSelectionAction_UpcastTo_MR_HistoryAction().

◆ upcast_to_history_action_mut()

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

Upcasts to the base class MR::HistoryAction.

Calls MR_ChangVoxelSelectionAction_MutableUpcastTo_MR_HistoryAction().


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