#include <node_undo.h>
GraphSetUndoMode is an RAII-based convenience wrapper to ensure modifications done to a node graph do not interfere with other components with write access to the same node graph.
The life-time of the instance should enclose the node graph modification:
Public Member Functions | |
| GraphSetUndoMode (const GraphModelRef &graph) | |
| ~GraphSetUndoMode () | |
Private Attributes | |
| const GraphModelRef & | _graph |
| Bool | _previous |
|
explicit |
Constructs the RAII-based wrapper.
| [in] | graph | The node graph that is to be modified. |
| ~GraphSetUndoMode | ( | ) |
Resets the undo state of the specified node graph.
|
private |
|
private |