36 #include "qwt/src/qwt_color_map.h"
37 #include "qwt/src/qwt_scale_widget.h"
127 : QwtLinearColorMap()
129 switch (colorMapType) {
143 setColorInterval(QColor(0, 0, 30), QColor(0.5 * 255, 0, 0));
146 addColorStop(0.1, QColor(0.00000 * 255, 0.00000 * 255, 0.50000 * 255));
147 addColorStop(0.2, QColor(0.00000 * 255, 0.00000 * 255, 0.94444 * 255));
148 addColorStop(0.3, QColor(0.00000 * 255, 0.38889 * 255, 1.00000 * 255));
149 addColorStop(0.4, QColor(0.00000 * 255, 0.83333 * 255, 1.00000 * 255));
150 addColorStop(0.5, QColor(0.27778 * 255, 1.00000 * 255, 0.72222 * 255));
151 addColorStop(0.6, QColor(0.72222 * 255, 1.00000 * 255, 0.27778 * 255));
152 addColorStop(0.7, QColor(1.00000 * 255, 0.83333 * 255, 0.00000 * 255));
153 addColorStop(0.8, QColor(1.00000 * 255, 0.38889 * 255, 0.00000 * 255));
154 addColorStop(0.9, QColor(0.94444 * 255, 0.00000 * 255, 0.00000 * 255));
160 setColorInterval(Qt::darkCyan, Qt::red);
163 addColorStop(0.1, Qt::cyan);
164 addColorStop(0.6, Qt::green);
165 addColorStop(0.95, Qt::yellow);
virtual bool append(UAVObject *obj)=0
virtual void setXMaximum(double val)
QVector< double > * xData
The ColorMap class Defines a program-wide colormap.
ColorMap(ColorMapType colorMapType=STANDARD)
virtual void removeStaleData()=0
void setXWindowSize(double val)
virtual void plotNewData(PlotData *, ScopeConfig *, ScopeGadgetWidget *)=0
void setMathFunction(QString val)
void setScalePower(int val)
QString getUavoFieldName()
void setYMaximum(double val)
QVector< double > * getYData()
ColorMapType
The ColorMapType enum Defines the different type of color maps.
QString getUavoSubFieldName()
void setMeanSamples(int val)
QwtScaleWidget * rightAxis
virtual bool readAndResetUpdatedFlag()=0
void setYMinimum(double val)
QVector< double > * yData
QVector< double > * getXData()
virtual void setUpdatedFlagToTrue()=0
void setXMinimum(double val)
QString getMathFunction()
The ScopeConfig class The parent class for scope configuration classes data sources.
virtual void clearPlots()=0
bool getHaveSubFieldFlag()
double valueAsDouble(UAVObject *obj, UAVObjectField *field, bool haveSubField, QString uavSubFieldName)
valueAsDouble Fetch the value from the UAVO and return it as a double
virtual void deletePlots(PlotData *)=0