A class to represent a scatter chart. More...
#include <ScatterChart.h>
Public Member Functions | |
te::qt::widgets::Scatter * | getScatter () |
It returns the chart's scatter. More... | |
ScatterStyle * | getScatterStyle () |
Returns a clone of the pointer to the scatter's style. More... | |
void | highlight (const te::da::ObjectIdSet *oids) |
Highlights the objects identified by oids. More... | |
te::da::ObjectIdSet * | highlight (QPointF point) |
Highlights the intervals identified by point. More... | |
te::da::ObjectIdSet * | highlight (QRectF rect) |
Highlights the intervals contained by rectangle. More... | |
virtual int | rtti () const |
Returns the chart's type. More... | |
ScatterChart (Scatter *data) | |
Constructor. More... | |
ScatterChart (Scatter *data, ScatterStyle *style, size_t size) | |
Constructor. More... | |
void | setScatter (te::qt::widgets::Scatter *newScatter) |
It sets the chart's scatter. More... | |
void | setScatterStyle (ScatterStyle *newStyle) |
It sets the chart's style. More... | |
void | setSelectionColor (QColor selColor) |
color used to hgihlight selected objects on this chart. More... | |
~ScatterChart () | |
Destructor. More... | |
Private Member Functions | |
void | setData () |
Private Attributes | |
Scatter * | m_scatter |
The scatter that will be shown on this chart. More... | |
ScatterStyle * | m_scatterStyle |
The symbol that defines the look of a scatter's point. More... | |
QColor | m_selColor |
THe color used to highlight selected obecjts. More... | |
QwtPlotCurve * | m_selection |
The PlotItems to be highlighted when a selection occurs;. More... | |
A class to represent a scatter chart.
Definition at line 55 of file ScatterChart.h.
te::qt::widgets::ScatterChart::ScatterChart | ( | Scatter * | data | ) |
Constructor.
It constructs a scatter chart with a default mark and size.
Definition at line 46 of file ScatterChart.cpp.
References te::qt::widgets::ScatterStyle::getSymbol(), m_scatter, m_scatterStyle, m_selColor, m_selection, setData(), te::qt::widgets::Scatter::sizeX(), and te::qt::widgets::Scatter::sizeY().
te::qt::widgets::ScatterChart::ScatterChart | ( | Scatter * | data, |
ScatterStyle * | style, | ||
size_t | size | ||
) |
Constructor.
Definition at line 80 of file ScatterChart.cpp.
References m_selection, and setData().
te::qt::widgets::ScatterChart::~ScatterChart | ( | ) |
Destructor.
Definition at line 121 of file ScatterChart.cpp.
te::qt::widgets::Scatter * te::qt::widgets::ScatterChart::getScatter | ( | ) |
It returns the chart's scatter.
Definition at line 133 of file ScatterChart.cpp.
te::qt::widgets::ScatterStyle * te::qt::widgets::ScatterChart::getScatterStyle | ( | ) |
Returns a clone of the pointer to the scatter's style.
Definition at line 144 of file ScatterChart.cpp.
References te::qt::widgets::ScatterStyle::clone().
void te::qt::widgets::ScatterChart::highlight | ( | const te::da::ObjectIdSet * | oids | ) |
Highlights the objects identified by oids.
oids | The identifiers of plotitems to be highlighted. |
Definition at line 165 of file ScatterChart.cpp.
References te::da::ObjectIdSet::begin(), and te::da::ObjectIdSet::end().
Referenced by te::qt::widgets::ChartDisplay::highlightOIds().
te::da::ObjectIdSet * te::qt::widgets::ScatterChart::highlight | ( | QPointF | point | ) |
Highlights the intervals identified by point.
point | The point to be highlighted. |
Definition at line 184 of file ScatterChart.cpp.
te::da::ObjectIdSet * te::qt::widgets::ScatterChart::highlight | ( | QRectF | rect | ) |
Highlights the intervals contained by rectangle.
rect | The rectangle containing the intervals to be highlighted. |
Definition at line 211 of file ScatterChart.cpp.
|
virtual |
Returns the chart's type.
Definition at line 128 of file ScatterChart.cpp.
References te::qt::widgets::SCATTER_CHART.
Referenced by te::qt::widgets::ScatterDialog::onOkPushButtonClicked().
|
private |
Definition at line 99 of file ScatterChart.cpp.
Referenced by ScatterChart().
void te::qt::widgets::ScatterChart::setScatter | ( | te::qt::widgets::Scatter * | newScatter | ) |
It sets the chart's scatter.
newHistogram | The chart's new scatter. |
Definition at line 138 of file ScatterChart.cpp.
void te::qt::widgets::ScatterChart::setScatterStyle | ( | ScatterStyle * | newStyle | ) |
It sets the chart's style.
newStyle | The chart's new style. |
Definition at line 149 of file ScatterChart.cpp.
void te::qt::widgets::ScatterChart::setSelectionColor | ( | QColor | selColor | ) |
color used to hgihlight selected objects on this chart.
selColor | The color used to hgihlight selected objects on this chart. |
Definition at line 227 of file ScatterChart.cpp.
Referenced by te::qt::widgets::ChartDisplay::setSelectionColor().
|
private |
The scatter that will be shown on this chart.
Definition at line 148 of file ScatterChart.h.
Referenced by ScatterChart().
|
private |
The symbol that defines the look of a scatter's point.
Definition at line 149 of file ScatterChart.h.
Referenced by ScatterChart().
|
private |
THe color used to highlight selected obecjts.
Definition at line 150 of file ScatterChart.h.
Referenced by ScatterChart().
|
private |
The PlotItems to be highlighted when a selection occurs;.
Definition at line 151 of file ScatterChart.h.
Referenced by ScatterChart().