SciDAVis  1.D4
Public Slots | Public Member Functions | Private Member Functions | Private Attributes
QwtPieCurve Class Reference

Pie plot class. More...

#include <QwtPieCurve.h>

Inheritance diagram for QwtPieCurve:
DataCurve PlotCurve

List of all members.

Public Slots

QColor color (int i) const
int firstColor ()
virtual bool loadData ()
Qt::BrushStyle pattern ()
int ray ()
void setBrushStyle (const Qt::BrushStyle &style)
void setFirstColor (int index)
void setRay (int size)
void updateBoundingRect ()

Public Member Functions

 QwtPieCurve (Table *t, const char *name, int startRow, int endRow)
- Public Member Functions inherited from DataCurve
void addErrorBars (DataCurve *c)
 Adds a single error bars curve to the list of attached error bars.
void clearErrorBars ()
 Clears the list of attached error bars.
QList< QVector< double > > convertData (const QList< Column * > &cols, const QList< int > &axes) const
 DataCurve (Table *t, const QString &xColName, const QString &name, int startRow=0, int endRow=-1)
int endRow ()
QList< DataCurve * > errorBarsList ()
 The list of attached error bars.
bool hasSelectedLabels ()
bool isFullRange ()
virtual QString plotAssociation ()
 A list of data sources for this curve.
void remove ()
void removeErrorBars (DataCurve *c)
 Remove a single error bars curve from the list of attached error bars.
void setFullRange ()
void setLabelsSelected (bool on=true)
void setRowRange (int startRow, int endRow)
void setVisible (bool on)
void setXColumnName (const QString &name)
void setYColumnName (const QString &name)
int startRow ()
Tabletable ()
int tableRow (int point)
 Returns the row index in the data source table corresponding to the data point index.
virtual void updateColumnNames (const QString &oldName, const QString &newName, bool updateTableName)
virtual bool updateData (Table *t, const QString &colName)
QString xColumnName ()
QString yColumnName ()
- Public Member Functions inherited from PlotCurve
QwtDoubleRect boundingRect () const
 PlotCurve (const QString &name=QString::null)
void setType (int t)
int type () const

Private Member Functions

void draw (QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, int from, int to) const
void drawPie (QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, int from, int to) const

Private Attributes

int d_first_color
double d_left_coord
 Keeps track of the left side position of the pie bounding rectangle in scale coordinates.
int d_pie_ray

Additional Inherited Members

- Protected Attributes inherited from DataCurve
int d_end_row
 Last row of #d_tabel to be plotted, provided all relevant columns have valid entries.
QList< DataCurve * > d_error_bars
 List of the error bar curves associated to this curve.
int d_start_row
 First row of #d_tabel to be plotted, provided all relevant columns have valid entries.
Tabled_table
 The data source table.
QString d_x_column
 The name of the column used for abscissae values.
- Protected Attributes inherited from PlotCurve
int d_type

Detailed Description

Pie plot class.


Constructor & Destructor Documentation

QwtPieCurve::QwtPieCurve ( Table t,
const char *  name,
int  startRow,
int  endRow 
)

Member Function Documentation

QColor QwtPieCurve::color ( int  i) const
slot
void QwtPieCurve::draw ( QPainter *  painter,
const QwtScaleMap &  xMap,
const QwtScaleMap &  yMap,
int  from,
int  to 
) const
private

References drawPie().

void QwtPieCurve::drawPie ( QPainter *  painter,
const QwtScaleMap &  xMap,
const QwtScaleMap &  yMap,
int  from,
int  to 
) const
private

References color().

Referenced by draw().

int QwtPieCurve::firstColor ( )
inlineslot
bool QwtPieCurve::loadData ( )
virtualslot
Qt::BrushStyle QwtPieCurve::pattern ( )
inlineslot
int QwtPieCurve::ray ( )
inlineslot
void QwtPieCurve::setBrushStyle ( const Qt::BrushStyle &  style)
slot
void QwtPieCurve::setFirstColor ( int  index)
inlineslot
void QwtPieCurve::setRay ( int  size)
inlineslot
void QwtPieCurve::updateBoundingRect ( )
slot

Member Data Documentation

int QwtPieCurve::d_first_color
private
double QwtPieCurve::d_left_coord
private

Keeps track of the left side position of the pie bounding rectangle in scale coordinates.

Referenced by updateBoundingRect().

int QwtPieCurve::d_pie_ray
private

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