MeshLib
 
Loading...
Searching...
No Matches
MR::HistoryAction Class Referenceabstract

#include <MRHistoryAction.h>

+ Inheritance diagram for MR::HistoryAction:

Public Types

enum class  Type { Undo , Redo }
 

Public Member Functions

virtual ~HistoryAction ()=default
 
virtual std::string name () const =0
 
virtual void action (Type actionType)=0
 This function is called on history action (undo, redo, etc.)
 
virtual size_t heapBytes () const =0
 returns the amount of memory this object occupies on heap
 

Detailed Description

Abstract class for history actions

Member Enumeration Documentation

◆ Type

enum class MR::HistoryAction::Type
strong
Enumerator
Undo 
Redo 

Constructor & Destructor Documentation

◆ ~HistoryAction()

virtual MR::HistoryAction::~HistoryAction ( )
virtualdefault

Member Function Documentation

◆ action()

virtual void MR::HistoryAction::action ( Type actionType)
pure virtual

This function is called on history action (undo, redo, etc.)

Implemented in MR::AddPointActionPickerPoint, MR::ChangeActiveBoxAction, MR::ChangeBoundarySelectionHistoryAction, MR::ChangeColoringType, MR::ChangeDualMarchingCubesAction, MR::ChangeFacesColorMapAction, MR::ChangeGridAction, MR::ChangeIsoAction, MR::ChangeLabelAction, MR::ChangeLinesColorMapAction, MR::ChangeMeshAction, MR::ChangeMeshCreasesAction, MR::ChangeMeshEdgeSelectionAction, MR::ChangeMeshFaceSelectionAction, MR::ChangeMeshPointsAction, MR::ChangeMeshTexturePerFaceAction, MR::ChangeMeshTopologyAction, MR::ChangeMeshUVCoordsAction, MR::ChangeNameAction, MR::ChangeObjectAction, MR::ChangeObjectColorAction, MR::ChangeObjectSelectedAction, MR::ChangeObjectVisibilityAction, MR::ChangePointActionPickerPoint, MR::ChangePointCloudAction, MR::ChangePointCloudNormalsAction, MR::ChangePointCloudPointsAction, MR::ChangePointPointSelectionAction, MR::ChangePolylineAction, MR::ChangePolylinePointsAction, MR::ChangePolylineTopologyAction, MR::ChangeSceneAction, MR::ChangeSceneObjectsOrder, MR::ChangeSurfaceAction, MR::ChangeTextureAction, MR::ChangeValue< T >, MR::ChangeVertsColorMapAction, MR::ChangeVisualizePropertyAction, MR::ChangeXfAction, MR::ChangVoxelSelectionAction, MR::CombinedHistoryAction, MR::DirectionWidget::ChangeDirAction, MR::ITransformControls::ChangeCenterAction, MR::ObjectTransformWidget::ChangeXfAction, MR::RemovePointActionPickerPoint, MR::SurfaceContoursWidgetClearAction, MR::SwapRootAction, and MR::ViewportParametersAction.

◆ heapBytes()

virtual size_t MR::HistoryAction::heapBytes ( ) const
nodiscardpure virtual

◆ name()


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