Krita Source Code Documentation
Loading...
Searching...
No Matches
KisSpeedSmoother::Private Struct Reference

Classes

struct  DistancePoint
 

Public Types

typedef boost::circular_buffer< DistancePointDistanceBuffer
 

Public Member Functions

 Private (int historySize)
 

Public Attributes

DistanceBuffer distances
 
QPointF lastPoint
 
qreal lastSpeed {0.0}
 
qreal lastTime {0.0}
 
int numSmoothingSamples {3}
 
KisFilteredRollingMean timeDiffsMean
 
QElapsedTimer timer
 
bool useTimestamps {false}
 

Detailed Description

Definition at line 25 of file kis_speed_smoother.cpp.

Member Typedef Documentation

◆ DistanceBuffer

Definition at line 51 of file kis_speed_smoother.cpp.

Constructor & Destructor Documentation

◆ Private()

KisSpeedSmoother::Private::Private ( int historySize)
inline

Definition at line 27 of file kis_speed_smoother.cpp.

28 : distances(historySize),
29 timeDiffsMean(200, 0.8)
30 {
31 timer.start();
32 }
KisFilteredRollingMean timeDiffsMean

References timer.

Member Data Documentation

◆ distances

DistanceBuffer KisSpeedSmoother::Private::distances

Definition at line 52 of file kis_speed_smoother.cpp.

◆ lastPoint

QPointF KisSpeedSmoother::Private::lastPoint

Definition at line 56 of file kis_speed_smoother.cpp.

◆ lastSpeed

qreal KisSpeedSmoother::Private::lastSpeed {0.0}

Definition at line 59 of file kis_speed_smoother.cpp.

59{0.0};

◆ lastTime

qreal KisSpeedSmoother::Private::lastTime {0.0}

Definition at line 58 of file kis_speed_smoother.cpp.

58{0.0};

◆ numSmoothingSamples

int KisSpeedSmoother::Private::numSmoothingSamples {3}

Definition at line 62 of file kis_speed_smoother.cpp.

62{3};

◆ timeDiffsMean

KisFilteredRollingMean KisSpeedSmoother::Private::timeDiffsMean

Definition at line 54 of file kis_speed_smoother.cpp.

◆ timer

QElapsedTimer KisSpeedSmoother::Private::timer

Definition at line 57 of file kis_speed_smoother.cpp.

◆ useTimestamps

bool KisSpeedSmoother::Private::useTimestamps {false}

Definition at line 61 of file kis_speed_smoother.cpp.

61{false};

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