#include <QwtPieCurve.h>

Public Member Functions | |
| void | addLabel (PieLabel *l, bool clone=false) |
| void | clone (QwtPieCurve *c) |
| QColor | color (int i) const |
| bool | counterClockwise () |
| int | firstColor () |
| bool | fixedLabelsPosition () |
| double | horizontalOffset () |
| void | initLabels () |
| bool | labelCategories () |
| bool | labelsAutoFormat () |
| double | labelsEdgeDistance () |
| QList< PieLabel * > | labelsList () |
| bool | labelsPercentagesFormat () |
| bool | labelsValuesFormat () |
| void | loadData () |
| Qt::BrushStyle | pattern () |
| QwtPieCurve (Table *t, const QString &name, int startRow, int endRow) | |
| int | radius () |
| void | removeLabel (PieLabel *l) |
| void | setBrushStyle (const Qt::BrushStyle &style) |
| void | setCounterClockwise (bool on) |
| void | setFirstColor (int index) |
| void | setFixedLabelsPosition (bool on) |
| void | setHorizontalOffset (double d) |
| void | setLabelCategories (bool on) |
| void | setLabelPercentagesFormat (bool on) |
| void | setLabelsAutoFormat (bool on) |
| void | setLabelsEdgeDistance (double d) |
| void | setLabelValuesFormat (bool on) |
| void | setRadius (int size) |
| void | setStartAzimuth (double angle) |
| void | setThickness (double t) |
| void | setViewAngle (double a) |
| double | startAzimuth () |
| double | thickness () |
| double | viewAngle () |
Private Member Functions | |
| void | draw (QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, int from, int to) const |
| void | drawDisk (QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap) const |
| void | drawSlices (QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, int from, int to) const |
Private Attributes | |
| bool | d_auto_labeling |
| bool | d_categories |
| bool | d_counter_clockwise |
| double | d_edge_dist |
| int | d_first_color |
| bool | d_fixed_labels_pos |
| double | d_horizontal_offset |
| bool | d_percentages |
| int | d_pie_ray |
| double | d_start_azimuth |
| QVarLengthArray< int > | d_table_rows |
| Stores table row indices to be displayed in PieLabels if d_categories is true. | |
| QList< PieLabel * > | d_texts_list |
| double | d_thickness |
| bool | d_values |
| double | d_view_angle |
| QwtPieCurve::QwtPieCurve | ( | Table * | t, | |
| const QString & | name, | |||
| int | startRow, | |||
| int | endRow | |||
| ) |
References d_table_rows, Graph::Pie, PlotCurve::setPlotStyle(), and PlotCurve::setType().
| void QwtPieCurve::addLabel | ( | PieLabel * | l, | |
| bool | clone = false | |||
| ) |
References LegendWidget::clone(), PieLabel::customText(), d_texts_list, PieLabel::setCustomText(), and PieLabel::setPieCurve().
Referenced by Graph::copy(), and Graph::insertText().
| void QwtPieCurve::clone | ( | QwtPieCurve * | c | ) |
References counterClockwise(), d_auto_labeling, d_categories, d_counter_clockwise, d_edge_dist, d_first_color, d_fixed_labels_pos, d_horizontal_offset, d_percentages, d_pie_ray, d_start_azimuth, d_table_rows, d_thickness, d_values, d_view_angle, firstColor(), fixedLabelsPosition(), horizontalOffset(), labelCategories(), labelsAutoFormat(), labelsEdgeDistance(), labelsPercentagesFormat(), labelsValuesFormat(), radius(), startAzimuth(), thickness(), and viewAngle().
| QColor QwtPieCurve::color | ( | int | i | ) | const |
References ColorBox::color(), d_first_color, and ColorBox::numPredefinedColors().
Referenced by drawDisk(), drawSlices(), LegendWidget::drawSymbol(), Graph::savePieCurveLayout(), and PlotDialog::setActiveCurve().
| bool QwtPieCurve::counterClockwise | ( | ) | [inline] |
References d_counter_clockwise.
Referenced by clone(), Graph::savePieCurveLayout(), and PlotDialog::setActiveCurve().
| void QwtPieCurve::draw | ( | QPainter * | painter, | |
| const QwtScaleMap & | xMap, | |||
| const QwtScaleMap & | yMap, | |||
| int | from, | |||
| int | to | |||
| ) | const [private] |
References drawDisk(), and drawSlices().
| void QwtPieCurve::drawDisk | ( | QPainter * | painter, | |
| const QwtScaleMap & | xMap, | |||
| const QwtScaleMap & | yMap | |||
| ) | const [private] |
References color(), PieLabel::customText(), d_auto_labeling, d_categories, d_edge_dist, d_fixed_labels_pos, d_horizontal_offset, d_percentages, d_pie_ray, d_start_azimuth, d_table_rows, d_texts_list, d_thickness, d_values, d_view_angle, M_PI, LegendWidget::setOriginCoord(), and LegendWidget::setText().
Referenced by draw().
| void QwtPieCurve::drawSlices | ( | QPainter * | painter, | |
| const QwtScaleMap & | xMap, | |||
| const QwtScaleMap & | yMap, | |||
| int | from, | |||
| int | to | |||
| ) | const [private] |
References color(), PieLabel::customText(), d_auto_labeling, d_categories, d_counter_clockwise, d_edge_dist, d_fixed_labels_pos, d_horizontal_offset, d_percentages, d_pie_ray, d_start_azimuth, d_table_rows, d_texts_list, d_thickness, d_values, d_view_angle, M_PI, LegendWidget::setOriginCoord(), and LegendWidget::setText().
Referenced by draw().
| int QwtPieCurve::firstColor | ( | ) | [inline] |
References d_first_color.
Referenced by clone(), Graph::savePieCurveLayout(), and PlotDialog::setActiveCurve().
| bool QwtPieCurve::fixedLabelsPosition | ( | ) | [inline] |
References d_fixed_labels_pos.
Referenced by clone(), Graph::savePieCurveLayout(), and PlotDialog::setActiveCurve().
| double QwtPieCurve::horizontalOffset | ( | ) | [inline] |
References d_horizontal_offset.
Referenced by clone(), Graph::savePieCurveLayout(), and PlotDialog::setActiveCurve().
| void QwtPieCurve::initLabels | ( | ) |
References DataCurve::d_end_row, DataCurve::d_start_row, d_texts_list, Graph::multiLayer(), and LegendWidget::setText().
Referenced by Graph::plotPie().
| bool QwtPieCurve::labelCategories | ( | ) | [inline] |
References d_categories.
Referenced by clone(), Graph::savePieCurveLayout(), and PlotDialog::setActiveCurve().
| bool QwtPieCurve::labelsAutoFormat | ( | ) | [inline] |
References d_auto_labeling.
Referenced by clone(), Graph::savePieCurveLayout(), and PlotDialog::setActiveCurve().
| double QwtPieCurve::labelsEdgeDistance | ( | ) | [inline] |
References d_edge_dist.
Referenced by clone(), Graph::savePieCurveLayout(), and PlotDialog::setActiveCurve().
| QList<PieLabel *> QwtPieCurve::labelsList | ( | ) | [inline] |
References d_texts_list.
| bool QwtPieCurve::labelsPercentagesFormat | ( | ) | [inline] |
References d_percentages.
Referenced by clone(), Graph::savePieCurveLayout(), and PlotDialog::setActiveCurve().
| bool QwtPieCurve::labelsValuesFormat | ( | ) | [inline] |
References d_values.
Referenced by clone(), Graph::savePieCurveLayout(), and PlotDialog::setActiveCurve().
| void QwtPieCurve::loadData | ( | ) | [virtual] |
Reimplemented from DataCurve.
References Table::colIndex(), DataCurve::d_end_row, DataCurve::d_start_row, DataCurve::d_table, d_table_rows, d_texts_list, Graph::multiLayer(), and Table::text().
Referenced by Graph::plotPie().
| Qt::BrushStyle QwtPieCurve::pattern | ( | ) | [inline] |
Referenced by LegendWidget::drawSymbol(), Graph::savePieCurveLayout(), and PlotDialog::setActiveCurve().
| int QwtPieCurve::radius | ( | ) | [inline] |
References d_pie_ray.
Referenced by clone(), Graph::savePieCurveLayout(), and PlotDialog::setActiveCurve().
| void QwtPieCurve::removeLabel | ( | PieLabel * | l | ) |
References LegendWidget::clone(), PieLabel::customText(), d_texts_list, and PieLabel::setCustomText().
Referenced by PieLabel::closeEvent().
| void QwtPieCurve::setBrushStyle | ( | const Qt::BrushStyle & | style | ) |
Referenced by PlotDialog::acceptParams(), and Graph::plotPie().
| void QwtPieCurve::setCounterClockwise | ( | bool | on | ) | [inline] |
References d_counter_clockwise.
Referenced by PlotDialog::acceptParams(), ImportOPJ::importGraphs(), and Graph::plotPie().
| void QwtPieCurve::setFirstColor | ( | int | index | ) | [inline] |
References d_first_color.
Referenced by PlotDialog::acceptParams(), ImportOPJ::importGraphs(), and Graph::plotPie().
| void QwtPieCurve::setFixedLabelsPosition | ( | bool | on | ) | [inline] |
References d_fixed_labels_pos.
Referenced by PlotDialog::acceptParams(), ImportOPJ::importGraphs(), and Graph::plotPie().
| void QwtPieCurve::setHorizontalOffset | ( | double | d | ) | [inline] |
References d_horizontal_offset.
Referenced by PlotDialog::acceptParams(), ImportOPJ::importGraphs(), and Graph::plotPie().
| void QwtPieCurve::setLabelCategories | ( | bool | on | ) | [inline] |
References d_categories.
Referenced by PlotDialog::acceptParams(), ImportOPJ::importGraphs(), and Graph::plotPie().
| void QwtPieCurve::setLabelPercentagesFormat | ( | bool | on | ) | [inline] |
References d_percentages.
Referenced by PlotDialog::acceptParams(), ImportOPJ::importGraphs(), and Graph::plotPie().
| void QwtPieCurve::setLabelsAutoFormat | ( | bool | on | ) | [inline] |
References d_auto_labeling.
Referenced by PlotDialog::acceptParams(), ImportOPJ::importGraphs(), and Graph::plotPie().
| void QwtPieCurve::setLabelsEdgeDistance | ( | double | d | ) | [inline] |
References d_edge_dist.
Referenced by PlotDialog::acceptParams(), ImportOPJ::importGraphs(), and Graph::plotPie().
| void QwtPieCurve::setLabelValuesFormat | ( | bool | on | ) | [inline] |
References d_values.
Referenced by PlotDialog::acceptParams(), ImportOPJ::importGraphs(), and Graph::plotPie().
| void QwtPieCurve::setRadius | ( | int | size | ) | [inline] |
References d_pie_ray.
Referenced by PlotDialog::acceptParams(), ImportOPJ::importGraphs(), and Graph::plotPie().
| void QwtPieCurve::setStartAzimuth | ( | double | angle | ) | [inline] |
References d_start_azimuth.
Referenced by PlotDialog::acceptParams(), ImportOPJ::importGraphs(), and Graph::plotPie().
| void QwtPieCurve::setThickness | ( | double | t | ) | [inline] |
References d_thickness.
Referenced by PlotDialog::acceptParams(), ImportOPJ::importGraphs(), and Graph::plotPie().
| void QwtPieCurve::setViewAngle | ( | double | a | ) | [inline] |
References d_view_angle.
Referenced by PlotDialog::acceptParams(), ImportOPJ::importGraphs(), and Graph::plotPie().
| double QwtPieCurve::startAzimuth | ( | ) | [inline] |
References d_start_azimuth.
Referenced by clone(), Graph::savePieCurveLayout(), and PlotDialog::setActiveCurve().
| double QwtPieCurve::thickness | ( | ) | [inline] |
References d_thickness.
Referenced by clone(), Graph::savePieCurveLayout(), and PlotDialog::setActiveCurve().
| double QwtPieCurve::viewAngle | ( | ) | [inline] |
References d_view_angle.
Referenced by clone(), Graph::savePieCurveLayout(), and PlotDialog::setActiveCurve().
bool QwtPieCurve::d_auto_labeling [private] |
Referenced by clone(), drawDisk(), drawSlices(), labelsAutoFormat(), and setLabelsAutoFormat().
bool QwtPieCurve::d_categories [private] |
Referenced by clone(), drawDisk(), drawSlices(), labelCategories(), and setLabelCategories().
bool QwtPieCurve::d_counter_clockwise [private] |
Referenced by clone(), counterClockwise(), drawSlices(), and setCounterClockwise().
double QwtPieCurve::d_edge_dist [private] |
Referenced by clone(), drawDisk(), drawSlices(), labelsEdgeDistance(), and setLabelsEdgeDistance().
int QwtPieCurve::d_first_color [private] |
Referenced by clone(), color(), firstColor(), and setFirstColor().
bool QwtPieCurve::d_fixed_labels_pos [private] |
Referenced by clone(), drawDisk(), drawSlices(), fixedLabelsPosition(), and setFixedLabelsPosition().
double QwtPieCurve::d_horizontal_offset [private] |
Referenced by clone(), drawDisk(), drawSlices(), horizontalOffset(), and setHorizontalOffset().
bool QwtPieCurve::d_percentages [private] |
Referenced by clone(), drawDisk(), drawSlices(), labelsPercentagesFormat(), and setLabelPercentagesFormat().
int QwtPieCurve::d_pie_ray [private] |
Referenced by clone(), drawDisk(), drawSlices(), radius(), and setRadius().
double QwtPieCurve::d_start_azimuth [private] |
Referenced by clone(), drawDisk(), drawSlices(), setStartAzimuth(), and startAzimuth().
QVarLengthArray<int> QwtPieCurve::d_table_rows [private] |
Stores table row indices to be displayed in PieLabels if d_categories is true.
Referenced by clone(), drawDisk(), drawSlices(), loadData(), and QwtPieCurve().
QList<PieLabel *> QwtPieCurve::d_texts_list [private] |
Referenced by addLabel(), drawDisk(), drawSlices(), initLabels(), labelsList(), loadData(), and removeLabel().
double QwtPieCurve::d_thickness [private] |
Referenced by clone(), drawDisk(), drawSlices(), setThickness(), and thickness().
bool QwtPieCurve::d_values [private] |
Referenced by clone(), drawDisk(), drawSlices(), labelsValuesFormat(), and setLabelValuesFormat().
double QwtPieCurve::d_view_angle [private] |
Referenced by clone(), drawDisk(), drawSlices(), setViewAngle(), and viewAngle().
1.5.6