#include <Plot2d_PlotItems.h>
Public Member Functions | |
Plot2d_HistogramItem (const QString &=QString()) | |
Plot2d_HistogramItem (const QwtText &) | |
virtual | ~Plot2d_HistogramItem () |
QList< QRect > | getBars () const |
virtual void | updateLegend (QwtPlotItem *, QList< QwtLegendData > &) |
virtual void | draw (QPainter *, const QwtScaleMap &, const QwtScaleMap &, const QRectF &) const |
void | setCrossItems (bool theCross) |
bool | isCrossItems () const |
Public Member Functions inherited from Plot2d_HistogramQwtItem | |
Plot2d_HistogramQwtItem (const QString &=QString()) | |
Plot2d_HistogramQwtItem (const QwtText &) | |
virtual | ~Plot2d_HistogramQwtItem () |
void | setData (const QwtIntervalSeriesData &) |
const QwtIntervalSeriesData & | data () const |
void | setColor (const QColor &) |
QColor | color () const |
virtual QwtDoubleRect | boundingRect () const |
virtual int | rtti () const |
void | setBaseline (double) |
double | baseline () const |
void | setHistogramAttribute (HistogramAttribute, bool=true) |
bool | testHistogramAttribute (HistogramAttribute) const |
Public Member Functions inherited from Plot2d_SelectableItem | |
Plot2d_SelectableItem () | |
~Plot2d_SelectableItem () | |
void | setSelected (const bool) |
bool | isSelected () const |
void | setLegendPen (const QPen &) |
QPen | legendPen () const |
void | setLegendSymbol (const QwtSymbol *) |
QwtSymbol * | legendSymbol () const |
Protected Member Functions | |
void | drawRectAndLowers (QPainter *, Qt::Orientation, const QRect &) const |
int | getCrossedTop (const QRect &) const |
Protected Member Functions inherited from Plot2d_HistogramQwtItem | |
virtual void | drawBar (QPainter *, Qt::Orientation, const QRect &) const |
Protected Attributes | |
QList< QRect > | myBarItems |
bool | myCrossed |
Additional Inherited Members | |
Public Types inherited from Plot2d_HistogramQwtItem | |
enum | HistogramAttribute { Auto = 0, Xfy = 1 } |
|
explicit |
Constructor
|
explicit |
Constructor
|
virtual |
Destructor
|
virtual |
Draws histogram object
Reimplemented from Plot2d_HistogramQwtItem.
References Plot2d_HistogramQwtItem::baseline(), Plot2d_HistogramQwtItem::color(), Plot2d_HistogramQwtItem::data(), drawRectAndLowers(), Horizontal, myBarItems, Plot2d_HistogramQwtItem::testHistogramAttribute(), Vertical, and Plot2d_HistogramQwtItem::Xfy.
|
protected |
Draws bar of histogram and on it bars of histograms with lower height.
References Plot2d_HistogramQwtItem::drawBar(), getCrossedTop(), Horizontal, and myCrossed.
QList< QRect > Plot2d_HistogramItem::getBars | ( | ) | const |
Get histogram bar items
References myBarItems.
|
protected |
Returns top value of the given rect in the context of other bars.
It's necessary to remember, that theRect has inverted coordinate Y.
References getBars().
bool Plot2d_HistogramItem::isCrossItems | ( | ) | const |
Get "cross items" option
References myCrossed.
void Plot2d_HistogramItem::setCrossItems | ( | bool | theCross | ) |
Set/clear "cross items" option
References myCrossed.
|
virtual |
Set to legend item symbol with color of item
References Plot2d_HistogramQwtItem::color(), Plot2d_SelectableItem::isSelected(), and Plot2d_SelectableItem::legendPen().
|
protected |
|
protected |