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

#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 ()
double baseline () const
virtual QwtDoubleRect boundingRect () const
QColor color () const
const QwtIntervalData & data () const
virtual void draw (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRect &) const
virtual int rtti () const
void setBaseline (double reference)
void setColor (const QColor &)
void setData (const QwtIntervalData &data)
void setHistogramAttribute (HistogramAttribute, bool on=true)
bool testHistogramAttribute (HistogramAttribute) const
virtual void updateLegend (QwtLegend *) const
 Update the widget that represents the curve on the legend.

Protected Member Functions

virtual void drawBar (QPainter *, Qt::Orientation o, const QRect &) const

Detailed Description

Definition at line 21 of file qwt5_histogram_item.h.

Member Enumeration Documentation

Enumerator:
Auto 
Xfy 

Definition at line 46 of file qwt5_histogram_item.h.

Constructor & Destructor Documentation

HistogramItem::HistogramItem ( const QString &  title = QString::null)
explicit

Definition at line 89 of file qwt5_histogram_item.h.

HistogramItem::HistogramItem ( const QwtText &  title)
explicit

Definition at line 83 of file qwt5_histogram_item.h.

HistogramItem::~HistogramItem ( )
virtual

Definition at line 95 of file qwt5_histogram_item.h.

Member Function Documentation

double HistogramItem::baseline ( ) const

Definition at line 121 of file qwt5_histogram_item.h.

QwtDoubleRect HistogramItem::boundingRect ( ) const
virtual

Definition at line 151 of file qwt5_histogram_item.h.

QColor HistogramItem::color ( void  ) const

Definition at line 146 of file qwt5_histogram_item.h.

const QwtIntervalData & HistogramItem::data ( ) const

Definition at line 132 of file qwt5_histogram_item.h.

void HistogramItem::draw ( QPainter *  painter,
const QwtScaleMap &  xMap,
const QwtScaleMap &  yMap,
const QRect &   
) const
virtual

Definition at line 202 of file qwt5_histogram_item.h.

void HistogramItem::drawBar ( QPainter *  painter,
Qt::Orientation  o,
const QRect &  rect 
) const
protectedvirtual

Definition at line 279 of file qwt5_histogram_item.h.

int HistogramItem::rtti ( ) const
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.

void HistogramItem::setColor ( const QColor &  color)

Definition at line 137 of file qwt5_histogram_item.h.

void HistogramItem::setData ( const QwtIntervalData &  data)

Definition at line 126 of file qwt5_histogram_item.h.

void HistogramItem::setHistogramAttribute ( HistogramAttribute  attribute,
bool  on = true 
)

Definition at line 184 of file qwt5_histogram_item.h.

bool HistogramItem::testHistogramAttribute ( HistogramAttribute  attribute) const

Definition at line 197 of file qwt5_histogram_item.h.

void HistogramItem::updateLegend ( QwtLegend *  legend) const
virtual

Update the widget that represents the curve on the legend.

Definition at line 352 of file qwt5_histogram_item.h.


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