te::qt::widgets::HistogramChart Class Reference

#include <HistogramChart.h>

Inheritance diagram for te::qt::widgets::HistogramChart:

Public Member Functions

void attach (QwtPlot *plot)
 It atttaches a QwtPlot to this Cahrt. More...
 
te::qt::widgets::HistogramgetHistogram ()
 It returns the chart's histogram. More...
 
te::qt::widgets::HistogramStylegetHistogramStyle ()
 Returns a clone of the pointer to the histogram's style. More...
 
StringScaleDrawgetScaleDraw ()
 It returns the chart's scale draw. More...
 
void highlight (const te::da::ObjectIdSet *oids, te::da::DataSetType *dataType)
 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...
 
 HistogramChart (Histogram *data, te::qt::widgets::HistogramStyle *style=0)
 Constructor. More...
 
virtual int rtti () const
 Returns the chart's type. More...
 
void setData ()
 
void setHistogram (te::qt::widgets::Histogram *newHistogram)
 It sets the chart's histogram. More...
 
void setHistogramStyle (te::qt::widgets::HistogramStyle *newStyle)
 It sets the chart's style. More...
 
void setScaleDraw (StringScaleDraw *newScaleDraw)
 It sets the chart's scale draw. More...
 
void setSelectionColor (QColor selColor)
 color used to hgihlight selected objects on this chart. More...
 
 ~HistogramChart ()
 Destructor. More...
 

Private Attributes

Histogramm_histogram
 The histogram that will be shown on this chart. More...
 
StringScaleDrawm_histogramScaleDraw
 Scale draw that defines how a label will be displayed on this chart. More...
 
te::qt::widgets::HistogramStylem_histogramStyle
 The histogram's style as displayed by this widget. More...
 
QwtPlotHistogram * m_selection
 The PlotItems to be highlighted when a selection occurs;. More...
 

Detailed Description

Definition at line 53 of file HistogramChart.h.

Constructor & Destructor Documentation

◆ HistogramChart()

te::qt::widgets::HistogramChart::HistogramChart ( Histogram data,
te::qt::widgets::HistogramStyle style = 0 
)

Constructor.

It constructs a histogram chart .

Note
It will take the ownership of the pointer "data".
it will take the ownership of the pointer "style". If style is null, the chart will be constructed with a default style.

◆ ~HistogramChart()

te::qt::widgets::HistogramChart::~HistogramChart ( )

Destructor.

Member Function Documentation

◆ attach()

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

It atttaches a QwtPlot to this Cahrt.

Parameters
plotThe QwtPlot that will be attached to this chart.
Note
If the histogram's data contains string labels, this function will define how they are drawn

◆ getHistogram()

te::qt::widgets::Histogram* te::qt::widgets::HistogramChart::getHistogram ( )

It returns the chart's histogram.

Returns
The chart's histogram.
Note
The caller will not take ownership of the returned pointer.

◆ getHistogramStyle()

te::qt::widgets::HistogramStyle* te::qt::widgets::HistogramChart::getHistogramStyle ( )

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

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

◆ getScaleDraw()

StringScaleDraw* te::qt::widgets::HistogramChart::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.

◆ highlight() [1/3]

void te::qt::widgets::HistogramChart::highlight ( const te::da::ObjectIdSet oids,
te::da::DataSetType dataType 
)

Highlights the objects identified by oids.

Parameters
oidsThe identifiers of plotitems to be highlighted.

◆ highlight() [2/3]

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

Highlights the intervals identified by point.

Parameters
pointThe point to be highlighted.

◆ highlight() [3/3]

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

Highlights the intervals contained by rectangle.

Parameters
rectThe rectangle containing the intervals to be highlighted.

◆ rtti()

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

Returns the chart's type.

◆ setData()

void te::qt::widgets::HistogramChart::setData ( )

◆ setHistogram()

void te::qt::widgets::HistogramChart::setHistogram ( te::qt::widgets::Histogram newHistogram)

It sets the chart's histogram.

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

◆ setHistogramStyle()

void te::qt::widgets::HistogramChart::setHistogramStyle ( te::qt::widgets::HistogramStyle newStyle)

It sets the chart's style.

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

◆ setScaleDraw()

void te::qt::widgets::HistogramChart::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".

◆ setSelectionColor()

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

color used to hgihlight selected objects on this chart.

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

Member Data Documentation

◆ m_histogram

Histogram* te::qt::widgets::HistogramChart::m_histogram
private

The histogram that will be shown on this chart.

Definition at line 166 of file HistogramChart.h.

◆ m_histogramScaleDraw

StringScaleDraw* te::qt::widgets::HistogramChart::m_histogramScaleDraw
private

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

Definition at line 167 of file HistogramChart.h.

◆ m_histogramStyle

te::qt::widgets::HistogramStyle* te::qt::widgets::HistogramChart::m_histogramStyle
private

The histogram's style as displayed by this widget.

Definition at line 168 of file HistogramChart.h.

◆ m_selection

QwtPlotHistogram* te::qt::widgets::HistogramChart::m_selection
private

The PlotItems to be highlighted when a selection occurs;.

Definition at line 169 of file HistogramChart.h.


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