This reference page is linked to from the following overview topics: How to Enable Undo and Redo, Undo and Redo Example, Deriving from RestoreObj, Undo Memory Limits, The Undo Mechanism and Transform Controllers, Stabilizing Changes.
#include <hold.h>
Public Member Functions |
|
RestoreObj () | |
virtual | ~RestoreObj () |
virtual void | Restore (int isUndo)=0 |
virtual void | Redo ()=0 |
virtual int | Size () |
virtual void | EndHold () |
virtual MSTR | Description () |
virtual INT_PTR | Execute (int cmd, ULONG_PTR arg1=0, ULONG_PTR arg2=0, ULONG_PTR arg3=0) |
Friends |
|
class | HoldStore |
class | GenUndoObject |
class | CheckForFlush |
RestoreObj | ( | ) | [inline] |
{ next = prev = NULL; }
virtual ~RestoreObj | ( | ) | [inline, virtual] |
{};
virtual void Restore | ( | int | isUndo | ) | [pure virtual] |
isUndo | Nonzero if Restore() is being called in response to the Undo command; otherwise zero. If isUndo is nonzero, the developer needs to save whatever data they need to allow the user to redo the operation. |
Implemented in JPLimitsRestore, ConvertToRestore, AssignControllerRestore, PatchObjectRestore, RealWorldScaleRecord< T >, DeletedRestore, RefMgrAddDeleteRestore< T >, AppendGizmoRestore, and DeleteGizmoRestore.
virtual void Redo | ( | ) | [pure virtual] |
Implemented in JPLimitsRestore, ConvertToRestore, AssignControllerRestore, PatchObjectRestore, RealWorldScaleRecord< T >, DeletedRestore, RefMgrAddDeleteRestore< T >, AppendGizmoRestore, and DeleteGizmoRestore.
virtual int Size | ( | ) | [inline, virtual] |
Reimplemented in PatchObjectRestore.
{ return sizeof(RestoreObj); }
virtual void EndHold | ( | ) | [inline, virtual] |
Reimplemented in JPLimitsRestore, and PatchObjectRestore.
{ }
virtual MSTR Description | ( | ) | [inline, virtual] |
Reimplemented in ConvertToRestore, AssignControllerRestore, PatchObjectRestore, DeletedRestore, RefMgrAddDeleteRestore< T >, AppendGizmoRestore, and DeleteGizmoRestore.
virtual INT_PTR Execute | ( | int | cmd, |
ULONG_PTR | arg1 = 0 , |
||
ULONG_PTR | arg2 = 0 , |
||
ULONG_PTR | arg3 = 0 |
||
) | [inline, virtual] |
{ UNUSED_PARAM(cmd); UNUSED_PARAM(arg1); UNUSED_PARAM(arg2); UNUSED_PARAM(arg3); return -1; }
friend class HoldStore
[friend] |
friend class GenUndoObject
[friend] |
friend class CheckForFlush
[friend] |