![]() |
KD Chart API Documentation
3.1
|
PolarDiagram defines a common polar diagram. More...
#include <KDChartPolarDiagram.h>
Public Member Functions | |
| PolarDiagram (QWidget *parent=nullptr, PolarCoordinatePlane *plane=nullptr) | |
| ~PolarDiagram () override | |
| virtual PolarDiagram * | clone () const |
| bool | closeDatasets () const |
| qreal | numberOfGridRings () const override |
| qreal | numberOfValuesPerDataset () const override |
| virtual void | paint (PaintContext *paintContext, bool calculateListAndReturnScale, qreal &newZoomX, qreal &newZoomY) |
| void | resize (const QSizeF &area) override |
| bool | rotateCircularLabels () const |
| void | setCloseDatasets (bool closeDatasets) |
| void | setRotateCircularLabels (bool rotateCircularLabels) |
| void | setShowDelimitersAtPosition (Position position, bool showDelimiters) |
| void | setShowLabelsAtPosition (Position position, bool showLabels) |
| Q_DECL_DEPRECATED void | setZeroDegreePosition (int degrees) |
| bool | showDelimitersAtPosition (Position position) const |
| bool | showLabelsAtPosition (Position position) const |
| qreal | valueTotals () const override |
| Q_DECL_DEPRECATED int | zeroDegreePosition () const |
Public Member Functions inherited from KDChart::AbstractPolarDiagram | |
| AbstractPolarDiagram (QWidget *parent=nullptr, PolarCoordinatePlane *plane=nullptr) | |
| ~AbstractPolarDiagram () override | |
| int | columnCount () const |
| virtual qreal | numberOfDatasets () const |
| const PolarCoordinatePlane * | polarCoordinatePlane () const |
| int | rowCount () const |
Public Member Functions inherited from KDChart::AbstractDiagram | |
| ~AbstractDiagram () override | |
| bool | allowOverlappingDataValueTexts () const |
| bool | antiAliasing () const |
| virtual AttributesModel * | attributesModel () const |
| QBrush | brush () const |
| QBrush | brush (const QModelIndex &index) const |
| QBrush | brush (int dataset) const |
| bool | compare (const AbstractDiagram *other) const |
| AbstractCoordinatePlane * | coordinatePlane () const |
| const QPair< QPointF, QPointF > | dataBoundaries () const |
| Return the bottom left and top right data point, that the diagram will display (unless the grid adjusts these values). More... | |
| void | dataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector< int > &roles=QVector< int >()) override |
| QList< QBrush > | datasetBrushes () const |
| int | datasetDimension () const |
| QStringList | datasetLabels () const |
| QList< MarkerAttributes > | datasetMarkers () const |
| QList< QPen > | datasetPens () const |
| DataValueAttributes | dataValueAttributes () const |
| DataValueAttributes | dataValueAttributes (const QModelIndex &index) const |
| DataValueAttributes | dataValueAttributes (int dataset) const |
| void | doItemsLayout () override |
| int | horizontalOffset () const override |
| QModelIndex | indexAt (const QPoint &point) const override |
| QModelIndexList | indexesAt (const QPoint &point) const |
| QModelIndexList | indexesIn (const QRect &rect) const |
| bool | isHidden () const |
| bool | isHidden (const QModelIndex &index) const |
| bool | isHidden (int dataset) const |
| bool | isIndexHidden (const QModelIndex &index) const override |
| QStringList | itemRowLabels () const |
| QModelIndex | moveCursor (CursorAction cursorAction, Qt::KeyboardModifiers modifiers) override |
| void | paintDataValueText (QPainter *painter, const QModelIndex &index, const QPointF &pos, qreal value) |
| void | paintMarker (QPainter *painter, const DataValueAttributes &a, const QModelIndex &index, const QPointF &pos) |
| virtual void | paintMarker (QPainter *painter, const MarkerAttributes &markerAttributes, const QBrush &brush, const QPen &, const QPointF &point, const QSizeF &size) |
| void | paintMarker (QPainter *painter, const QModelIndex &index, const QPointF &pos) |
| QPen | pen () const |
| QPen | pen (const QModelIndex &index) const |
| QPen | pen (int dataset) const |
| bool | percentMode () const |
| Returns whether this diagram is drawn in percent mode. More... | |
| void | scrollTo (const QModelIndex &index, ScrollHint hint=EnsureVisible) override |
| void | setAllowOverlappingDataValueTexts (bool allow) |
| void | setAntiAliasing (bool enabled) |
| virtual void | setAttributesModel (AttributesModel *model) |
| Sets an external AttributesModel on this diagram. More... | |
| void | setBrush (const QBrush &brush) |
| void | setBrush (const QModelIndex &index, const QBrush &brush) |
| void | setBrush (int dataset, const QBrush &brush) |
| virtual void | setCoordinatePlane (AbstractCoordinatePlane *plane) |
| Q_DECL_DEPRECATED void | setDatasetDimension (int dimension) |
| void | setDataValueAttributes (const DataValueAttributes &a) |
| void | setDataValueAttributes (const QModelIndex &index, const DataValueAttributes &a) |
| void | setDataValueAttributes (int dataset, const DataValueAttributes &a) |
| void | setHidden (bool hidden) |
| void | setHidden (const QModelIndex &index, bool hidden) |
| void | setHidden (int dataset, bool hidden) |
| void | setModel (QAbstractItemModel *model) override |
| void | setPen (const QModelIndex &index, const QPen &pen) |
| void | setPen (const QPen &pen) |
| void | setPen (int dataset, const QPen &pen) |
| Q_DECL_DEPRECATED void | setPercentMode (bool percent) |
| Deprecated method that turns the percent mode of this diagram on or off. More... | |
| void | setRootIndex (const QModelIndex &idx) override |
| Reimplemented for internal purposes. More... | |
| void | setSelection (const QRect &rect, QItemSelectionModel::SelectionFlags command) override |
| void | setSelectionModel (QItemSelectionModel *selectionModel) override |
| void | setUnitPrefix (const QString &prefix, int column, Qt::Orientation orientation) |
| void | setUnitPrefix (const QString &prefix, Qt::Orientation orientation) |
| void | setUnitSuffix (const QString &suffix, int column, Qt::Orientation orientation) |
| void | setUnitSuffix (const QString &suffix, Qt::Orientation orientation) |
| QString | unitPrefix (int column, Qt::Orientation orientation, bool fallback=false) const |
| QString | unitPrefix (Qt::Orientation orientation) const |
| QString | unitSuffix (int column, Qt::Orientation orientation, bool fallback=false) const |
| QString | unitSuffix (Qt::Orientation orientation) const |
| void | update () const |
| void | useDefaultColors () |
| void | useRainbowColors () |
| virtual bool | usesExternalAttributesModel () const |
| void | useSubduedColors () |
| int | verticalOffset () const override |
| QRect | visualRect (const QModelIndex &index) const override |
| virtual QRegion | visualRegion (const QModelIndex &index) const |
| QRegion | visualRegionForSelection (const QItemSelection &selection) const override |
Protected Member Functions | |
| const QPair< QPointF, QPointF > | calculateDataBoundaries () const override |
| void | paint (PaintContext *paintContext) override |
| void | paintEvent (QPaintEvent *) override |
| virtual void | paintPolarMarkers (PaintContext *ctx, const QPolygonF &polygon) |
| void | resizeEvent (QResizeEvent *) override |
Protected Member Functions inherited from KDChart::AbstractDiagram | |
| AbstractDiagram (Private *p, QWidget *parent, AbstractCoordinatePlane *plane) | |
| AbstractDiagram (QWidget *parent=nullptr, AbstractCoordinatePlane *plane=nullptr) | |
| QModelIndex | attributesModelRootIndex () const |
| returns a QModelIndex pointing into the AttributesModel that corresponds to the root index of the diagram. More... | |
| virtual bool | checkInvariants (bool justReturnTheStatus=false) const |
| virtual Q_DECL_DEPRECATED void | paintDataValueTexts (QPainter *painter) |
| virtual Q_DECL_DEPRECATED void | paintMarkers (QPainter *painter) |
| void | setAttributesModelRootIndex (const QModelIndex &) |
| void | setDatasetDimensionInternal (int dimension) |
| Q_DECL_DEPRECATED qreal | valueForCell (int row, int column) const |
Additional Inherited Members | |
Signals inherited from KDChart::AbstractDiagram | |
| void | aboutToBeDestroyed () |
| void | attributesModelAboutToChange (AttributesModel *newModel, AttributesModel *oldModel) |
| void | boundariesChanged () |
| void | dataHidden () |
| void | layoutChanged (AbstractDiagram *) |
| void | modelDataChanged () |
| void | modelsChanged () |
| void | propertiesChanged () |
| void | viewportCoordinateSystemChanged () |
Protected Slots inherited from KDChart::AbstractDiagram | |
| void | setDataBoundariesDirty () const |
PolarDiagram defines a common polar diagram.
Definition at line 26 of file KDChartPolarDiagram.h.
|
explicit |
Definition at line 32 of file KDChartPolarDiagram.cpp.
Referenced by clone().
|
override |
Definition at line 38 of file KDChartPolarDiagram.cpp.
|
overrideprotectedvirtual |
Reimplemented for internal purposes.
Implements KDChart::AbstractDiagram.
Definition at line 83 of file KDChartPolarDiagram.cpp.
References KDChart::AbstractDiagram::checkInvariants(), and KDChart::AbstractPolarDiagram::rowCount().
|
virtual |
Creates an exact copy of this diagram.
Definition at line 72 of file KDChartPolarDiagram.cpp.
References PolarDiagram(), and d.
| bool PolarDiagram::closeDatasets | ( | ) | const |
Definition at line 266 of file KDChartPolarDiagram.cpp.
References d.
Referenced by paint(), and setCloseDatasets().
|
overridevirtual |
Reimplemented for internal purposes.
Implements KDChart::AbstractPolarDiagram.
Definition at line 234 of file KDChartPolarDiagram.cpp.
|
overridevirtual |
Reimplemented for internal purposes.
Implements KDChart::AbstractPolarDiagram.
Definition at line 228 of file KDChartPolarDiagram.cpp.
|
overrideprotectedvirtual |
Reimplemented for internal purposes.
Implements KDChart::AbstractDiagram.
Definition at line 124 of file KDChartPolarDiagram.cpp.
Referenced by KDChart::PolarCoordinatePlane::paint(), and paintEvent().
|
virtual |
Definition at line 131 of file KDChartPolarDiagram.cpp.
References KDChart::AbstractDiagram::brush(), KDChart::Position::Center, KDChart::AbstractDiagram::checkInvariants(), closeDatasets(), KDChart::AbstractDiagram::coordinatePlane(), d, KDChart::DatasetBrushRole, KDChart::DatasetPenRole, KDChart::AbstractCoordinatePlane::geometry(), KDChart::PaintContext::painter(), KDChart::PaintContext::rectangle(), KDChart::AbstractPolarDiagram::rowCount(), KDChart::PrintingParameters::scalePen(), KDChart::AbstractCoordinatePlane::translate(), KDChart::AbstractCoordinatePlane::zoomFactorX(), and KDChart::AbstractCoordinatePlane::zoomFactorY().
|
overrideprotected |
Definition at line 104 of file KDChartPolarDiagram.cpp.
References paint(), KDChart::PaintContext::setPainter(), and KDChart::PaintContext::setRectangle().
|
protectedvirtual |
Definition at line 117 of file KDChartPolarDiagram.cpp.
|
overridevirtual |
Reimplemented for internal purposes.
Implements KDChart::AbstractDiagram.
Definition at line 217 of file KDChartPolarDiagram.cpp.
|
overrideprotected |
Definition at line 113 of file KDChartPolarDiagram.cpp.
| bool PolarDiagram::rotateCircularLabels | ( | ) | const |
Definition at line 256 of file KDChartPolarDiagram.cpp.
References d.
Referenced by setRotateCircularLabels().
| void PolarDiagram::setCloseDatasets | ( | bool | closeDatasets | ) |
Close each of the data series by connecting the last point to its respective start point
Definition at line 261 of file KDChartPolarDiagram.cpp.
References closeDatasets(), and d.
| void PolarDiagram::setRotateCircularLabels | ( | bool | rotateCircularLabels | ) |
Definition at line 251 of file KDChartPolarDiagram.cpp.
References d, and rotateCircularLabels().
| void PolarDiagram::setShowDelimitersAtPosition | ( | Position | position, |
| bool | showDelimiters | ||
| ) |
Definition at line 271 of file KDChartPolarDiagram.cpp.
References d, and KDChart::Position::value().
| void PolarDiagram::setShowLabelsAtPosition | ( | Position | position, |
| bool | showLabels | ||
| ) |
Definition at line 277 of file KDChartPolarDiagram.cpp.
References d, and KDChart::Position::value().
| void PolarDiagram::setZeroDegreePosition | ( | int | degrees | ) |
Definition at line 239 of file KDChartPolarDiagram.cpp.
| bool PolarDiagram::showDelimitersAtPosition | ( | Position | position | ) | const |
Definition at line 283 of file KDChartPolarDiagram.cpp.
References d, and KDChart::Position::value().
| bool PolarDiagram::showLabelsAtPosition | ( | Position | position | ) | const |
Definition at line 288 of file KDChartPolarDiagram.cpp.
References d, and KDChart::Position::value().
|
overridevirtual |
Reimplemented for internal purposes.
Implements KDChart::AbstractPolarDiagram.
Definition at line 222 of file KDChartPolarDiagram.cpp.
| int PolarDiagram::zeroDegreePosition | ( | ) | const |
Definition at line 245 of file KDChartPolarDiagram.cpp.