#include <MRHistoryAction.h>
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 | |
Abstract class for history actions
|
strong |
|
virtualdefault |
|
pure virtual |
This function is called on history action (undo, redo, etc.)
Implemented in 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::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::ChangeBaseAction, MR::DirectionWidget::ChangeDirAction, MR::DirectionWidget::ChangeLengthAction, MR::DirectionWidget::ChangeVisibleAction, MR::ITransformControls::ChangeCenterAction, MR::ObjectTransformWidget::ChangeXfAction, MR::SwapRootAction, and MR::ViewportParametersAction.
|
nodiscardpure virtual |
returns the amount of memory this object occupies on heap
Implemented in 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::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::ChangeVisibleAction, MR::ITransformControls::ChangeCenterAction, MR::ObjectTransformWidget::ChangeXfAction, MR::SwapRootAction, and MR::ViewportParametersAction.
|
pure virtual |
Implemented in 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::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::ChangeVisibleAction, MR::ITransformControls::ChangeCenterAction, MR::ObjectTransformWidget::ChangeXfAction, MR::SwapRootAction, and MR::ViewportParametersAction.