Cafu Engine
CommandUpdateSurfaceT Class Reference
Inheritance diagram for CommandUpdateSurfaceT:

Public Member Functions

 CommandUpdateSurfaceT (MapDocumentT &MapDoc_, const SurfaceInfoT &SurfaceInfoNew_, const SurfaceInfoT &SurfaceInfoOld_, EditorMaterialI *MaterialNew_, EditorMaterialI *MaterialOld_)
 
- Public Member Functions inherited from CommandT
 CommandT (bool ShowInHistory=true, bool SuggestsSave=true)
 The constructor. More...
 
virtual ~CommandT ()
 The virtual destructor. More...
 
virtual bool Do ()=0
 This method executes the command. More...
 
virtual void Undo ()=0
 This method un-does the command. More...
 
virtual wxString GetName () const =0
 Returns the name (a description) of the command. More...
 
bool ShowInHistory () const
 Whether the command should be shown in the undo/redo history. More...
 
bool SuggestsSave () const
 Whether the command suggests to save the document when its closed and hasn't been saved between the command execution and the closing (selection changes for example don't suggest to save the document since no important changes have been made). More...
 
bool IsDone () const
 Whether the command has been executed. More...
 
unsigned long GetID () const
 Returns the commands unique ID. More...
 

Protected Attributes

MapDocumentTMapDoc
 
const SurfaceInfoT SurfaceInfoNew
 The surface info that is applied to the surface. More...
 
const SurfaceInfoT SurfaceInfoOld
 The surfaces former surface info for undo. More...
 
EditorMaterialIMaterialNew
 The material that is applied to the surface. More...
 
EditorMaterialIMaterialOld
 The surface's former material for undo. More...
 
- Protected Attributes inherited from CommandT
bool m_Done
 Whether the command has been executed. More...
 
const bool m_ShowInHistory
 Whether the command should have an entry in the undo/redo history. More...
 
const bool m_SuggestsSave
 Whether the command suggests saving of the document on close. More...
 
const unsigned long m_ID
 The commands unique ID. More...
 

Member Data Documentation

EditorMaterialI* CommandUpdateSurfaceT::MaterialNew
protected

The material that is applied to the surface.

EditorMaterialI* CommandUpdateSurfaceT::MaterialOld
protected

The surface's former material for undo.

const SurfaceInfoT CommandUpdateSurfaceT::SurfaceInfoNew
protected

The surface info that is applied to the surface.

const SurfaceInfoT CommandUpdateSurfaceT::SurfaceInfoOld
protected

The surfaces former surface info for undo.


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