Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
WBDocUndoable Class Reference

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.
 
UndoableGetNext (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

CWorldBuilderDocmPDoc
 Not ref counted. This undoable should be in a list attached to the doc anyway.
 
WorldHeightMapEditmPNewHeightMapData
 ref counted.
 
WorldHeightMapEditmPOldHeightMapData
 ref counted.
 
Bool m_offsetObjects
 If true, apply m_objOffset.
 
Coord3D m_objOffset
 Offset to adjust all objects.
 
- Protected Attributes inherited from Undoable
UndoablemNext
 

Additional Inherited Members

- Static Public Member Functions inherited from RefCountClass
static int Total_Refs (void)
 
static RefCountClassAdd_Active_Ref (RefCountClass *obj)
 
static RefCountClassSet_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)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ WBDocUndoable()

WBDocUndoable::WBDocUndoable ( CWorldBuilderDoc * pDoc,
WorldHeightMapEdit * pNewHtMap,
Coord3D * pObjOffset = NULL )

Create a new undoable.

Definition at line 100 of file CUndoable.cpp.

◆ ~WBDocUndoable()

WBDocUndoable::~WBDocUndoable ( void )

destructor.

Definition at line 89 of file CUndoable.cpp.

Member Function Documentation

◆ Do()

void WBDocUndoable::Do ( void )
virtual

Set the new height map.

Implements Undoable.

Definition at line 120 of file CUndoable.cpp.

◆ Redo()

void WBDocUndoable::Redo ( void )
virtual

Set the new height map.

Reimplemented from Undoable.

Definition at line 154 of file CUndoable.cpp.

◆ Undo()

void WBDocUndoable::Undo ( void )
virtual

Restore the old height map.

Implements Undoable.

Definition at line 179 of file CUndoable.cpp.

Member Data Documentation

◆ m_objOffset

Coord3D WBDocUndoable::m_objOffset
protected

Offset to adjust all objects.

Definition at line 77 of file CUndoable.h.

◆ m_offsetObjects

Bool WBDocUndoable::m_offsetObjects
protected

If true, apply m_objOffset.

Definition at line 76 of file CUndoable.h.

◆ mPDoc

CWorldBuilderDoc* WBDocUndoable::mPDoc
protected

Not ref counted. This undoable should be in a list attached to the doc anyway.

Definition at line 73 of file CUndoable.h.

◆ mPNewHeightMapData

WorldHeightMapEdit* WBDocUndoable::mPNewHeightMapData
protected

ref counted.

Definition at line 74 of file CUndoable.h.

◆ mPOldHeightMapData

WorldHeightMapEdit* WBDocUndoable::mPOldHeightMapData
protected

ref counted.

Definition at line 75 of file CUndoable.h.


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