MeshLib Documentation
Loading...
Searching...
No Matches
MR::CombinedHistoryAction Class Reference

#include <MRCombinedHistoryAction.h>

+ Inheritance diagram for MR::CombinedHistoryAction:

Public Member Functions

MRMESH_API CombinedHistoryAction (const std::string &name, const std::vector< std::shared_ptr< HistoryAction > > &actions)
 Will call action() for each actions in given order (undo in reverse, redo in forward)
 
virtual std::string name () const override
 
virtual MRMESH_API void action (HistoryAction::Type type) override
 This function is called on history action (undo, redo, etc.)
 
const HistoryActionsVectorgetStack () const
 
MRMESH_API bool filter (HistoryStackFilter filteringCondition)
 
bool empty () const
 
virtual MRMESH_API size_t heapBytes () const override
 returns the amount of memory this object occupies on heap
 
- Public Member Functions inherited from MR::HistoryAction
virtual ~HistoryAction ()=default
 

Additional Inherited Members

- Public Types inherited from MR::HistoryAction
enum class  Type { Undo , Redo }
 

Detailed Description

History action for combine some history actions

Constructor & Destructor Documentation

◆ CombinedHistoryAction()

MRMESH_API MR::CombinedHistoryAction::CombinedHistoryAction ( const std::string & name,
const std::vector< std::shared_ptr< HistoryAction > > & actions )

Will call action() for each actions in given order (undo in reverse, redo in forward)

Member Function Documentation

◆ action()

virtual MRMESH_API void MR::CombinedHistoryAction::action ( HistoryAction::Type actionType)
overridevirtual

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

Implements MR::HistoryAction.

◆ empty()

bool MR::CombinedHistoryAction::empty ( ) const
inline

◆ filter()

MRMESH_API bool MR::CombinedHistoryAction::filter ( HistoryStackFilter filteringCondition)

Remove some actions according to condition inside combined actions. Do deep filtering.

◆ getStack()

const HistoryActionsVector & MR::CombinedHistoryAction::getStack ( ) const
inline

◆ heapBytes()

virtual MRMESH_API size_t MR::CombinedHistoryAction::heapBytes ( ) const
nodiscardoverridevirtual

returns the amount of memory this object occupies on heap

Implements MR::HistoryAction.

◆ name()

virtual std::string MR::CombinedHistoryAction::name ( ) const
inlineoverridevirtual

Implements MR::HistoryAction.


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