te::qt::widgets::ScatterChart Class Reference

A class to represent a scatter chart. More...

#include <ScatterChart.h>

Inheritance diagram for te::qt::widgets::ScatterChart:
QwtPlotCurve

Public Member Functions

te::qt::widgets::ScattergetScatter ()
 It returns the chart's scatter. More...
 
ScatterStylegetScatterStyle ()
 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::ObjectIdSethighlight (QPointF point)
 Highlights the intervals identified by point. More...
 
te::da::ObjectIdSethighlight (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 setData ()
 
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 Attributes

Scatterm_scatter
 The scatter that will be shown on this chart. More...
 
ScatterStylem_scatterStyle
 The symbol that defines the look of a scatter's point. More...
 
QColor m_selColor
 The color used to highlight selected obecjts. More...
 
QwtPlotCurvem_selection
 The PlotItems to be highlighted when a selection occurs;. More...
 

Detailed Description

A class to represent a scatter chart.

Definition at line 55 of file ScatterChart.h.

Constructor & Destructor Documentation

te::qt::widgets::ScatterChart::ScatterChart ( Scatter data)

Constructor.

It constructs a scatter chart with a default mark and size.

Note
It will take the ownership of the pointers.
it will construct a chart with a default style.

Definition at line 41 of file ScatterChart.cpp.

References te::qt::widgets::ScatterStyle::getSymbol(), m_scatterStyle, m_selColor, m_selection, and setData().

te::qt::widgets::ScatterChart::ScatterChart ( Scatter data,
ScatterStyle style,
size_t  size 
)

Constructor.

Note
It will take the ownership of the pointer "style".
It will take the ownership of the pointer "data".

Definition at line 76 of file ScatterChart.cpp.

References m_selection, and setData().

te::qt::widgets::ScatterChart::~ScatterChart ( )

Destructor.

Definition at line 116 of file ScatterChart.cpp.

References m_scatter, m_scatterStyle, and m_selection.

Member Function Documentation

te::qt::widgets::Scatter * te::qt::widgets::ScatterChart::getScatter ( )

It returns the chart's scatter.

Returns
The chart's scatter.

Definition at line 128 of file ScatterChart.cpp.

References m_scatter.

te::qt::widgets::ScatterStyle * te::qt::widgets::ScatterChart::getScatterStyle ( )

Returns a clone of the pointer to the scatter's style.

Returns
A ScatterStyle type pointer to the scatter's style.
Note
The caller will take ownership of the returned pointer.

Definition at line 139 of file ScatterChart.cpp.

References te::qt::widgets::ScatterStyle::clone(), and m_scatterStyle.

Referenced by te::qt::widgets::ScatterFrame::setChart().

void te::qt::widgets::ScatterChart::highlight ( const te::da::ObjectIdSet oids)

Highlights the objects identified by oids.

Parameters
oidsThe identifiers of plotitems to be highlighted.

Definition at line 160 of file ScatterChart.cpp.

References te::da::ObjectIdSet::begin(), te::da::ObjectIdSet::end(), te::qt::widgets::Scatter::find(), m_scatter, and m_selection.

Referenced by highlight(), and te::qt::widgets::ChartDisplay::highlightOIds().

te::da::ObjectIdSet * te::qt::widgets::ScatterChart::highlight ( QPointF  point)

Highlights the intervals identified by point.

Parameters
pointThe point to be highlighted.

Definition at line 181 of file ScatterChart.cpp.

References te::qt::widgets::Scatter::find(), and m_scatter.

te::da::ObjectIdSet * te::qt::widgets::ScatterChart::highlight ( QRectF  rect)

Highlights the intervals contained by rectangle.

Parameters
rectThe rectangle containing the intervals to be highlighted.

Definition at line 198 of file ScatterChart.cpp.

References te::qt::widgets::Scatter::find(), highlight(), and m_scatter.

int te::qt::widgets::ScatterChart::rtti ( ) const
virtual

Returns the chart's type.

Definition at line 123 of file ScatterChart.cpp.

References te::qt::widgets::SCATTER_CHART.

void te::qt::widgets::ScatterChart::setScatter ( te::qt::widgets::Scatter newScatter)

It sets the chart's scatter.

Parameters
newHistogramThe chart's new scatter.
Note
It will take the ownership of the pointer "newScatter".

Definition at line 133 of file ScatterChart.cpp.

References m_scatter.

void te::qt::widgets::ScatterChart::setScatterStyle ( ScatterStyle newStyle)

It sets the chart's style.

Parameters
newStyleThe chart's new style.
Note
It will take the ownership of the pointer "newStyle".

Definition at line 144 of file ScatterChart.cpp.

References te::qt::widgets::ScatterStyle::getSymbol(), m_scatterStyle, m_selColor, and m_selection.

Referenced by te::qt::widgets::ScatterFrame::getChart().

void te::qt::widgets::ScatterChart::setSelectionColor ( QColor  selColor)

color used to hgihlight selected objects on this chart.

Parameters
selColorThe color used to hgihlight selected objects on this chart.

Definition at line 215 of file ScatterChart.cpp.

References m_selColor.

Referenced by te::qt::widgets::ChartDisplay::setSelectionColor().

Member Data Documentation

Scatter* te::qt::widgets::ScatterChart::m_scatter
private

The scatter that will be shown on this chart.

Definition at line 146 of file ScatterChart.h.

Referenced by getScatter(), highlight(), setData(), setScatter(), and ~ScatterChart().

ScatterStyle* te::qt::widgets::ScatterChart::m_scatterStyle
private

The symbol that defines the look of a scatter's point.

Definition at line 147 of file ScatterChart.h.

Referenced by getScatterStyle(), ScatterChart(), setScatterStyle(), and ~ScatterChart().

QColor te::qt::widgets::ScatterChart::m_selColor
private

The color used to highlight selected obecjts.

Definition at line 148 of file ScatterChart.h.

Referenced by ScatterChart(), setScatterStyle(), and setSelectionColor().

QwtPlotCurve* te::qt::widgets::ScatterChart::m_selection
private

The PlotItems to be highlighted when a selection occurs;.

Definition at line 149 of file ScatterChart.h.

Referenced by highlight(), ScatterChart(), setScatterStyle(), and ~ScatterChart().


The documentation for this class was generated from the following files: