LibreOffice Module slideshow (master) 1
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Operation Class Referenceabstract

This class is to be derived to make any operation (transform) you may need in order to construct your transitions. More...

#include <Operation.hxx>

Inheritance diagram for Operation:
[legend]

Public Member Functions

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...
 

Protected Member Functions

 Operation (bool bInterpolate, double nT0, double nT1)
 

Protected Attributes

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

This class is to be derived to make any operation (transform) you may need in order to construct your transitions.

Definition at line 38 of file Operation.hxx.

Constructor & Destructor Documentation

◆ ~Operation()

virtual Operation::~Operation ( )
inlinevirtual

Definition at line 41 of file Operation.hxx.

◆ Operation() [1/2]

Operation::Operation ( const Operation )
delete

◆ Operation() [2/2]

Operation::Operation ( bool  bInterpolate,
double  nT0,
double  nT1 
)
inlineprotected

Definition at line 73 of file Operation.hxx.

Member Function Documentation

◆ interpolate()

virtual void Operation::interpolate ( glm::mat4 &  matrix,
double  t,
double  SlideWidthScale,
double  SlideHeightScale 
) const
pure virtual

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

Implemented in SRotate, SScale, STranslate, SEllipseTranslate, RotateAndScaleDepthByWidth, and RotateAndScaleDepthByHeight.

◆ operator=()

Operation & Operation::operator= ( const Operation )
delete

Member Data Documentation

◆ mbInterpolate

bool Operation::mbInterpolate
protected

Should this operation be interpolated .

If TRUE, the transform will smoothly move from making no difference from t = 0.0 to mnT0 to being completely transformed from t = mnT1 to 1. If FALSE, the transform will be ineffectual from t = 0 to mnT0, and completely transformed from t = mnT0 to 1.

Definition at line 48 of file Operation.hxx.

Referenced by SRotate::interpolate(), SScale::interpolate(), STranslate::interpolate(), SEllipseTranslate::interpolate(), RotateAndScaleDepthByWidth::interpolate(), and RotateAndScaleDepthByHeight::interpolate().

◆ mnT0

double Operation::mnT0
protected

◆ mnT1

double Operation::mnT1
protected

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