49 lines
812 B
C
49 lines
812 B
C
|
#ifndef AMPL
|
||
|
#define AMPL
|
||
|
|
||
|
#include <QObject>
|
||
|
|
||
|
#include <numeric>
|
||
|
|
||
|
#include "gtl_math_analog_value.h"
|
||
|
|
||
|
#include "math_global.h"
|
||
|
|
||
|
#include <set>
|
||
|
|
||
|
namespace gtl
|
||
|
{
|
||
|
namespace math
|
||
|
{
|
||
|
class MATH_EXPORT ampl : public analog_value
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
|
||
|
public:
|
||
|
ampl(gtl::analog_data *data);
|
||
|
|
||
|
private:
|
||
|
qreal _sum;
|
||
|
std::set<int> _ampl_indexes;
|
||
|
qreal _dc;
|
||
|
|
||
|
protected:
|
||
|
virtual void before_copying_data(std::vector<qreal>::iterator begin, std::vector<qreal>::iterator end);
|
||
|
virtual void after_copying_data(std::vector<qreal>::iterator begin, std::vector<qreal>::iterator end);
|
||
|
|
||
|
|
||
|
|
||
|
signals:
|
||
|
|
||
|
|
||
|
|
||
|
protected slots:
|
||
|
virtual void data_changed();
|
||
|
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
|
||
|
#endif // AMPL
|