#include <HistogramChart.h>
Definition at line 53 of file HistogramChart.h.
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.
te::qt::widgets::HistogramChart::~HistogramChart |
( |
| ) |
|
void te::qt::widgets::HistogramChart::attach |
( |
QwtPlot * |
plot | ) |
|
It atttaches a QwtPlot to this Cahrt.
- Parameters
-
plot | The 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
It returns the chart's histogram.
- Returns
- The chart's histogram.
- Note
- The caller will not take ownership of the returned pointer.
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.
It returns the chart's scale draw.
- Returns
- The chart's scale draw.
- Note
- The caller will not take ownership of the returned pointer.
Highlights the objects identified by oids.
- Parameters
-
oids | The identifiers of plotitems to be highlighted. |
Highlights the intervals identified by point.
- Parameters
-
point | The point to be highlighted. |
Highlights the intervals contained by rectangle.
- Parameters
-
rect | The rectangle containing the intervals to be highlighted. |
virtual int te::qt::widgets::HistogramChart::rtti |
( |
| ) |
const |
|
virtual |
Returns the chart's type.
void te::qt::widgets::HistogramChart::setData |
( |
| ) |
|
It sets the chart's histogram.
- Parameters
-
newHistogram | The chart's new histogram. |
- Note
- It will take the ownership of the pointer "newHistogram".
It sets the chart's style.
- Parameters
-
newStyle | The chart's new style. |
- Note
- It will take the ownership of the pointer "newStyle".
void te::qt::widgets::HistogramChart::setScaleDraw |
( |
StringScaleDraw * |
newScaleDraw | ) |
|
It sets the chart's scale draw.
- Parameters
-
new_labels | The new chart's scale draw. |
- Note
- It will take the ownership of the pointer "newScaleDraw".
void te::qt::widgets::HistogramChart::setSelectionColor |
( |
QColor |
selColor | ) |
|
color used to hgihlight selected objects on this chart.
- Parameters
-
selColor | The color used to hgihlight selected objects on this chart. |
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.
Scale draw that defines how a label will be displayed on this chart.
Definition at line 167 of file HistogramChart.h.
The histogram's style as displayed by this widget.
Definition at line 168 of file HistogramChart.h.
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:
- /home/castejon/castejon_files/develop/terralib5/git_master/terralib5/src/terralib/qt/widgets/charts/HistogramChart.h