27 #include "../../../color/RGBAColor.h" 28 #include "../../../dataaccess/dataset/DataSetType.h" 29 #include "../../../dataaccess/dataset/ObjectIdSet.h" 30 #include "../../../se.h" 31 #include "../utils/ScopedCursor.h" 40 #include <qwt_plot_curve.h> 41 #include <qwt_plot_grid.h> 42 #include <qwt_plot_histogram.h> 43 #include <qwt_plot_magnifier.h> 44 #include <qwt_plot_panner.h> 45 #include <qwt_plot_picker.h> 46 #include <qwt_plot_zoomer.h> 47 #include <qwt_picker_machine.h> 49 #include <qwt_symbol.h> 52 #include <qapplication.h> 72 setAutoFillBackground(
true );
73 setAutoReplot(
true );
81 m_panner =
new QwtPlotPanner(this->canvas());
82 m_panner->setMouseButton(Qt::MiddleButton, Qt::ControlModifier);
85 m_leftPicker =
new QwtPlotPicker(QwtPlot::xBottom, QwtPlot::yLeft, QwtPlotPicker::RectRubberBand, QwtPicker::AlwaysOff, this->canvas());
86 m_leftPicker->setStateMachine(
new QwtPickerDragRectMachine );
88 m_leftPointPicker =
new QwtPlotPicker(QwtPlot::xBottom, QwtPlot::yLeft, QwtPlotPicker::CrossRubberBand, QwtPicker::AlwaysOff, this->canvas());
90 m_leftPointPicker->setMousePattern(QwtEventPattern::MouseSelect1, Qt::LeftButton);
92 m_rigthPointPicker =
new QwtPlotPicker(QwtPlot::xBottom, QwtPlot::yLeft, QwtPlotPicker::CrossRubberBand, QwtPicker::AlwaysOff, this->canvas());
96 m_ctrlPicker =
new QwtPlotPicker(QwtPlot::xBottom, QwtPlot::yLeft, QwtPlotPicker::RectRubberBand, QwtPicker::AlwaysOff, this->canvas());
97 m_ctrlPicker->setStateMachine(
new QwtPickerDragRectMachine );
98 m_ctrlPicker->setMousePattern(QwtEventPattern::MouseSelect1, Qt::LeftButton, Qt::ControlModifier);
100 m_shiftPicker =
new QwtPlotPicker(QwtPlot::xBottom, QwtPlot::yLeft, QwtPlotPicker::RectRubberBand, QwtPicker::AlwaysOff, this->canvas());
101 m_shiftPicker->setStateMachine(
new QwtPickerDragRectMachine );
102 m_shiftPicker->setMousePattern(QwtEventPattern::MouseSelect1, Qt::LeftButton, Qt::ShiftModifier);
111 canvas()->setCursor(Qt::CrossCursor);
141 const QwtPlotItemList& itmList = itemList();
143 for ( QwtPlotItemIterator it = itmList.begin();
144 it != itmList.end(); ++it )
162 const QwtPlotItemList& itmList = itemList();
164 for ( QwtPlotItemIterator it = itmList.begin();
165 it != itmList.end(); ++it )
194 setAxisTitle( QwtPlot::yLeft, axisY);
195 setAxisTitle( QwtPlot::xBottom, axisX);
250 const QwtPlotItemList& itmList = itemList();
251 for ( QwtPlotItemIterator it = itmList.begin();
252 it != itmList.end(); ++it )
257 emit
selected(static_cast<te::qt::widgets::ScatterChart*>(*it)->highlight( rect),
true);
259 emit
selected(static_cast<te::qt::widgets::ScatterChart*>(*it)->highlight( rect),
false);
266 emit
selected(static_cast<te::qt::widgets::HistogramChart*>(*it)->highlight( rect),
true);
268 emit
selected(static_cast<te::qt::widgets::HistogramChart*>(*it)->highlight( rect),
false);
A class that models the description of a dataset.
This class represents a set of unique ids created in the same context. i.e. from the same data set...
A class to represent a histogram chart.
A class to represent a scatter's chart.
A class used to define a chartDisplay's style.
A class to represent a chart display.