A class to represent a chart display. More...
#include <ChartDisplay.h>
Signals | |
| void | leftPointSelected (const QPointF &pos) |
| Emmit when a clicked with left button was made. More... | |
| void | rigthPointSelected (const QPointF &pos) |
| Emmit when a clicked with rigth button was made. More... | |
| void | selected (te::da::ObjectIdSet *, const bool &) |
| Emmit when objects were selected. More... | |
Public Member Functions | |
| void | adjustDisplay () |
| Updates the general display settings according to the ChartStyle. The adjusted properties are: Title; Axis titles (x and Y); Weather to display the grid or not; Background color;. More... | |
| ChartDisplay (QWidget *parent=NULL, QString title="", ChartStyle *style=0) | |
| Constructor. More... | |
| void | enableLeftPicker (bool enabled) |
| Enables or disables the tool used to execute the selection functions. More... | |
| void | enableMagnifier (bool enabled) |
| Enables or disables the tool used to execute zoom functions. More... | |
| void | enableMultiSelection (bool enabled) |
| Enables or disables the tool used to execute the multi selection functions. More... | |
| void | enablePan (bool enabled) |
| Enables or disables the tool used to execute pan functions. More... | |
| void | enablePickers (bool enabled) |
| Enables or disables the tools used to execute selection functions. More... | |
| void | enablePointPickers (bool enabled) |
| Enables or disables the pickers used tbroadcast point selection signals. More... | |
| void | enableTools (bool enabled) |
| Enables or disables all the tools used to execute certain mouse actions. Such as selection, pan and zoomn;. More... | |
| te::qt::widgets::ChartStyle * | getStyle () |
| Returns a pointer to the display's style. More... | |
| void | highlightOIds (const te::da::ObjectIdSet *oids, te::da::DataSetType *dataType) |
| Highlights the objects identified by oids. More... | |
| void | setSelectionColor (QColor selColor) |
| color used to hgihlight selected objects on this display. More... | |
| void | setStyle (te::qt::widgets::ChartStyle *newStyle) |
| It sets the display's style. More... | |
| ~ChartDisplay () | |
| Destructor. More... | |
Protected Slots | |
| void | onRectPicked (const QRectF &rect) |
| Called when the user selects an area of the canvas. Will highlight the data, if possible, depending on the type of chart being displayed (f.e. histogram, scatter, etc). More... | |
Private Attributes | |
| ChartStyle * | m_chartStyle |
| The display's style. More... | |
| QwtPlotPicker * | m_ctrlPicker |
| The display's control button picker. More... | |
| QwtPlotGrid * | m_grid |
| The display's grid. More... | |
| QwtPlotPicker * | m_leftPicker |
| The display's left button picker. More... | |
| QwtPlotPicker * | m_leftPointPicker |
| The display's left button picker. More... | |
| QwtPlotMagnifier * | m_magnifier |
| The display's magnifinifier. More... | |
| QwtPlotPanner * | m_panner |
| The display's panner. More... | |
| QwtPlotPicker * | m_rigthPointPicker |
| The display's rigth button picker. More... | |
| QwtPlotPicker * | m_shiftPicker |
| The display's shift button picker. More... | |
A class to represent a chart display.
Definition at line 65 of file ChartDisplay.h.
| te::qt::widgets::ChartDisplay::ChartDisplay | ( | QWidget * | parent = NULL, |
| QString | title = "", |
||
| ChartStyle * | style = 0 |
||
| ) |
Constructor.
It constructs a ChartDisplay with the given title and style.
| parent | this widget's parent |
| title | this widget's title. |
Definition at line 58 of file ChartDisplay.cpp.
References te::map::DotLine, leftPointSelected(), m_chartStyle, m_ctrlPicker, m_grid, m_leftPicker, m_leftPointPicker, m_magnifier, m_panner, m_rigthPointPicker, m_shiftPicker, onRectPicked(), rigthPointSelected(), selected(), and te::map::SolidLine.
| te::qt::widgets::ChartDisplay::~ChartDisplay | ( | ) |
Destructor.
Definition at line 114 of file ChartDisplay.cpp.
References m_chartStyle, m_ctrlPicker, m_grid, m_leftPicker, m_magnifier, m_panner, and m_shiftPicker.
| void te::qt::widgets::ChartDisplay::adjustDisplay | ( | ) |
Updates the general display settings according to the ChartStyle. The adjusted properties are: Title; Axis titles (x and Y); Weather to display the grid or not; Background color;.
Definition at line 180 of file ChartDisplay.cpp.
References te::qt::widgets::ChartStyle::getAxisFont(), te::qt::widgets::ChartStyle::getAxisX(), te::qt::widgets::ChartStyle::getAxisY(), te::qt::widgets::ChartStyle::getColor(), te::qt::widgets::ChartStyle::getGridChecked(), te::qt::widgets::ChartStyle::getTitle(), te::qt::widgets::ChartStyle::getTitleFont(), m_chartStyle, and m_grid.
Referenced by te::qt::widgets::createHistogramDisplay(), te::qt::widgets::createNormalDistribution(), te::qt::widgets::createScatterDisplay(), generateHistogram(), generateScatter(), te::qt::widgets::MixtureModelWizardPage::MixtureModelWizardPage(), te::qt::widgets::HistogramDialog::onOkPushButtonClicked(), te::qt::widgets::ScatterDialog::onOkPushButtonClicked(), te::qt::widgets::TimeSeriesDialog::onOkPushButtonClicked(), te::qt::widgets::MixtureModelWizardPage::PlotSpectralSignature(), te::qt::plugins::wtss::WtssDialog::plotTimeSeries(), te::mnt::ProfileResultDialog::ProfileResultDialog(), te::qt::widgets::RasterHistogramWidget::RasterHistogramWidget(), te::qt::widgets::RasterSlicingWizardPage::RasterSlicingWizardPage(), te::qt::widgets::RasterSymbolizerWidget::RasterSymbolizerWidget(), and setStyle().
| void te::qt::widgets::ChartDisplay::enableLeftPicker | ( | bool | enabled | ) |
Enables or disables the tool used to execute the selection functions.
Definition at line 220 of file ChartDisplay.cpp.
References m_leftPicker.
Referenced by enablePickers().
| void te::qt::widgets::ChartDisplay::enableMagnifier | ( | bool | enabled | ) |
Enables or disables the tool used to execute zoom functions.
Definition at line 231 of file ChartDisplay.cpp.
References m_magnifier.
Referenced by enableTools(), and te::qt::widgets::RasterHistogramWidget::setEnableNavigationTools().
| void te::qt::widgets::ChartDisplay::enableMultiSelection | ( | bool | enabled | ) |
Enables or disables the tool used to execute the multi selection functions.
Definition at line 225 of file ChartDisplay.cpp.
References m_ctrlPicker, and m_shiftPicker.
Referenced by enablePickers(), and te::qt::widgets::RasterHistogramWidget::setEnableNavigationTools().
| void te::qt::widgets::ChartDisplay::enablePan | ( | bool | enabled | ) |
Enables or disables the tool used to execute pan functions.
Definition at line 236 of file ChartDisplay.cpp.
References m_panner.
Referenced by enableTools(), and te::qt::widgets::RasterHistogramWidget::setEnableNavigationTools().
| void te::qt::widgets::ChartDisplay::enablePickers | ( | bool | enabled | ) |
Enables or disables the tools used to execute selection functions.
Definition at line 214 of file ChartDisplay.cpp.
References enableLeftPicker(), and enableMultiSelection().
Referenced by enableTools().
| void te::qt::widgets::ChartDisplay::enablePointPickers | ( | bool | enabled | ) |
Enables or disables the pickers used tbroadcast point selection signals.
Definition at line 241 of file ChartDisplay.cpp.
References m_leftPointPicker, and m_rigthPointPicker.
| void te::qt::widgets::ChartDisplay::enableTools | ( | bool | enabled | ) |
Enables or disables all the tools used to execute certain mouse actions. Such as selection, pan and zoomn;.
Definition at line 207 of file ChartDisplay.cpp.
References enableMagnifier(), enablePan(), and enablePickers().
Referenced by te::qt::widgets::RasterHistogramWidget::RasterHistogramWidget(), and te::qt::widgets::RasterHistogramWidget::setEnableTools().
| te::qt::widgets::ChartStyle * te::qt::widgets::ChartDisplay::getStyle | ( | ) |
Returns a pointer to the display's style.
Definition at line 125 of file ChartDisplay.cpp.
References m_chartStyle.
Referenced by te::qt::widgets::ChartDisplayWidget::onExportToolButtonnClicked(), te::qt::widgets::ChartStyleFrame::setDisplay(), and te::qt::widgets::ChartDisplayWidget::setDisplay().
| void te::qt::widgets::ChartDisplay::highlightOIds | ( | const te::da::ObjectIdSet * | oids, |
| te::da::DataSetType * | dataType | ||
| ) |
Highlights the objects identified by oids.
| oids | The identifiers of plotitems to be highlighted. |
Definition at line 136 of file ChartDisplay.cpp.
References te::qt::widgets::ScatterChart::highlight(), te::qt::widgets::HistogramChart::highlight(), te::qt::widgets::HISTOGRAM_CHART, and te::qt::widgets::SCATTER_CHART.
Referenced by te::qt::widgets::ChartDisplayWidget::highlightOIds().
|
signal |
Emmit when a clicked with left button was made.
Referenced by ChartDisplay().
|
protectedslot |
Called when the user selects an area of the canvas. Will highlight the data, if possible, depending on the type of chart being displayed (f.e. histogram, scatter, etc).
Definition at line 247 of file ChartDisplay.cpp.
References te::qt::widgets::HISTOGRAM_CHART, m_ctrlPicker, m_shiftPicker, te::qt::widgets::SCATTER_CHART, and selected().
Referenced by ChartDisplay().
|
signal |
Emmit when a clicked with rigth button was made.
Referenced by ChartDisplay().
|
signal |
Emmit when objects were selected.
Referenced by ChartDisplay(), and onRectPicked().
| void te::qt::widgets::ChartDisplay::setSelectionColor | ( | QColor | selColor | ) |
color used to hgihlight selected objects on this display.
| selColor | The color used to hgihlight selected objects on this display. |
Definition at line 160 of file ChartDisplay.cpp.
References te::qt::widgets::HISTOGRAM_CHART, te::qt::widgets::SCATTER_CHART, te::qt::widgets::ScatterChart::setSelectionColor(), and te::qt::widgets::HistogramChart::setSelectionColor().
Referenced by te::qt::widgets::ChartDisplayWidget::setSelectionColor().
| void te::qt::widgets::ChartDisplay::setStyle | ( | te::qt::widgets::ChartStyle * | newStyle | ) |
It sets the display's style.
| newStyle | The new style. |
Definition at line 130 of file ChartDisplay.cpp.
References adjustDisplay(), and m_chartStyle.
Referenced by te::qt::widgets::ChartStyleFrame::getDisplay().
|
private |
The display's style.
Definition at line 193 of file ChartDisplay.h.
Referenced by adjustDisplay(), ChartDisplay(), getStyle(), setStyle(), and ~ChartDisplay().
|
private |
The display's control button picker.
Definition at line 200 of file ChartDisplay.h.
Referenced by ChartDisplay(), enableMultiSelection(), onRectPicked(), and ~ChartDisplay().
|
private |
The display's grid.
Definition at line 194 of file ChartDisplay.h.
Referenced by adjustDisplay(), ChartDisplay(), and ~ChartDisplay().
|
private |
The display's left button picker.
Definition at line 196 of file ChartDisplay.h.
Referenced by ChartDisplay(), enableLeftPicker(), and ~ChartDisplay().
|
private |
The display's left button picker.
Definition at line 197 of file ChartDisplay.h.
Referenced by ChartDisplay(), and enablePointPickers().
|
private |
The display's magnifinifier.
Definition at line 199 of file ChartDisplay.h.
Referenced by ChartDisplay(), enableMagnifier(), and ~ChartDisplay().
|
private |
The display's panner.
Definition at line 195 of file ChartDisplay.h.
Referenced by ChartDisplay(), enablePan(), and ~ChartDisplay().
|
private |
The display's rigth button picker.
Definition at line 198 of file ChartDisplay.h.
Referenced by ChartDisplay(), and enablePointPickers().
|
private |
The display's shift button picker.
Definition at line 201 of file ChartDisplay.h.
Referenced by ChartDisplay(), enableMultiSelection(), onRectPicked(), and ~ChartDisplay().