#include <HistogramChart.h>
Public Member Functions | |
void | attach (QwtPlot *plot) |
It atttaches a QwtPlot to this Cahrt. More... | |
te::qt::widgets::Histogram * | getHistogram () |
It returns the chart's histogram. More... | |
te::qt::widgets::HistogramStyle * | getHistogramStyle () |
Returns a clone of the pointer to the histogram's style. More... | |
StringScaleDraw * | getScaleDraw () |
It returns the chart's scale draw. 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... | |
HistogramChart (Histogram *data, te::qt::widgets::HistogramStyle *style=0) | |
Constructor. More... | |
virtual int | rtti () const |
Returns the chart's type. More... | |
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 | |
Histogram * | m_histogram |
The histogram that will be shown on this chart. More... | |
StringScaleDraw * | m_histogramScaleDraw |
Scale draw that defines how a label will be displayed on this chart. More... | |
te::qt::widgets::HistogramStyle * | m_histogramStyle |
The histogram's style as displayed by this widget. More... | |
QwtPlotHistogram * | m_selection |
The PlotItems to be highlighted when a selection occurs;. More... | |
Definition at line 53 of file HistogramChart.h.
te::qt::widgets::HistogramChart::HistogramChart | ( | Histogram * | data, |
te::qt::widgets::HistogramStyle * | style = 0 |
||
) |
Constructor.
It constructs a histogram chart .
Definition at line 49 of file HistogramChart.cpp.
References te::qt::widgets::Config(), te::dt::DATETIME_TYPE, te::dt::DOUBLE_TYPE, te::dt::FLOAT_TYPE, te::qt::widgets::HistogramStyle::getFill(), te::qt::widgets::Histogram::getInterval(), te::qt::widgets::Histogram::getMinValue(), te::qt::widgets::Histogram::getStringInterval(), te::qt::widgets::Histogram::getStringValues(), te::qt::widgets::HistogramStyle::getStroke(), te::qt::widgets::Histogram::getType(), te::qt::widgets::Histogram::getValues(), te::dt::INT16_TYPE, m_histogramScaleDraw, m_histogramStyle, m_selection, te::dt::NUMERIC_TYPE, te::se::Stroke::setOpacity(), te::qt::widgets::HistogramStyle::setStroke(), te::dt::STRING_TYPE, and te::dt::UINT64_TYPE.
te::qt::widgets::HistogramChart::~HistogramChart | ( | ) |
Destructor.
Definition at line 174 of file HistogramChart.cpp.
References te::dt::DATETIME_TYPE, and te::dt::STRING_TYPE.
void te::qt::widgets::HistogramChart::attach | ( | QwtPlot * | plot | ) |
It atttaches a QwtPlot to this Cahrt.
plot | The QwtPlot that will be attached to this chart. |
Definition at line 199 of file HistogramChart.cpp.
References te::dt::DATETIME_TYPE, and te::dt::STRING_TYPE.
Referenced by te::qt::widgets::createHistogramDisplay(), and te::qt::widgets::HistogramDialog::onOkPushButtonClicked().
te::qt::widgets::Histogram * te::qt::widgets::HistogramChart::getHistogram | ( | ) |
It returns the chart's histogram.
Definition at line 211 of file HistogramChart.cpp.
te::qt::widgets::HistogramStyle * te::qt::widgets::HistogramChart::getHistogramStyle | ( | ) |
Returns a clone of the pointer to the histogram's style.
Definition at line 222 of file HistogramChart.cpp.
References te::qt::widgets::HistogramStyle::clone().
te::qt::widgets::StringScaleDraw * te::qt::widgets::HistogramChart::getScaleDraw | ( | ) |
It returns the chart's scale draw.
Definition at line 188 of file HistogramChart.cpp.
void te::qt::widgets::HistogramChart::highlight | ( | const te::da::ObjectIdSet * | oids | ) |
Highlights the objects identified by oids.
oids | The identifiers of plotitems to be highlighted. |
Definition at line 246 of file HistogramChart.cpp.
References te::da::ObjectIdSet::begin(), te::dt::DATETIME_TYPE, te::dt::DOUBLE_TYPE, te::da::ObjectIdSet::end(), te::dt::FLOAT_TYPE, te::dt::INT16_TYPE, te::dt::NUMERIC_TYPE, te::dt::STRING_TYPE, te::dt::SimpleData< T, typeCode >::toString(), and te::dt::UINT64_TYPE.
Referenced by te::qt::widgets::ChartDisplay::highlightOIds().
te::da::ObjectIdSet * te::qt::widgets::HistogramChart::highlight | ( | QPointF | point | ) |
Highlights the intervals identified by point.
point | The point to be highlighted. |
Definition at line 339 of file HistogramChart.cpp.
References te::dt::DATETIME_TYPE, and te::dt::STRING_TYPE.
te::da::ObjectIdSet * te::qt::widgets::HistogramChart::highlight | ( | QRectF | rect | ) |
Highlights the intervals contained by rectangle.
rect | The rectangle containing the intervals to be highlighted. |
Definition at line 368 of file HistogramChart.cpp.
References te::dt::DATETIME_TYPE, and te::dt::STRING_TYPE.
|
virtual |
Returns the chart's type.
Definition at line 183 of file HistogramChart.cpp.
References te::qt::widgets::HISTOGRAM_CHART.
void te::qt::widgets::HistogramChart::setHistogram | ( | te::qt::widgets::Histogram * | newHistogram | ) |
It sets the chart's histogram.
newHistogram | The chart's new histogram. |
Definition at line 216 of file HistogramChart.cpp.
void te::qt::widgets::HistogramChart::setHistogramStyle | ( | te::qt::widgets::HistogramStyle * | newStyle | ) |
It sets the chart's style.
newStyle | The chart's new style. |
Definition at line 227 of file HistogramChart.cpp.
References te::qt::widgets::Config().
void te::qt::widgets::HistogramChart::setScaleDraw | ( | StringScaleDraw * | newScaleDraw | ) |
It sets the chart's scale draw.
new_labels | The new chart's scale draw. |
Definition at line 193 of file HistogramChart.cpp.
void te::qt::widgets::HistogramChart::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 413 of file HistogramChart.cpp.
Referenced by te::qt::widgets::ChartDisplay::setSelectionColor().
|
private |
The histogram that will be shown on this chart.
Definition at line 163 of file HistogramChart.h.
|
private |
Scale draw that defines how a label will be displayed on this chart.
Definition at line 164 of file HistogramChart.h.
Referenced by HistogramChart().
|
private |
The histogram's style as displayed by this widget.
Definition at line 165 of file HistogramChart.h.
Referenced by HistogramChart().
|
private |
The PlotItems to be highlighted when a selection occurs;.
Definition at line 166 of file HistogramChart.h.
Referenced by HistogramChart().