28 #ifndef MIXERCURVEWIDGET_H_
29 #define MIXERCURVEWIDGET_H_
34 #include <QGraphicsView>
35 #include <QSvgRenderer>
36 #include <QGraphicsSvgItem>
52 void itemMoved(
double itemValue);
55 void initLinearCurve(
int numPoints,
double maxValue = 1,
double minValue = 0);
61 double setRange(
double min,
double max);
64 void activateCommand(
const QString &name);
65 bool isCommandActive(
const QString &name);
66 void showCommand(
const QString &name,
bool show);
67 void showCommands(
bool show);
68 MixerNode *getCmdNode(
const QString &name);
69 void setCommandText(
const QString &name,
const QString &text);
71 static const int NODE_NUMELEM = 5;
75 void curveMinChanged(
double value);
76 void curveMaxChanged(
double value);
82 QGraphicsSvgItem *
plot;
98 void initNodes(
int numPoints);
102 void setPositiveColor(QString color0 =
"#00ff00", QString color1 =
"#00ff00");
103 void setNegativeColor(QString color0 =
"#ff0000", QString color1 =
"#ff0000");
105 void resizeCommands();
void setMin(double value)
void initLinearCurve(int numPoints, double maxValue=1, double minValue=0)
void setMax(double value)
void showEvent(QShowEvent *event)
void initCurve(const QList< double > *points)
void setCurve(const QList< double > *points)
double setRange(double min, double max)
void resizeEvent(QResizeEvent *event)
QList< double > getCurve()
plot(TimeVA, VA(1,:), TimeVA, VA(2,:), TimeGPSPos, Vgps(1,:), TimeGPSPos, Vgps(2,:))