Krita Source Code Documentation
Loading...
Searching...
No Matches
KisRollingSumAccumulatorWrapper.h
Go to the documentation of this file.
1#ifndef KISROLLINGSUMACCUMULATORWRAPPER_H
2#define KISROLLINGSUMACCUMULATORWRAPPER_H
3
4#include <QtGlobal>
5#include <QScopedPointer>
6#include "kritaglobal_export.h"
7
13class KRITAGLOBAL_EXPORT KisRollingSumAccumulatorWrapper
14{
15public:
19 KisRollingSumAccumulatorWrapper(int windowSize);
21
25 void operator()(qreal value);
26
30 qreal rollingSum() const;
31
32
36 int rollingCount() const;
37
41 void reset(int windowSize);
42
43private:
44 struct Private;
45 const QScopedPointer<Private> m_d;
46};
47
48#endif // KISROLLINGSUMACCUMULATORWRAPPER_H
float value(const T *src, size_t ch)
A simple wrapper class that hides boost includes from QtCreator preventing it from crashing when one ...