#include <Plot2d_PlotItems.h>

Public Types | |
| enum | HistogramAttribute { Auto = 0, Xfy = 1 } |
Public Member Functions | |
| Plot2d_HistogramQwtItem (const QString &=QString()) | |
| Plot2d_HistogramQwtItem (const QwtText &) | |
| virtual | ~Plot2d_HistogramQwtItem () |
| void | setData (const QwtIntervalData &) |
| 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 &, const QwtScaleMap &, const QRect &) const |
| void | setBaseline (double) |
| double | baseline () const |
| void | setHistogramAttribute (HistogramAttribute, bool=true) |
| bool | testHistogramAttribute (HistogramAttribute) const |
Protected Member Functions | |
| virtual void | drawBar (QPainter *, Qt::Orientation, const QRect &) const |
Private Member Functions | |
| void | init () |
Private Attributes | |
| int | myAttributes |
| QwtIntervalData | myData |
| QColor | myColor |
| double | myReference |
| Plot2d_HistogramQwtItem::Plot2d_HistogramQwtItem | ( | const QString & | theTitle = QString() | ) | [explicit] |
Constructor
References init().
| Plot2d_HistogramQwtItem::Plot2d_HistogramQwtItem | ( | const QwtText & | theTitle | ) | [explicit] |
Constructor
References init().
| Plot2d_HistogramQwtItem::~Plot2d_HistogramQwtItem | ( | ) | [virtual] |
Destructor
| void Plot2d_HistogramQwtItem::setData | ( | const QwtIntervalData & | theData | ) |
Sets data to object
References myData.
| const QwtIntervalData & Plot2d_HistogramQwtItem::data | ( | ) | const |
Returns data from object
References myData.
| void Plot2d_HistogramQwtItem::setColor | ( | const QColor & | theColor | ) |
Sets color to object
References myColor.
| QColor Plot2d_HistogramQwtItem::color | ( | ) | const |
Returns color from object
References myColor.
| QwtDoubleRect Plot2d_HistogramQwtItem::boundingRect | ( | ) | const [virtual] |
Returns bounding rect of object
References myAttributes, myData, myReference, and Xfy.
| int Plot2d_HistogramQwtItem::rtti | ( | ) | const [virtual] |
Returns type of plot object
| void Plot2d_HistogramQwtItem::draw | ( | QPainter * | thePainter, |
| const QwtScaleMap & | theXMap, | ||
| const QwtScaleMap & | theYMap, | ||
| const QRect & | |||
| ) | const [virtual] |
Draws histogram object
Reimplemented in Plot2d_HistogramItem.
References baseline(), drawBar(), Horizontal, myAttributes, myColor, myData, Vertical, and Xfy.
| void Plot2d_HistogramQwtItem::setBaseline | ( | double | theRef | ) |
| double Plot2d_HistogramQwtItem::baseline | ( | ) | const |
Returns base line of object
References myReference.
| void Plot2d_HistogramQwtItem::setHistogramAttribute | ( | HistogramAttribute | theAttr, |
| bool | isOn = true |
||
| ) |
Sets histogram attributes
References myAttributes, and testHistogramAttribute().
| bool Plot2d_HistogramQwtItem::testHistogramAttribute | ( | HistogramAttribute | theAttr | ) | const |
Tests histogram attributes
References myAttributes.
| void Plot2d_HistogramQwtItem::drawBar | ( | QPainter * | thePainter, |
| Qt::Orientation | , | ||
| const QRect & | theRect | ||
| ) | const [protected, virtual] |
Draws single bar of histogram
References color(), Plot2d.drawLine(), and Plot2d.NoPen.
| void Plot2d_HistogramQwtItem::init | ( | ) | [private] |
Initialization of object
References Auto, myAttributes, and myReference.
int Plot2d_HistogramQwtItem.myAttributes [private] |
QwtIntervalData Plot2d_HistogramQwtItem.myData [private] |
QColor Plot2d_HistogramQwtItem.myColor [private] |
double Plot2d_HistogramQwtItem.myReference [private] |