Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Plot2d_HistogramItem Class Reference

#include <Plot2d_PlotItems.h>

Inheritance diagram for Plot2d_HistogramItem:
Inheritance graph

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 }
 

Constructor & Destructor Documentation

Plot2d_HistogramItem::Plot2d_HistogramItem ( const QString &  theTitle = QString())
explicit

Constructor

Plot2d_HistogramItem::Plot2d_HistogramItem ( const QwtText &  theTitle)
explicit

Constructor

Plot2d_HistogramItem::~Plot2d_HistogramItem ( )
virtual

Destructor

Member Function Documentation

void Plot2d_HistogramItem::draw ( QPainter *  thePainter,
const QwtScaleMap &  theXMap,
const QwtScaleMap &  theYMap,
const QRectF &   
) const
virtual
void Plot2d_HistogramItem::drawRectAndLowers ( QPainter *  thePainter,
Qt::Orientation  theOr,
const QRect &  theRect 
) const
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.

int Plot2d_HistogramItem::getCrossedTop ( const QRect &  theRect) const
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.

void Plot2d_HistogramItem::updateLegend ( QwtPlotItem thePlotItem,
QList< QwtLegendData > &  theLegendData 
)
virtual

Member Data Documentation

QList<QRect> Plot2d_HistogramItem::myBarItems
protected
bool Plot2d_HistogramItem::myCrossed
protected

The documentation for this class was generated from the following files: