RioEngine  0.1
My first attempt to create a 3D WYSIWYG Game Engine
ScaleAction Class Reference

#include <customundoableactions.h>

Inheritance diagram for ScaleAction:
UndoableAction< CGameObject *, btVector3 > IUndoableAction CObject

Public Member Functions

 ScaleAction (CGameObject *game_obj, btVector3 translate_vec, bool calc_size_on_execute=false)
 
virtual const char * getHint () const
 
virtual void performAction ()
 
virtual IUndoableActiongetOppositeAction ()
 
- Public Member Functions inherited from UndoableAction< CGameObject *, btVector3 >
 UndoableAction (CGameObject *target, btVector3 &value)
 
void setTarget (CGameObject *target)
 
CGameObjectgetTarget () const
 
void setValue (btVector3 &value)
 
btVector3 getValue () const
 
virtual ~UndoableAction ()
 
- Public Member Functions inherited from CObject
 CObject ()
 
 CObject (const CObject &object)
 
CObjectoperator= (const CObject &object)
 
CObjectretain ()
 
unsigned int release () const
 
CObjectautorelease ()
 
unsigned int retainCount () const
 
bool isValidCObject () const
 
virtual ~CObject ()
 

Protected Attributes

btVector3 m_oldValue
 
bool m_calcSizeOnExecute
 
- Protected Attributes inherited from UndoableAction< CGameObject *, btVector3 >
CGameObjectm_target
 
btVector3 m_value
 

Additional Inherited Members

- Static Public Member Functions inherited from CObject
static void safeRetain (void *pointer)
 
template<class T >
static void safeRelease (T *pointer)
 
template<class T >
static void safeReleaseArray (T *array)
 
static void safeRelease (const char *pointer)
 
- Protected Member Functions inherited from CObject
virtual void copyValuesFromObject (const CObject &object)
 

Detailed Description

ScaleAction is created when the user modifies the scale of any game object in the editor.

Definition at line 70 of file customundoableactions.h.

Constructor & Destructor Documentation

ScaleAction::ScaleAction ( CGameObject game_obj,
btVector3  translate_vec,
bool  calc_size_on_execute = false 
)
inline

Definition at line 72 of file customundoableactions.h.

Member Function Documentation

virtual const char* ScaleAction::getHint ( ) const
inlinevirtual

Reimplemented from IUndoableAction.

Definition at line 77 of file customundoableactions.h.

virtual IUndoableAction* ScaleAction::getOppositeAction ( )
inlinevirtual

Reimplemented from IUndoableAction.

Definition at line 92 of file customundoableactions.h.

virtual void ScaleAction::performAction ( )
inlinevirtual

Reimplemented from IUndoableAction.

Definition at line 81 of file customundoableactions.h.

Member Data Documentation

bool ScaleAction::m_calcSizeOnExecute
protected

Definition at line 98 of file customundoableactions.h.

btVector3 ScaleAction::m_oldValue
protected

Definition at line 97 of file customundoableactions.h.


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