V-ART
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
VART::TransformAction Class Referenceabstract

#include <transformaction.h>

Inheritance diagram for VART::TransformAction:
VART::BaseAction VART::RotationAction VART::ScaleAction VART::ShearAction VART::TranslationAction

Public Member Functions

 TransformAction ()
 
virtual ~TransformAction ()
 
void SetTarget (Transform *target)
 Sets the Transform on which to act. More...
 
- Public Member Functions inherited from VART::BaseAction
 BaseAction ()
 Creates an action with sane defaults. More...
 
virtual ~BaseAction ()
 
void SetSpeed (float newSpeed)
 
void SetDuration (float seconds)
 
void SetCyclic (bool value)
 
bool IsCyclic ()
 
bool IsActive () const
 
void Deactivate (float seconds)
 Mark for auto deactivation in given time. More...
 
virtual void Deactivate ()
 Deactivate now. More...
 
virtual void Activate ()
 Activates the action. More...
 

Protected Member Functions

virtual void Move ()=0
 Make the action update its targets. More...
 
- Protected Member Functions inherited from VART::BaseAction
virtual void ComputePositionIndex (bool *cycled)
 Computes current position index. More...
 

Protected Attributes

TransformtargetPtr
 
- Protected Attributes inherited from VART::BaseAction
bool cyclic
 Whether the action restarts upon termination. More...
 
bool active
 Whether the action is currently active (changing its target). More...
 
float speedModifier
 Speed modifier. More...
 
float duration
 Duration in seconds. More...
 
float timeToLive
 Time (in seconds) to auto deactivate. More...
 
float positionIndex
 Current position index. More...
 
float lastPositionIndex
 Position index of last update. More...
 
Time lastUpdateTime
 Time of last update. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from VART::BaseAction
static unsigned int MoveAllActive ()
 Moves all active actions. More...
 
- Public Attributes inherited from VART::BaseAction
std::string description
 
CallBackcallbackPtr
 Termination callback. More...
 
- Static Protected Attributes inherited from VART::BaseAction
static std::list< BaseAction * > activeInstances
 List of active actions. More...
 
static std::list< Initializer * > initializers
 List of action initializers. More...
 

Detailed Description

Definition at line 12 of file transformaction.h.

Constructor & Destructor Documentation

VART::TransformAction::TransformAction ( )

Definition at line 10 of file transformaction.cpp.

virtual VART::TransformAction::~TransformAction ( )
inlinevirtual

Definition at line 15 of file transformaction.h.

Member Function Documentation

virtual void VART::TransformAction::Move ( )
protectedpure virtual

Make the action update its targets.

Move is to be called from MoveAllActive.

Implements VART::BaseAction.

Implemented in VART::TranslationAction, VART::RotationAction, VART::ScaleAction, and VART::ShearAction.

void VART::TransformAction::SetTarget ( Transform target)
inline

Sets the Transform on which to act.

Definition at line 18 of file transformaction.h.

References targetPtr.

Member Data Documentation

Transform* VART::TransformAction::targetPtr
protected

Definition at line 21 of file transformaction.h.

Referenced by SetTarget().


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