Pie plot class.
More...
#include <QwtPieCurve.h>
List of all members.
Public Member Functions |
| QwtPieCurve (Table *t, const char *name, int startRow, int endRow) |
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 () |
Table * | table () |
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 () |
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 |
Additional Inherited Members |
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.
|
Table * | d_table |
| The data source table.
|
QString | d_x_column |
| The name of the column used for abscissae values.
|
int | d_type |
Detailed Description
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 |
void QwtPieCurve::drawPie |
( |
QPainter * |
painter, |
|
|
const QwtScaleMap & |
xMap, |
|
|
const QwtScaleMap & |
yMap, |
|
|
int |
from, |
|
|
int |
to |
|
) |
| const |
|
private |
int QwtPieCurve::firstColor |
( |
| ) |
|
|
inlineslot |
bool QwtPieCurve::loadData |
( |
| ) |
|
|
virtualslot |
Reimplemented from DataCurve.
References Table::colIndex(), Table::column(), Table::columnType(), DataCurve::d_end_row, DataCurve::d_start_row, DataCurve::d_table, Column::isInvalid(), Column::rowCount(), Table::Text, Column::textAt(), and Column::valueAt().
Referenced by Graph::plotPie().
Qt::BrushStyle QwtPieCurve::pattern |
( |
| ) |
|
|
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: