![]() |
OpenWalnut
1.5.0dev
|
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... | |
Provides a time-dependent translation.
Definition at line 303 of file WGEAnimationManipulator.cpp.
|
inline |
Translates the scene using the given direction.
The speed is given as units per second.
| time | current time |
| startTime | the time when to start the transformation |
| direction | the direction. Length is important here. |
| speed | speed in direction-vector per second |
Definition at line 314 of file WGEAnimationManipulator.cpp.
References Transformation::m_duration, and Transformation::m_finishTime.