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

Provides a comfortable zoomer lens. More...

+ Inheritance diagram for Zoomer:
+ Collaboration diagram for Zoomer:

Public Member Functions

 Zoomer (double time, double startTime, double factor, double speed)
 Zooms the scene with the given factor. 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 comfortable zoomer lens.

Definition at line 260 of file WGEAnimationManipulator.cpp.

Constructor & Destructor Documentation

◆ Zoomer()

Zoomer::Zoomer ( double  time,
double  startTime,
double  factor,
double  speed 
)
inline

Zooms the scene with the given factor.

This is a scaling on all axes. A factor < 1.0 is zooming out. A factor > 1.0 is zooming in. Negative values are handled by their absolute value.

Parameters
timecurrent time
startTimewhen to start the transformation
factorzooming factor.
speedthe speed in zoom / second

Definition at line 272 of file WGEAnimationManipulator.cpp.

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


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