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

scaling transformation More...

#include <Operation.hxx>

Inheritance diagram for SScale:
[legend]
Collaboration diagram for SScale:
[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...
 
 SScale (const glm::vec3 &Scale, const glm::vec3 &Origin, 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

glm::vec3 scale
 
glm::vec3 origin
 

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

scaling transformation

Definition at line 127 of file Operation.hxx.

Constructor & Destructor Documentation

◆ SScale()

SScale::SScale ( const glm::vec3 &  Scale,
const glm::vec3 &  Origin,
bool  bInter,
double  T0,
double  T1 
)

Constructor.

Parameters
Scaleamount to scale by
Originposition that rotation axis runs through
bIntersee Operation
T0transformation starting time
T1transformation ending time

Definition at line 47 of file Operation.cxx.

References scale, and Scale.

Member Function Documentation

◆ interpolate()

void SScale::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 149 of file Operation.cxx.

References intervalInter(), Operation::mbInterpolate, Operation::mnT0, Operation::mnT1, origin, scale, and t.

Member Data Documentation

◆ origin

glm::vec3 SScale::origin
private

Definition at line 153 of file Operation.hxx.

Referenced by interpolate().

◆ scale

glm::vec3 SScale::scale
private

Definition at line 152 of file Operation.hxx.

Referenced by interpolate().


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