Histogram plot.
More...
#include <ACG/QwtWidgets/QwtHistogramm.hh>
|
enum | HistogramAttribute { Auto = 0,
Xfy = 1
} |
|
|
| Histogram (const QString &title=QString::null) |
| Constructor.
|
|
| Histogram (const QwtText &title) |
| Constructor.
|
|
virtual | ~Histogram () |
| Destructor.
|
|
void | setData (QwtIntervalSeriesData *data) |
| set data to render More...
|
|
const QwtIntervalSeriesData * | data () const |
|
void | setColors (std::vector< QColor > &_colors) |
| Set colors. More...
|
|
virtual QRectF | boundingRect () const |
| Function hat will return the datas bounding rectangle (for rendering)
|
|
virtual int | rtti () const |
|
virtual void | draw (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &) const |
| The actual draw function, drawing the bars inside the plot widget.
|
|
void | setBaseline (double reference) |
|
double | baseline () const |
|
void | setHistogramAttribute (HistogramAttribute, bool on=true) |
|
bool | testHistogramAttribute (HistogramAttribute) const |
|
|
virtual void | drawBar (QPainter *, Qt::Orientation o, const QRect &) const |
| Draws a single bar.
|
|
|
QColor | color (uint i) const |
|
void | init () |
|
Histogram plot.
This plot can be used to render a plot. It provides the plot management and drawing functions for histograms. The data is supplied as QwtIntervalData via HistogramItem::setData(). Additionally you can set colors for each bar, which are provided via HistogramItem::setColors()
Definition at line 69 of file QwtHistogramm.hh.
void Histogram::setColors |
( |
std::vector< QColor > & |
_colors | ) |
|
Set colors.
- Parameters
-
_colors | A vector of colors. One for each interval in the same order. |
void Histogram::setData |
( |
QwtIntervalSeriesData * |
data | ) |
|
set data to render
- Parameters
-
data | data provided as QwtIntervalData |
The documentation for this class was generated from the following file: