![]() |
KD Chart API Documentation 3.0
|
Polar coordinate plane. More...
#include <KDChartPolarCoordinatePlane.h>
Public Types | |
typedef QList< CoordinateTransformation > | CoordinateTransformationList |
![]() | |
enum | AxesCalcMode { Linear , Logarithmic } |
Protected Slots | |
void | adjustZoomAndRepaint () |
void | slotLayoutChanged (AbstractDiagram *diagram) |
Polar coordinate plane.
Definition at line 24 of file KDChartPolarCoordinatePlane.h.
Definition at line 33 of file KDChartPolarCoordinatePlane.h.
Definition at line 35 of file KDChartPolarCoordinatePlane.cpp.
|
override |
Definition at line 41 of file KDChartPolarCoordinatePlane.cpp.
|
overridevirtual |
Adds a diagram to this coordinate plane.
diagram | The diagram to add. |
Reimplemented from KDChart::AbstractCoordinatePlane.
Definition at line 51 of file KDChartPolarCoordinatePlane.cpp.
References KDChart::AbstractCoordinatePlane::addDiagram(), QObject::connect(), KDChart::AbstractCoordinatePlane::diagram(), QObject::qobject_cast(), and slotLayoutChanged().
|
protectedslot |
Definition at line 122 of file KDChartPolarCoordinatePlane.cpp.
References d, QObject::qobject_cast(), setZoomFactors(), and KDChart::AbstractCoordinatePlane::update().
qreal PolarCoordinatePlane::angleUnit | ( | ) | const |
Definition at line 194 of file KDChartPolarCoordinatePlane.cpp.
References d, and QObject::qobject_cast().
Referenced by layoutDiagrams().
|
overrideprotectedvirtual |
Implements KDChart::AbstractCoordinatePlane.
Definition at line 291 of file KDChartPolarCoordinatePlane.cpp.
References QObject::qobject_cast().
const GridAttributes KDChart::PolarCoordinatePlane::gridAttributes | ( | bool | circular | ) | const |
Definition at line 320 of file KDChartPolarCoordinatePlane.cpp.
References d.
If false, the grid will use the global attributes set by AbstractCoordinatePlane::globalGridAttributes (or the default attributes, resp.)
Definition at line 355 of file KDChartPolarCoordinatePlane.cpp.
References d.
|
overrideprotectedvirtual |
Distribute the available space among the diagrams and axes.
Implements KDChart::AbstractCoordinatePlane.
Definition at line 135 of file KDChartPolarCoordinatePlane.cpp.
References angleUnit(), KDChart::AbstractArea::areaGeometry(), d, KDChart::AbstractCoordinatePlane::diagram(), KDChart::AbstractCoordinatePlane::diagrams(), QRect::height(), QObject::qobject_cast(), radiusUnit(), startPosition(), KDChart::AbstractCoordinatePlane::update(), QRect::width(), and KDChart::CoordinateTransformation::zoom.
Referenced by resizeEvent(), and slotLayoutChanged().
reimp
Implements KDChart::AbstractLayoutItem.
Definition at line 61 of file KDChartPolarCoordinatePlane.cpp.
References d, KDChart::AbstractCoordinatePlane::diagrams(), KDChart::AbstractCoordinatePlane::geometry(), QMetaObject::invokeMethod(), KDChart::PolarDiagram::paint(), QObject::qobject_cast(), Qt::QueuedConnection, KDChart::PaintContext::setPainter(), zoomFactorX(), and zoomFactorY().
|
protected |
qreal PolarCoordinatePlane::radiusUnit | ( | ) | const |
Definition at line 201 of file KDChartPolarCoordinatePlane.cpp.
References d, and QObject::qobject_cast().
Referenced by layoutDiagrams().
Reset the attributes to be used for grid lines drawn in circular direction (or in sagittal direction, resp.). By calling this method you specify that the global attributes set by AbstractCoordinatePlane::setGlobalGridAttributes be used.
Definition at line 313 of file KDChartPolarCoordinatePlane.cpp.
|
protected |
Definition at line 129 of file KDChartPolarCoordinatePlane.cpp.
References d, and layoutDiagrams().
void KDChart::PolarCoordinatePlane::setGridAttributes | ( | bool | circular, |
const GridAttributes & | a | ||
) |
Set the attributes to be used for grid lines drawn in circular direction (or in sagittal direction, resp.).
To disable circular grid painting, for example, your code should like this:
Definition at line 300 of file KDChartPolarCoordinatePlane.cpp.
References d.
Specify the rotation of the coordinate plane.
In a pie diagram this indicates the position where the first pie starts, in a polar diagram it specifies the Zero position of the circular axis:
Definition at line 214 of file KDChartPolarCoordinatePlane.cpp.
References d, KDChart::AbstractCoordinatePlane::diagram(), and QObject::qobject_cast().
Set the point (in value coordinates) to be used as the center point in zoom operations.
center | The point to use. |
Reimplemented from KDChart::AbstractCoordinatePlane.
Definition at line 280 of file KDChartPolarCoordinatePlane.cpp.
References d, QObject::qobject_cast(), KDChart::ZoomParameters::xCenter, and KDChart::CoordinateTransformation::zoom.
Sets both zoom factors in one go.
Reimplemented from KDChart::AbstractCoordinatePlane.
Definition at line 247 of file KDChartPolarCoordinatePlane.cpp.
References QObject::qobject_cast(), setZoomFactorX(), and setZoomFactorY().
Referenced by adjustZoomAndRepaint().
Sets the zoom factor in horizontal direction, that is applied to all coordinate transformations.
factor | The new zoom factor |
Reimplemented from KDChart::AbstractCoordinatePlane.
Definition at line 253 of file KDChartPolarCoordinatePlane.cpp.
References d, QObject::qobject_cast(), KDChart::ZoomParameters::xFactor, and KDChart::CoordinateTransformation::zoom.
Referenced by setZoomFactors().
Sets the zoom factor in vertical direction, that is applied to all coordinate transformations.
factor | The new zoom factor |
Reimplemented from KDChart::AbstractCoordinatePlane.
Definition at line 263 of file KDChartPolarCoordinatePlane.cpp.
References d, QObject::qobject_cast(), KDChart::ZoomParameters::yFactor, and KDChart::CoordinateTransformation::zoom.
Referenced by setZoomFactors().
|
protectedslot |
Definition at line 208 of file KDChartPolarCoordinatePlane.cpp.
References d, and layoutDiagrams().
Referenced by addDiagram().
qreal PolarCoordinatePlane::startPosition | ( | ) | const |
Retrieve the rotation of the coordinate plane.
Definition at line 226 of file KDChartPolarCoordinatePlane.cpp.
References d.
Referenced by layoutDiagrams(), and KDChart::RingDiagram::paint().
Translate the given point in value space coordinates to a position in pixel space.
diagramPoint | The point in value coordinates. |
Implements KDChart::AbstractCoordinatePlane.
Definition at line 180 of file KDChartPolarCoordinatePlane.cpp.
References d, and QObject::qobject_cast().
Definition at line 187 of file KDChartPolarCoordinatePlane.cpp.
References d, and QObject::qobject_cast().
|
overridevirtual |
Reimplemented from KDChart::AbstractCoordinatePlane.
Definition at line 273 of file KDChartPolarCoordinatePlane.cpp.
References d.
|
overridevirtual |
Reimplemented from KDChart::AbstractCoordinatePlane.
Definition at line 233 of file KDChartPolarCoordinatePlane.cpp.
References d, KDChart::ZoomParameters::xFactor, and KDChart::CoordinateTransformation::zoom.
Referenced by paint().
|
overridevirtual |
Reimplemented from KDChart::AbstractCoordinatePlane.
Definition at line 240 of file KDChartPolarCoordinatePlane.cpp.
References d.
Referenced by paint().