QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Public Types | Public Member Functions | Protected Member Functions | List of all members
HistogramItem Class Reference

#include <qwt5_histogram_item.h>

Inheritance diagram for HistogramItem:
Inheritance graph
[legend]

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
 

Member Enumeration Documentation

Enumerator
Auto 
Xfy 

Constructor & Destructor Documentation

HistogramItem::HistogramItem ( const QString &  title = QString::null)
explicit
HistogramItem::HistogramItem ( const QwtText &  title)
explicit
HistogramItem::~HistogramItem ( )
virtual

Member Function Documentation

double HistogramItem::baseline ( ) const
QwtDoubleRect HistogramItem::boundingRect ( ) const
virtual
QColor HistogramItem::color ( void  ) const
const QwtIntervalData & HistogramItem::data ( ) const
void HistogramItem::draw ( QPainter *  painter,
const QwtScaleMap &  xMap,
const QwtScaleMap &  yMap,
const QRect &   
) const
virtual
void HistogramItem::drawBar ( QPainter *  painter,
Qt::Orientation  o,
const QRect &  rect 
) const
protectedvirtual
int HistogramItem::rtti ( ) const
virtual
void HistogramItem::setBaseline ( double  reference)
void HistogramItem::setColor ( const QColor &  color)
void HistogramItem::setData ( const QwtIntervalData &  data)
void HistogramItem::setHistogramAttribute ( HistogramAttribute  attribute,
bool  on = true 
)
bool HistogramItem::testHistogramAttribute ( HistogramAttribute  attribute) const
void HistogramItem::updateLegend ( QwtLegend *  legend) const
virtual

Update the widget that represents the curve on the legend.


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