|
QtiPlot
0.9.8.2
|
Pie plot class. More...
#include <PieCurve.h>
Public Member Functions | |
| PieLabel * | addLabel (PieLabel *l, bool clone=false) |
| void | clearLabels () |
| Clears the list of attached text labels. | |
| void | clone (PieCurve *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 () |
| PieCurve (Table *t, const QString &name, int startRow, int endRow) | |
| int | radius () |
| 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 |
Pie plot class.
| PieCurve::PieCurve | ( | Table * | t, |
| const QString & | name, | ||
| int | startRow, | ||
| int | endRow | ||
| ) |
References d_table_rows, Graph::Pie, PlotCurve::setPlotStyle(), and PlotCurve::setType().
| PieLabel * PieCurve::addLabel | ( | PieLabel * | l, |
| bool | clone = false |
||
| ) |
References LegendWidget::clone(), PieLabel::customText(), d_texts_list, PieLabel::setCustomText(), PieLabel::setPieCurve(), and LegendWidget::text().
Referenced by clone(), and Graph::insertText().
| void PieCurve::clearLabels | ( | ) |
Clears the list of attached text labels.
Reimplemented from DataCurve.
References d_auto_labeling, d_texts_list, and LegendWidget::setText().
| void PieCurve::clone | ( | PieCurve * | c | ) |
References addLabel(), 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(), labelsList(), labelsPercentagesFormat(), labelsValuesFormat(), radius(), startAzimuth(), thickness(), and viewAngle().
| QColor PieCurve::color | ( | int | i | ) | const |
References d_first_color, and ColorBox::numPredefinedColors().
Referenced by drawDisk(), drawSlices(), LegendWidget::drawSymbol(), Graph::savePieCurveLayout(), and PlotDialog::setActiveCurve().
| bool PieCurve::counterClockwise | ( | ) | [inline] |
References d_counter_clockwise.
Referenced by clone(), Graph::savePieCurveLayout(), and PlotDialog::setActiveCurve().
| void PieCurve::draw | ( | QPainter * | painter, |
| const QwtScaleMap & | xMap, | ||
| const QwtScaleMap & | yMap, | ||
| int | from, | ||
| int | to | ||
| ) | const [private] |
References drawDisk(), and drawSlices().
| void PieCurve::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, FrameWidget::setOriginCoord(), and LegendWidget::setText().
Referenced by draw().
| void PieCurve::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, FrameWidget::setOriginCoord(), LegendWidget::setText(), and sign.
Referenced by draw().
| int PieCurve::firstColor | ( | ) | [inline] |
References d_first_color.
Referenced by clone(), Graph::savePieCurveLayout(), and PlotDialog::setActiveCurve().
| bool PieCurve::fixedLabelsPosition | ( | ) | [inline] |
References d_fixed_labels_pos.
Referenced by clone(), Graph::savePieCurveLayout(), and PlotDialog::setActiveCurve().
| double PieCurve::horizontalOffset | ( | ) | [inline] |
References d_horizontal_offset.
Referenced by clone(), Graph::savePieCurveLayout(), and PlotDialog::setActiveCurve().
| void PieCurve::initLabels | ( | ) |
References Table::cell(), Table::colIndex(), DataCurve::d_end_row, DataCurve::d_start_row, DataCurve::d_table, d_texts_list, Graph::multiLayer(), LegendWidget::setText(), and Table::text().
Referenced by Graph::plotPie().
| bool PieCurve::labelCategories | ( | ) | [inline] |
References d_categories.
Referenced by clone(), Graph::savePieCurveLayout(), and PlotDialog::setActiveCurve().
| bool PieCurve::labelsAutoFormat | ( | ) | [inline] |
References d_auto_labeling.
Referenced by clone(), Graph::savePieCurveLayout(), and PlotDialog::setActiveCurve().
| double PieCurve::labelsEdgeDistance | ( | ) | [inline] |
References d_edge_dist.
Referenced by clone(), Graph::savePieCurveLayout(), and PlotDialog::setActiveCurve().
| QList<PieLabel *> PieCurve::labelsList | ( | ) | [inline] |
References d_texts_list.
Referenced by clone(), PieLabel::restore(), and PieLabel::saveToString().
| bool PieCurve::labelsPercentagesFormat | ( | ) | [inline] |
References d_percentages.
Referenced by clone(), Graph::savePieCurveLayout(), and PlotDialog::setActiveCurve().
| bool PieCurve::labelsValuesFormat | ( | ) | [inline] |
References d_values.
Referenced by clone(), Graph::savePieCurveLayout(), and PlotDialog::setActiveCurve().
| void PieCurve::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 PieCurve::pattern | ( | ) | [inline] |
Referenced by LegendWidget::drawSymbol(), Graph::savePieCurveLayout(), and PlotDialog::setActiveCurve().
| int PieCurve::radius | ( | ) | [inline] |
References d_pie_ray.
Referenced by clone(), Graph::savePieCurveLayout(), and PlotDialog::setActiveCurve().
| void PieCurve::setBrushStyle | ( | const Qt::BrushStyle & | style | ) |
Referenced by PlotDialog::acceptParams(), and Graph::plotPie().
| void PieCurve::setCounterClockwise | ( | bool | on | ) | [inline] |
References d_counter_clockwise.
Referenced by PlotDialog::acceptParams(), and Graph::plotPie().
| void PieCurve::setFirstColor | ( | int | index | ) | [inline] |
References d_first_color.
Referenced by PlotDialog::acceptParams(), and Graph::plotPie().
| void PieCurve::setFixedLabelsPosition | ( | bool | on | ) | [inline] |
References d_fixed_labels_pos.
Referenced by PlotDialog::acceptParams(), and Graph::plotPie().
| void PieCurve::setHorizontalOffset | ( | double | d | ) | [inline] |
References d_horizontal_offset.
Referenced by PlotDialog::acceptParams(), and Graph::plotPie().
| void PieCurve::setLabelCategories | ( | bool | on | ) | [inline] |
References d_categories.
Referenced by PlotDialog::acceptParams(), and Graph::plotPie().
| void PieCurve::setLabelPercentagesFormat | ( | bool | on | ) | [inline] |
References d_percentages.
Referenced by PlotDialog::acceptParams(), and Graph::plotPie().
| void PieCurve::setLabelsAutoFormat | ( | bool | on | ) | [inline] |
References d_auto_labeling.
Referenced by PlotDialog::acceptParams(), and Graph::plotPie().
| void PieCurve::setLabelsEdgeDistance | ( | double | d | ) | [inline] |
References d_edge_dist.
Referenced by PlotDialog::acceptParams(), and Graph::plotPie().
| void PieCurve::setLabelValuesFormat | ( | bool | on | ) | [inline] |
References d_values.
Referenced by PlotDialog::acceptParams(), and Graph::plotPie().
| void PieCurve::setRadius | ( | int | size | ) | [inline] |
References d_pie_ray.
Referenced by PlotDialog::acceptParams(), and Graph::plotPie().
| void PieCurve::setStartAzimuth | ( | double | angle | ) | [inline] |
References d_start_azimuth.
Referenced by PlotDialog::acceptParams(), and Graph::plotPie().
| void PieCurve::setThickness | ( | double | t | ) | [inline] |
References d_thickness.
Referenced by PlotDialog::acceptParams(), and Graph::plotPie().
| void PieCurve::setViewAngle | ( | double | a | ) | [inline] |
References d_view_angle.
Referenced by PlotDialog::acceptParams(), and Graph::plotPie().
| double PieCurve::startAzimuth | ( | ) | [inline] |
References d_start_azimuth.
Referenced by clone(), Graph::savePieCurveLayout(), and PlotDialog::setActiveCurve().
| double PieCurve::thickness | ( | ) | [inline] |
References d_thickness.
Referenced by clone(), Graph::savePieCurveLayout(), and PlotDialog::setActiveCurve().
| double PieCurve::viewAngle | ( | ) | [inline] |
References d_view_angle.
Referenced by clone(), Graph::savePieCurveLayout(), and PlotDialog::setActiveCurve().
bool PieCurve::d_auto_labeling [private] |
Referenced by clearLabels(), clone(), drawDisk(), drawSlices(), labelsAutoFormat(), and setLabelsAutoFormat().
bool PieCurve::d_categories [private] |
Referenced by clone(), drawDisk(), drawSlices(), labelCategories(), and setLabelCategories().
bool PieCurve::d_counter_clockwise [private] |
Referenced by clone(), counterClockwise(), drawSlices(), and setCounterClockwise().
double PieCurve::d_edge_dist [private] |
Referenced by clone(), drawDisk(), drawSlices(), labelsEdgeDistance(), and setLabelsEdgeDistance().
int PieCurve::d_first_color [private] |
Referenced by clone(), color(), firstColor(), and setFirstColor().
bool PieCurve::d_fixed_labels_pos [private] |
Referenced by clone(), drawDisk(), drawSlices(), fixedLabelsPosition(), and setFixedLabelsPosition().
double PieCurve::d_horizontal_offset [private] |
Referenced by clone(), drawDisk(), drawSlices(), horizontalOffset(), and setHorizontalOffset().
bool PieCurve::d_percentages [private] |
Referenced by clone(), drawDisk(), drawSlices(), labelsPercentagesFormat(), and setLabelPercentagesFormat().
int PieCurve::d_pie_ray [private] |
Referenced by clone(), drawDisk(), drawSlices(), radius(), and setRadius().
double PieCurve::d_start_azimuth [private] |
Referenced by clone(), drawDisk(), drawSlices(), setStartAzimuth(), and startAzimuth().
QVarLengthArray<int> PieCurve::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 PieCurve().
QList<PieLabel *> PieCurve::d_texts_list [private] |
Referenced by addLabel(), clearLabels(), drawDisk(), drawSlices(), initLabels(), labelsList(), and loadData().
double PieCurve::d_thickness [private] |
Referenced by clone(), drawDisk(), drawSlices(), setThickness(), and thickness().
bool PieCurve::d_values [private] |
Referenced by clone(), drawDisk(), drawSlices(), labelsValuesFormat(), and setLabelValuesFormat().
double PieCurve::d_view_angle [private] |
Referenced by clone(), drawDisk(), drawSlices(), setViewAngle(), and viewAngle().
1.7.6.1