LibreOffice Module sd (master) 1
Public Types | Public Member Functions | Private Attributes | List of all members
sd::slidesorter::controller::AnimationParametricFunction Class Reference

Turn a parametric function into one whose y-Values depend on its x-Values. More...

#include <SlsAnimationFunction.hxx>

Public Types

typedef ::std::function< basegfx::B2DPoint(double)> ParametricFunction
 

Public Member Functions

 AnimationParametricFunction (const ParametricFunction &rFunction)
 
double operator() (const double nX)
 

Private Attributes

::std::vector< double > maY
 y-Values of the parametric function given to the constructor evaluated (and interpolated) for evenly spaced x-Values. More...
 

Detailed Description

Turn a parametric function into one whose y-Values depend on its x-Values.

Note a lot of interpolation takes place. The resulting accuracy should be good enough for the purpose of acceleration function for animations.

Definition at line 60 of file SlsAnimationFunction.hxx.

Member Typedef Documentation

◆ ParametricFunction

Definition at line 63 of file SlsAnimationFunction.hxx.

Constructor & Destructor Documentation

◆ AnimationParametricFunction()

sd::slidesorter::controller::AnimationParametricFunction::AnimationParametricFunction ( const ParametricFunction rFunction)

Definition at line 73 of file SlsAnimationFunction.cxx.

References maY, and nIndex.

Member Function Documentation

◆ operator()()

double sd::slidesorter::controller::AnimationParametricFunction::operator() ( const double  nX)

Definition at line 111 of file SlsAnimationFunction.cxx.

References o3tl::make_unsigned(), and maY.

Member Data Documentation

◆ maY

::std::vector<double> sd::slidesorter::controller::AnimationParametricFunction::maY
private

y-Values of the parametric function given to the constructor evaluated (and interpolated) for evenly spaced x-Values.

Definition at line 72 of file SlsAnimationFunction.hxx.

Referenced by AnimationParametricFunction(), and operator()().


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