LibreOffice Module slideshow (master) 1
Public Member Functions | Private Attributes | List of all members
SEllipseTranslate Class Reference

translation transformation More...

#include <Operation.hxx>

Inheritance diagram for SEllipseTranslate:
[legend]
Collaboration diagram for SEllipseTranslate:
[legend]

Public Member Functions

virtual void interpolate (glm::mat4 &matrix, double t, double SlideWidthScale, double SlideHeightScale) const override
 this is the function that is called to give the Operation to OpenGL. More...
 
 SEllipseTranslate (double dWidth, double dHeight, double dStartPosition, double dEndPosition, bool bInter, double T0, double T1)
 Constructor. More...
 
- Public Member Functions inherited from Operation
virtual ~Operation ()
 
 Operation (const Operation &)=delete
 
Operationoperator= (const Operation &)=delete
 
virtual void interpolate (glm::mat4 &matrix, double t, double SlideWidthScale, double SlideHeightScale) const =0
 this is the function that is called to give the Operation to OpenGL. More...
 

Private Attributes

double width
 width and length of the ellipse More...
 
double height
 
double startPosition
 start and end position on the ellipse <0,1> More...
 
double endPosition
 

Additional Inherited Members

- Protected Member Functions inherited from Operation
 Operation (bool bInterpolate, double nT0, double nT1)
 
- Protected Attributes inherited from Operation
bool mbInterpolate
 Should this operation be interpolated . More...
 
double mnT0
 time to begin the transformation More...
 
double mnT1
 time to finish the transformation More...
 

Detailed Description

translation transformation

Definition at line 193 of file Operation.hxx.

Constructor & Destructor Documentation

◆ SEllipseTranslate()

SEllipseTranslate::SEllipseTranslate ( double  dWidth,
double  dHeight,
double  dStartPosition,
double  dEndPosition,
bool  bInter,
double  T0,
double  T1 
)

Constructor.

Parameters
Vectorvector to translate
bIntersee Operation
T0transformation starting time
T1transformation ending time

Definition at line 198 of file Operation.cxx.

References endPosition, height, startPosition, and width.

Member Function Documentation

◆ interpolate()

void SEllipseTranslate::interpolate ( glm::mat4 &  matrix,
double  t,
double  SlideWidthScale,
double  SlideHeightScale 
) const
overridevirtual

this is the function that is called to give the Operation to OpenGL.

Parameters
ttime from t = 0 to t = 1
SlideWidthScalewidth of slide divided by width of window
SlideHeightScaleheight of slide divided by height of window

Implements Operation.

Definition at line 208 of file Operation.cxx.

References endPosition, height, intervalInter(), Operation::mbInterpolate, Operation::mnT0, Operation::mnT1, startPosition, t, width, x, and y.

Member Data Documentation

◆ endPosition

double SEllipseTranslate::endPosition
private

Definition at line 222 of file Operation.hxx.

Referenced by interpolate(), and SEllipseTranslate().

◆ height

double SEllipseTranslate::height
private

Definition at line 217 of file Operation.hxx.

Referenced by interpolate(), and SEllipseTranslate().

◆ startPosition

double SEllipseTranslate::startPosition
private

start and end position on the ellipse <0,1>

Definition at line 221 of file Operation.hxx.

Referenced by interpolate(), and SEllipseTranslate().

◆ width

double SEllipseTranslate::width
private

width and length of the ellipse

Definition at line 217 of file Operation.hxx.

Referenced by interpolate(), and SEllipseTranslate().


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