#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, te::da::DataSetType *dataType) |
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 | 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 | |
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 51 of file HistogramChart.cpp.
References te::qt::widgets::Config(), te::qt::widgets::HistogramStyle::getFill(), te::qt::widgets::HistogramStyle::getStroke(), m_histogramStyle, m_selection, and setData().
te::qt::widgets::HistogramChart::~HistogramChart | ( | ) |
Destructor.
Definition at line 193 of file HistogramChart.cpp.
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 217 of file HistogramChart.cpp.
References te::dt::DATETIME_TYPE, and te::dt::STRING_TYPE.
Referenced by te::qt::widgets::createHistogramDisplay(), te::qt::widgets::HistogramDialog::onOkPushButtonClicked(), and te::qt::widgets::RasterHistogramWidget::RasterHistogramWidget().
te::qt::widgets::Histogram * te::qt::widgets::HistogramChart::getHistogram | ( | ) |
It returns the chart's histogram.
Definition at line 229 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 240 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 205 of file HistogramChart.cpp.
void te::qt::widgets::HistogramChart::highlight | ( | const te::da::ObjectIdSet * | oids, |
te::da::DataSetType * | dataType | ||
) |
Highlights the objects identified by oids.
oids | The identifiers of plotitems to be highlighted. |
Definition at line 264 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::da::getBasePkey(), te::da::GetOIDDatasetProps(), te::dt::SimpleData< T, typeCode >::getValue(), te::dt::INT16_TYPE, te::dt::NUMERIC_TYPE, te::dt::STRING_TYPE, 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 390 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 419 of file HistogramChart.cpp.
References te::dt::DATETIME_TYPE, and te::dt::STRING_TYPE.
|
virtual |
Returns the chart's type.
Definition at line 200 of file HistogramChart.cpp.
References te::qt::widgets::HISTOGRAM_CHART.
void te::qt::widgets::HistogramChart::setData | ( | ) |
Definition at line 81 of file HistogramChart.cpp.
References te::dt::DATETIME_TYPE, te::dt::DOUBLE_TYPE, te::dt::FLOAT_TYPE, te::dt::INT16_TYPE, te::dt::NUMERIC_TYPE, te::se::Stroke::setOpacity(), te::dt::STRING_TYPE, and te::dt::UINT64_TYPE.
Referenced by HistogramChart().
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 234 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 245 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 210 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 464 of file HistogramChart.cpp.
Referenced by te::qt::widgets::ChartDisplay::setSelectionColor().
|
private |
The histogram that will be shown on this chart.
Definition at line 166 of file HistogramChart.h.
|
private |
Scale draw that defines how a label will be displayed on this chart.
Definition at line 167 of file HistogramChart.h.
|
private |
The histogram's style as displayed by this widget.
Definition at line 168 of file HistogramChart.h.
Referenced by HistogramChart().
|
private |
The PlotItems to be highlighted when a selection occurs;.
Definition at line 169 of file HistogramChart.h.
Referenced by HistogramChart().