QGIS API Documentation
2.4.0-Chugiak
|
#include <qwt5_histogram_item.h>
Classes | |
class | PrivateData |
Public Types | |
enum | HistogramAttribute { Auto = 0, Xfy = 1 } |
Public Member Functions | |
HistogramItem (const QString &title=QString::null) | |
HistogramItem (const QwtText &title) | |
virtual | ~HistogramItem () |
void | setData (const QwtIntervalData &data) |
const QwtIntervalData & | data () const |
void | setColor (const QColor &) |
QColor | color () const |
virtual QwtDoubleRect | boundingRect () const |
virtual int | rtti () const |
virtual void | draw (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRect &) const |
virtual void | updateLegend (QwtLegend *) const |
Update the widget that represents the curve on the legend. More... | |
void | setBaseline (double reference) |
double | baseline () const |
void | setHistogramAttribute (HistogramAttribute, bool on=true) |
bool | testHistogramAttribute (HistogramAttribute) const |
Protected Member Functions | |
virtual void | drawBar (QPainter *, Qt::Orientation o, const QRect &) const |
Private Member Functions | |
void | init () |
Private Attributes | |
PrivateData * | d_data |
Definition at line 21 of file qwt5_histogram_item.h.
Enumerator | |
---|---|
Auto | |
Xfy |
Definition at line 46 of file qwt5_histogram_item.h.
|
explicit |
Definition at line 89 of file qwt5_histogram_item.h.
References init().
|
explicit |
Definition at line 83 of file qwt5_histogram_item.h.
References init().
|
virtual |
Definition at line 95 of file qwt5_histogram_item.h.
References d_data.
double HistogramItem::baseline | ( | ) | const |
Definition at line 121 of file qwt5_histogram_item.h.
References d_data, and HistogramItem::PrivateData::reference.
Referenced by draw().
|
virtual |
Definition at line 151 of file qwt5_histogram_item.h.
References HistogramItem::PrivateData::attributes, d_data, HistogramItem::PrivateData::data, HistogramItem::PrivateData::reference, and Xfy.
QColor HistogramItem::color | ( | void | ) | const |
Definition at line 146 of file qwt5_histogram_item.h.
References HistogramItem::PrivateData::color, and d_data.
Referenced by drawBar(), setColor(), and updateLegend().
const QwtIntervalData & HistogramItem::data | ( | ) | const |
Definition at line 132 of file qwt5_histogram_item.h.
References d_data, and HistogramItem::PrivateData::data.
Referenced by setData().
|
virtual |
Definition at line 202 of file qwt5_histogram_item.h.
References HistogramItem::PrivateData::attributes, baseline(), HistogramItem::PrivateData::color, d_data, HistogramItem::PrivateData::data, drawBar(), and Xfy.
|
protectedvirtual |
|
private |
Definition at line 100 of file qwt5_histogram_item.h.
References HistogramItem::PrivateData::attributes, Auto, d_data, and HistogramItem::PrivateData::reference.
Referenced by HistogramItem().
|
virtual |
Definition at line 179 of file qwt5_histogram_item.h.
void HistogramItem::setBaseline | ( | double | reference | ) |
Definition at line 112 of file qwt5_histogram_item.h.
References d_data, and HistogramItem::PrivateData::reference.
void HistogramItem::setColor | ( | const QColor & | color | ) |
Definition at line 137 of file qwt5_histogram_item.h.
References color(), HistogramItem::PrivateData::color, and d_data.
Referenced by QgsRasterHistogramWidget::refreshHistogram().
void HistogramItem::setData | ( | const QwtIntervalData & | data | ) |
Definition at line 126 of file qwt5_histogram_item.h.
References d_data, data(), and HistogramItem::PrivateData::data.
Referenced by QgsRasterHistogramWidget::refreshHistogram().
void HistogramItem::setHistogramAttribute | ( | HistogramAttribute | attribute, |
bool | on = true |
||
) |
Definition at line 184 of file qwt5_histogram_item.h.
References HistogramItem::PrivateData::attributes, and d_data.
bool HistogramItem::testHistogramAttribute | ( | HistogramAttribute | attribute | ) | const |
Definition at line 197 of file qwt5_histogram_item.h.
References HistogramItem::PrivateData::attributes, and d_data.
|
virtual |
Update the widget that represents the curve on the legend.
Definition at line 352 of file qwt5_histogram_item.h.
References color().
|
private |
Definition at line 62 of file qwt5_histogram_item.h.
Referenced by baseline(), boundingRect(), color(), data(), draw(), init(), setBaseline(), setColor(), setData(), setHistogramAttribute(), testHistogramAttribute(), and ~HistogramItem().