MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::ScopeHistory Class Reference

The purpose of this class is to combine all actions appended to global history store in one big action to undo/redo them all at once. More...

#include <MRViewer/MRAppendHistory.h>

Public Member Functions

 ScopeHistory (const std::string &name)
 creates new CombinedHistoryAction, and setups global history store to append all new actions there during this object lifetime
 ~ScopeHistory ()
 created before CombinedHistoryAction if not empty is appended (with all sub-actions) in the global history store
const std::shared_ptr< CombinedHistoryAction > & combinedAction () const
 returns the action being populated

Detailed Description

The purpose of this class is to combine all actions appended to global history store in one big action to undo/redo them all at once.


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