KChart::PolarCoordinatePlane
#include <KChartPolarCoordinatePlane.h>
Public Types | |
typedef QList< CoordinateTransformation > | CoordinateTransformationList |
Public Types inherited from KChart::AbstractCoordinatePlane | |
enum | AxesCalcMode { Linear , Logarithmic } |
Protected Slots | |
void | adjustZoomAndRepaint () |
void | slotLayoutChanged (KChart::AbstractDiagram *diagram) |
Detailed Description
Polar coordinate plane.
Definition at line 22 of file KChartPolarCoordinatePlane.h.
Member Typedef Documentation
◆ CoordinateTransformationList
Definition at line 31 of file KChartPolarCoordinatePlane.h.
Constructor & Destructor Documentation
◆ PolarCoordinatePlane()
Definition at line 31 of file KChartPolarCoordinatePlane.cpp.
◆ ~PolarCoordinatePlane()
|
override |
Definition at line 37 of file KChartPolarCoordinatePlane.cpp.
Member Function Documentation
◆ addDiagram()
|
overridevirtual |
Adds a diagram to this coordinate plane.
- Parameters
-
diagram The diagram to add.
- See also
- replaceDiagram, takeDiagram
Reimplemented from KChart::AbstractCoordinatePlane.
Definition at line 47 of file KChartPolarCoordinatePlane.cpp.
◆ adjustZoomAndRepaint
|
protectedslot |
Definition at line 120 of file KChartPolarCoordinatePlane.cpp.
◆ angleUnit()
qreal PolarCoordinatePlane::angleUnit | ( | ) | const |
Definition at line 194 of file KChartPolarCoordinatePlane.cpp.
◆ getDataDimensionsList()
|
overrideprotectedvirtual |
Implements KChart::AbstractCoordinatePlane.
Definition at line 294 of file KChartPolarCoordinatePlane.cpp.
◆ gridAttributes()
const GridAttributes KChart::PolarCoordinatePlane::gridAttributes | ( | bool | circular | ) | const |
- Returns
- The attributes used for grid lines drawn in circular direction (or in sagittal direction, resp.).
- Note
- This function always returns a valid set of grid attributes: If no special grid attributes were set for this direction the global attributes are returned, as returned by AbstractCoordinatePlane::globalGridAttributes.
- See also
- setGridAttributes
- resetGridAttributes
- AbstractCoordinatePlane::globalGridAttributes
- hasOwnGridAttributes
Definition at line 323 of file KChartPolarCoordinatePlane.cpp.
◆ hasOwnGridAttributes()
bool KChart::PolarCoordinatePlane::hasOwnGridAttributes | ( | bool | circular | ) | const |
- Returns
- Returns whether the grid attributes have been set for the respective direction via setGridAttributes( bool circular ).
If false, the grid will use the global attributes set by AbstractCoordinatePlane::globalGridAttributes (or the default attributes, resp.)
Definition at line 358 of file KChartPolarCoordinatePlane.cpp.
◆ layoutDiagrams()
|
overrideprotectedvirtual |
Distribute the available space among the diagrams and axes.
Implements KChart::AbstractCoordinatePlane.
Definition at line 134 of file KChartPolarCoordinatePlane.cpp.
◆ paint()
reimpl
Implements KChart::AbstractLayoutItem.
Definition at line 58 of file KChartPolarCoordinatePlane.cpp.
◆ radiusUnit()
qreal PolarCoordinatePlane::radiusUnit | ( | ) | const |
Definition at line 201 of file KChartPolarCoordinatePlane.cpp.
◆ resetGridAttributes()
void KChart::PolarCoordinatePlane::resetGridAttributes | ( | bool | circular | ) |
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.
- See also
- setGridAttributes, gridAttributes
- AbstractCoordinatePlane::globalGridAttributes
- hasOwnGridAttributes
Definition at line 316 of file KChartPolarCoordinatePlane.cpp.
◆ resizeEvent()
|
protected |
Definition at line 128 of file KChartPolarCoordinatePlane.cpp.
◆ setGridAttributes()
void KChart::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:
- Note
- setGridAttributes overwrites the global attributes that were set by AbstractCoordinatePlane::setGlobalGridAttributes. To re-activate these global attributes you can call resetGridAttributes.
- See also
- resetGridAttributes, gridAttributes
- AbstractCoordinatePlane::setGlobalGridAttributes
- hasOwnGridAttributes
Definition at line 303 of file KChartPolarCoordinatePlane.cpp.
◆ setStartPosition()
void PolarCoordinatePlane::setStartPosition | ( | qreal | degrees | ) |
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:
- See also
- startPosition
Definition at line 213 of file KChartPolarCoordinatePlane.cpp.
◆ setZoomCenter()
Set the point (in value coordinates) to be used as the center point in zoom operations.
- Parameters
-
center The point to use.
Reimplemented from KChart::AbstractCoordinatePlane.
Definition at line 282 of file KChartPolarCoordinatePlane.cpp.
◆ setZoomFactors()
|
overridevirtual |
Sets both zoom factors in one go.
- See also
- setZoomFactorX,setZoomFactorY
Reimplemented from KChart::AbstractCoordinatePlane.
Definition at line 247 of file KChartPolarCoordinatePlane.cpp.
◆ setZoomFactorX()
|
overridevirtual |
Sets the zoom factor in horizontal direction, that is applied to all coordinate transformations.
- Parameters
-
factor The new zoom factor
Reimplemented from KChart::AbstractCoordinatePlane.
Definition at line 253 of file KChartPolarCoordinatePlane.cpp.
◆ setZoomFactorY()
|
overridevirtual |
Sets the zoom factor in vertical direction, that is applied to all coordinate transformations.
- Parameters
-
factor The new zoom factor
Reimplemented from KChart::AbstractCoordinatePlane.
Definition at line 264 of file KChartPolarCoordinatePlane.cpp.
◆ slotLayoutChanged
|
protectedslot |
Definition at line 208 of file KChartPolarCoordinatePlane.cpp.
◆ startPosition()
qreal PolarCoordinatePlane::startPosition | ( | ) | const |
Retrieve the rotation of the coordinate plane.
- See also
- setStartPosition
Definition at line 226 of file KChartPolarCoordinatePlane.cpp.
◆ translate()
Translate the given point in value space coordinates to a position in pixel space.
- Parameters
-
diagramPoint The point in value coordinates.
- Returns
- The translated point.
Implements KChart::AbstractCoordinatePlane.
Definition at line 180 of file KChartPolarCoordinatePlane.cpp.
◆ translatePolar()
Definition at line 187 of file KChartPolarCoordinatePlane.cpp.
◆ zoomCenter()
|
overridevirtual |
- Returns
- The center point (in value coordinates) of the coordinate plane, that is used for zoom operations.
Reimplemented from KChart::AbstractCoordinatePlane.
Definition at line 275 of file KChartPolarCoordinatePlane.cpp.
◆ zoomFactorX()
|
overridevirtual |
- Returns
- The zoom factor in horizontal direction, that is applied to all coordinate transformations.
Reimplemented from KChart::AbstractCoordinatePlane.
Definition at line 233 of file KChartPolarCoordinatePlane.cpp.
◆ zoomFactorY()
|
overridevirtual |
- Returns
- The zoom factor in vertical direction, that is applied to all coordinate transformations.
Reimplemented from KChart::AbstractCoordinatePlane.
Definition at line 240 of file KChartPolarCoordinatePlane.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:14:24 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.