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

#include <qwt5_histogram_item.h>

Inheritance diagram for HistogramItem:
Inheritance graph
[legend]
Collaboration diagram for HistogramItem:
Collaboration 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
 

Private Member Functions

void init ()
 

Private Attributes

PrivateDatad_data
 

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.

References init().

HistogramItem::HistogramItem ( const QwtText &  title)
explicit

Definition at line 83 of file qwt5_histogram_item.h.

References init().

HistogramItem::~HistogramItem ( )
virtual

Definition at line 95 of file qwt5_histogram_item.h.

References d_data.

Member Function Documentation

double HistogramItem::baseline ( ) const

Definition at line 121 of file qwt5_histogram_item.h.

References d_data, and HistogramItem::PrivateData::reference.

Referenced by draw().

QwtDoubleRect HistogramItem::boundingRect ( ) const
virtual
QColor HistogramItem::color ( void  ) const

Definition at line 146 of file qwt5_histogram_item.h.

References HistogramItem::PrivateData::color, and d_data.

Referenced by drawBar(), setColor(), and updateLegend().

const QwtIntervalData & HistogramItem::data ( ) const

Definition at line 132 of file qwt5_histogram_item.h.

References d_data, and HistogramItem::PrivateData::data.

Referenced by setData().

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

Definition at line 279 of file qwt5_histogram_item.h.

References color().

Referenced by draw().

void HistogramItem::init ( )
private
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.

References d_data, and HistogramItem::PrivateData::reference.

void HistogramItem::setColor ( const QColor &  color)
void HistogramItem::setData ( const QwtIntervalData &  data)
void HistogramItem::setHistogramAttribute ( HistogramAttribute  attribute,
bool  on = true 
)

Definition at line 184 of file qwt5_histogram_item.h.

References HistogramItem::PrivateData::attributes, and d_data.

bool HistogramItem::testHistogramAttribute ( HistogramAttribute  attribute) const

Definition at line 197 of file qwt5_histogram_item.h.

References HistogramItem::PrivateData::attributes, and d_data.

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.

References color().

Member Data Documentation

PrivateData* HistogramItem::d_data
private

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