te::qt::widgets::TimeSeriesChart Class Reference

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

#include <TimeSeriesChart.h>

Inheritance diagram for te::qt::widgets::TimeSeriesChart:

Public Member Functions

void attach (QwtPlot *plot)
 It atttaches a QwtPlot to this Cahrt. More...
 
StringScaleDrawgetScaleDraw ()
 It returns the chart's scale draw. More...
 
te::st::TimeSeriesgetTimeSeries ()
 It returns the chart's timeSeries. More...
 
TimeSeriesStylegetTimeSeriesStyle ()
 Returns a clone of the pointer to the timeSeries' style. More...
 
virtual int rtti () const
 Returns the chart's type. More...
 
void setData ()
 
void setScaleDraw (StringScaleDraw *newScaleDraw)
 It sets the chart's scale draw. More...
 
void setTimeSeries (te::st::TimeSeries *newTimeSeries)
 It sets the chart's timeSeries. More...
 
void setTimeSeriesStyle (TimeSeriesStyle *newStyle)
 It sets the chart's style. More...
 
 TimeSeriesChart (te::st::TimeSeries *data)
 Constructor. More...
 
 TimeSeriesChart (te::st::TimeSeries *data, TimeSeriesStyle *style, size_t size)
 Constructor. More...
 
 ~TimeSeriesChart ()
 Destructor. More...
 

Private Attributes

StringScaleDrawm_scaleDraw
 Scale draw that defines how a label will be displayed on this chart. More...
 
QColor m_selColor
 The color used to highlight selected obecjts. More...
 
te::st::TimeSeriesm_timeSeries
 The scatter that will be shown on this chart. More...
 
TimeSeriesStylem_timeSeriesStyle
 The symbol that defines the look of a scatter's point. More...
 

Detailed Description

A class to represent a timeSeries chart.

Definition at line 56 of file TimeSeriesChart.h.

Constructor & Destructor Documentation

te::qt::widgets::TimeSeriesChart::TimeSeriesChart ( te::st::TimeSeries data)

Constructor.

It constructs a TimeSeres chart with a default style.

Note
It will take the ownership of the pointers.
it will construct a chart with a default style.
te::qt::widgets::TimeSeriesChart::TimeSeriesChart ( te::st::TimeSeries data,
TimeSeriesStyle style,
size_t  size 
)

Constructor.

Note
It will take the ownership of the pointer "style".
It will take the ownership of the pointer "data".
te::qt::widgets::TimeSeriesChart::~TimeSeriesChart ( )

Destructor.

Member Function Documentation

void te::qt::widgets::TimeSeriesChart::attach ( QwtPlot *  plot)

It atttaches a QwtPlot to this Cahrt.

Parameters
plotThe QwtPlot that will be attached to this chart.
StringScaleDraw* te::qt::widgets::TimeSeriesChart::getScaleDraw ( )

It returns the chart's scale draw.

Returns
The chart's scale draw.
Note
The caller will not take ownership of the returned pointer.
te::st::TimeSeries* te::qt::widgets::TimeSeriesChart::getTimeSeries ( )

It returns the chart's timeSeries.

Returns
The chart's timeSeries.
TimeSeriesStyle* te::qt::widgets::TimeSeriesChart::getTimeSeriesStyle ( )

Returns a clone of the pointer to the timeSeries' style.

Returns
A ScatterStyle type pointer to the timeSeries' style.
Note
The caller will take ownership of the returned pointer.
virtual int te::qt::widgets::TimeSeriesChart::rtti ( ) const
virtual

Returns the chart's type.

void te::qt::widgets::TimeSeriesChart::setData ( )
void te::qt::widgets::TimeSeriesChart::setScaleDraw ( StringScaleDraw newScaleDraw)

It sets the chart's scale draw.

Parameters
new_labelsThe new chart's scale draw.
Note
It will take the ownership of the pointer "newScaleDraw".
void te::qt::widgets::TimeSeriesChart::setTimeSeries ( te::st::TimeSeries newTimeSeries)

It sets the chart's timeSeries.

Parameters
newHistogramThe chart's new scatter.
Note
It will take the ownership of the pointer "newScatter".
void te::qt::widgets::TimeSeriesChart::setTimeSeriesStyle ( TimeSeriesStyle newStyle)

It sets the chart's style.

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

Member Data Documentation

StringScaleDraw* te::qt::widgets::TimeSeriesChart::m_scaleDraw
private

Scale draw that defines how a label will be displayed on this chart.

Definition at line 144 of file TimeSeriesChart.h.

QColor te::qt::widgets::TimeSeriesChart::m_selColor
private

The color used to highlight selected obecjts.

Definition at line 146 of file TimeSeriesChart.h.

te::st::TimeSeries* te::qt::widgets::TimeSeriesChart::m_timeSeries
private

The scatter that will be shown on this chart.

Definition at line 143 of file TimeSeriesChart.h.

TimeSeriesStyle* te::qt::widgets::TimeSeriesChart::m_timeSeriesStyle
private

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

Definition at line 145 of file TimeSeriesChart.h.


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