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

... More...

#include <rotationaction.h>

Inheritance diagram for VART::RotationAction:
VART::TransformAction VART::BaseAction

Public Member Functions

 RotationAction ()
 
virtual ~RotationAction ()
 
void SetXRotation (double radians)
 
void SetYRotation (double radians)
 
void SetZRotation (double radians)
 
virtual void Move ()
 Make the action update its targets. More...
 
- Public Member Functions inherited from VART::TransformAction
 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 Attributes

double goal
 A scalar that describes the final angle of the rotation. More...
 
Point4D refPoint
 The point portion of the axis of rotation. More...
 
Point4D refVector
 The vector portion of the axis of rotation. More...
 
- Protected Attributes inherited from VART::TransformAction
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...
 
- Protected Member Functions inherited from VART::BaseAction
virtual void ComputePositionIndex (bool *cycled)
 Computes current position index. 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

...

FixMe: Put Detailed description here

Definition at line 16 of file rotationaction.h.

Constructor & Destructor Documentation

VART::RotationAction::RotationAction ( )

Definition at line 11 of file rotationaction.cpp.

virtual VART::RotationAction::~RotationAction ( )
inlinevirtual

Definition at line 22 of file rotationaction.h.

Member Function Documentation

void VART::RotationAction::Move ( )
virtual

Make the action update its targets.

Move is to be called from MoveAllActive.

Implements VART::TransformAction.

Definition at line 37 of file rotationaction.cpp.

void VART::RotationAction::SetXRotation ( double  radians)

Definition at line 15 of file rotationaction.cpp.

void VART::RotationAction::SetYRotation ( double  radians)

Definition at line 22 of file rotationaction.cpp.

void VART::RotationAction::SetZRotation ( double  radians)

Definition at line 29 of file rotationaction.cpp.

Member Data Documentation

double VART::RotationAction::goal
protected

A scalar that describes the final angle of the rotation.

Definition at line 33 of file rotationaction.h.

Point4D VART::RotationAction::refPoint
protected

The point portion of the axis of rotation.

Definition at line 35 of file rotationaction.h.

Point4D VART::RotationAction::refVector
protected

The vector portion of the axis of rotation.

Definition at line 37 of file rotationaction.h.


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