41 qRegisterMetaType<BoundingRectangle>(
"BoundingRectangle");
59 disconnect(
config_, SIGNAL(changed(
const QString&)),
this,
79 connect(config, SIGNAL(titleChanged(
const QString&)),
this,
131 QPair<double, double> axisBounds(0.0, -1.0);
145 axisBounds.first =
data_->
getValue(index, axis)+axisScaleConfig->
146 getRelativeMinimum();
147 axisBounds.second =
data_->
getValue(index, axis)+axisScaleConfig->
148 getRelativeMaximum();
163 QPointF(xAxisBounds.second, yAxisBounds.second));
171 QwtPlotCurve::attach(plot);
175 QwtPlotCurve::detach();
183 (!xAxisConfig->
getField().isEmpty() ||
185 (!yAxisConfig->
getField().isEmpty() ||
229 setStyle(QwtPlotCurve::Sticks);
236 setStyle(QwtPlotCurve::Steps);
238 setCurveAttribute(QwtPlotCurve::Inverted, styleConfig->
243 setStyle(QwtPlotCurve::Dots);
246 setStyle(QwtPlotCurve::Lines);
248 setCurveAttribute(QwtPlotCurve::Fitted, styleConfig->
249 areLinesInterpolated());
252 QPen pen = QwtPlotCurve::pen();
259 setRenderHint(QwtPlotItem::RenderAntialiased, styleConfig->
260 isRenderAntialiased());
290 if (bounds != oldBounds)
size_t getCircularBufferCapacity() const
PlotCurve(QObject *parent=0)
double getSticksBaseline() const
MessageBroker * getBroker() const
virtual void clearPoints()=0
void configTitleChanged(const QString &title)
double getTimeFrameLength() const
double getAbsoluteMinimum() const
double getAbsoluteMaximum() const
CurveDataConfig * getDataConfig() const
void configDataConfigChanged()
CurveAxisConfig * getAxisConfig(Axis axis) const
Qt::PenStyle getPenStyle() const
CurveData * getData() const
void attach(QwtPlot *plot)
void setBroker(MessageBroker *broker)
virtual void appendPoint(const QPointF &point)=0
CurveConfig * getConfig() const
CurveDataSequencer * dataSequencer_
FieldType getFieldType() const
void setConfig(CurveConfig *config)
const QString & getField() const
void dataSequencerPointReceived(const QPointF &point)
QPair< double, double > getAxisBounds(CurveConfig::Axis axis) const
const QString & getTitle() const
void configAxisConfigChanged()
QPair< double, double > getPreferredAxisScale(CurveConfig::Axis axis) const
virtual size_t getNumPoints() const =0
void preferredScaleChanged(const BoundingRectangle &bounds)
BoundingRectangle getPreferredScale() const
Qt::Orientation getSticksOrientation() const
CurveStyleConfig * getStyleConfig() const
void setBroker(MessageBroker *broker)
void configColorConfigCurrentColorChanged(const QColor &color)
void configStyleConfigChanged()
CurveColorConfig * getColorConfig() const
void setConfig(CurveConfig *config)
double getValue(size_t index, CurveConfig::Axis axis) const
size_t getPenWidth() const
CurveDataSequencer * getDataSequencer() const