OpenWalnut  1.5.0dev
Public Member Functions | List of all members
Translator Class Reference

Provides a time-dependent translation. More...

+ Inheritance diagram for Translator:
+ Collaboration diagram for Translator:

Public Member Functions

 Translator (double time, double startTime, WVector3d direction, double speed)
 Translates the scene using the given direction. More...
 
- Public Member Functions inherited from Transformation
virtual double finish () const
 The time in seconds when this transformation is finished. More...
 
virtual double duration () const
 The time in seconds this transformation is running. More...
 

Additional Inherited Members

- Static Public Attributes inherited from Transformation
static WVector3d axeX = WVector3d( 1.0, 0.0, 0.0 )
 Vector representing the X axe. More...
 
static WVector3d axeY = WVector3d( 0.0, 1.0, 0.0 )
 Vector representing the Y axe. More...
 
static WVector3d axeZ = WVector3d( 0.0, 0.0, 1.0 )
 Vector representing the Z axe. More...
 
- Protected Attributes inherited from Transformation
double m_finishTime
 The time this is finished. More...
 
double m_duration
 Duration time. More...
 

Detailed Description

Provides a time-dependent translation.

Definition at line 303 of file WGEAnimationManipulator.cpp.

Constructor & Destructor Documentation

◆ Translator()

Translator::Translator ( double  time,
double  startTime,
WVector3d  direction,
double  speed 
)
inline

Translates the scene using the given direction.

The speed is given as units per second.

Parameters
timecurrent time
startTimethe time when to start the transformation
directionthe direction. Length is important here.
speedspeed in direction-vector per second

Definition at line 314 of file WGEAnimationManipulator.cpp.

References Transformation::m_duration, and Transformation::m_finishTime.


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