Command that saves & restores entire height map. More...
#include <CUndoable.h>
Inherits Undoable.
Public Member Functions | |
| WBDocUndoable (CWorldBuilderDoc *pDoc, WorldHeightMapEdit *pNewHtMap, Coord3D *pObjOffset=NULL) | |
| Create a new undoable. | |
| ~WBDocUndoable (void) | |
| destructor. | |
| virtual void | Do (void) |
| Set the new height map. | |
| virtual void | Undo (void) |
| Restore the old height map. | |
| virtual void | Redo (void) |
| Set the new height map. | |
Public Member Functions inherited from Undoable | |
| Undoable (void) | |
| Create a new undoable. | |
| ~Undoable (void) | |
| Undoable - destructor. | |
| void | LinkNext (Undoable *pNext) |
| Link another undoable to this. | |
| Undoable * | GetNext (void) |
Public Member Functions inherited from RefCountClass | |
| RefCountClass (void) | |
| RefCountClass (const RefCountClass &) | |
| void | Add_Ref (void) const |
| WWINLINE void | Release_Ref (void) const |
| int | Num_Refs (void) const |
| virtual void | Delete_This (void) |
Protected Attributes | |
| CWorldBuilderDoc * | mPDoc |
| Not ref counted. This undoable should be in a list attached to the doc anyway. | |
| WorldHeightMapEdit * | mPNewHeightMapData |
| ref counted. | |
| WorldHeightMapEdit * | mPOldHeightMapData |
| ref counted. | |
| Bool | m_offsetObjects |
| If true, apply m_objOffset. | |
| Coord3D | m_objOffset |
| Offset to adjust all objects. | |
Protected Attributes inherited from Undoable | |
| Undoable * | mNext |
Additional Inherited Members | |
Static Public Member Functions inherited from RefCountClass | |
| static int | Total_Refs (void) |
| static RefCountClass * | Add_Active_Ref (RefCountClass *obj) |
| static RefCountClass * | Set_Ref_Owner (RefCountClass *obj, char *file, int line) |
| static void | Remove_Active_Ref (RefCountClass *obj) |
| static bool | Validate_Active_Ref (RefCountClass *obj) |
Public Attributes inherited from RefCountClass | |
| RefCountNodeClass | ActiveRefNode |
| ActiveRefStruct | ActiveRefInfo |
Static Public Attributes inherited from RefCountClass | |
| static RefCountListClass | ActiveRefList |
Protected Member Functions inherited from RefCountClass | |
| virtual | ~RefCountClass (void) |
Command that saves & restores entire height map.
An undoable that actually undoes something. Saves and restores the entire height map.
Definition at line 70 of file CUndoable.h.
| WBDocUndoable::WBDocUndoable | ( | CWorldBuilderDoc * | pDoc, |
| WorldHeightMapEdit * | pNewHtMap, | ||
| Coord3D * | pObjOffset = NULL ) |
Create a new undoable.
Definition at line 100 of file CUndoable.cpp.
| WBDocUndoable::~WBDocUndoable | ( | void | ) |
destructor.
Definition at line 89 of file CUndoable.cpp.
|
virtual |
|
virtual |
|
virtual |
|
protected |
Offset to adjust all objects.
Definition at line 77 of file CUndoable.h.
|
protected |
If true, apply m_objOffset.
Definition at line 76 of file CUndoable.h.
|
protected |
Not ref counted. This undoable should be in a list attached to the doc anyway.
Definition at line 73 of file CUndoable.h.
|
protected |
ref counted.
Definition at line 74 of file CUndoable.h.
|
protected |
ref counted.
Definition at line 75 of file CUndoable.h.