Command to transform an object or a list of objects using a delta and a transform mode. More...
#include "Transform.hpp"
Public Types | |
enum | TransModeT { MODE_TRANSLATE, MODE_ROTATE, MODE_SCALE, MODE_MATRIX } |
This enum describes the kind of transformation that is to be applied by a CommandTransformT. More... | |
Public Member Functions | |
CommandTransformT (MapDocumentT &MapDoc, const ArrayT< MapElementT * > &TransElems, TransModeT Mode, const Vector3fT &RefPoint, const Vector3fT &Amount, bool LockTexCoords) | |
The constructor to transform an array of map elements using a delta and a transform mode. More... | |
CommandTransformT (MapDocumentT &MapDoc, const ArrayT< MapElementT * > &TransElems, const MatrixT &Matrix, bool LockTexCoords) | |
~CommandTransformT () | |
The destructor. More... | |
bool | Do () |
This method executes the command. More... | |
void | Undo () |
This method un-does the command. More... | |
wxString | GetName () const |
Returns the name (a description) of the command. More... | |
Public Member Functions inherited from CommandT | |
CommandT (bool ShowInHistory=true, bool SuggestsSave=true) | |
The constructor. More... | |
virtual | ~CommandT () |
The virtual destructor. 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... | |
Additional Inherited Members | |
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... | |
Command to transform an object or a list of objects using a delta and a transform mode.
This enum describes the kind of transformation that is to be applied by a CommandTransformT.
CommandTransformT::CommandTransformT | ( | MapDocumentT & | MapDoc, |
const ArrayT< MapElementT * > & | TransElems, | ||
TransModeT | Mode, | ||
const Vector3fT & | RefPoint, | ||
const Vector3fT & | Amount, | ||
bool | LockTexCoords | ||
) |
The constructor to transform an array of map elements using a delta and a transform mode.
CommandTransformT::~CommandTransformT | ( | ) |
The destructor.
|
virtual |
This method executes the command.
Implements CommandT.
|
virtual |
Returns the name (a description) of the command.
Implements CommandT.
|
virtual |
This method un-does the command.
Implements CommandT.