KChart
KChartAbstractGrid.h
139 virtual DataDimensionsList calculateGrid( const DataDimensionsList& rawDataDimensions ) const = 0;
Base class common for all coordinate planes, CartesianCoordinatePlane, PolarCoordinatePlane,...
Definition KChartAbstractCoordinatePlane.h:31
Abstract base class for grid classes: cartesian, polar, ...
Definition KChartAbstractGrid.h:34
DataDimensionsList updateData(AbstractCoordinatePlane *plane)
Returns the cached result of data calculation.
Definition KChartAbstractGrid.cpp:43
virtual void drawGrid(PaintContext *context)=0
Doing the actual drawing.
static bool isValueValid(const qreal &r)
Checks if r is neither NaN nor infinity.
Definition KChartAbstractGrid.cpp:77
static void adjustLowerUpperRange(qreal &start, qreal &end, qreal stepWidth, bool adjustLower, bool adjustUpper)
Adjusts start and/or end so that they are a multiple of stepWidth.
Definition KChartAbstractGrid.cpp:82
void setNeedRecalculate()
Causes grid to be recalculated upon the next call of updateData().
Definition KChartAbstractGrid.cpp:38
static const DataDimension adjustedLowerUpperRange(const DataDimension &dim, bool adjustLower, bool adjustUpper)
Adjusts dim so that dim.start and/or dim.end are a multiple of dim.stepWidth.
Definition KChartAbstractGrid.cpp:95
static bool isBoundariesValid(const QRectF &r)
Checks whether both coordinates of r are valid according to isValueValid.
Definition KChartAbstractGrid.cpp:58
Helper class for one dimension of data, e.g.
Definition KChartAbstractCoordinatePlane.h:364
A set of attributes controlling the appearance of grids.
Definition KChartGridAttributes.h:26
Q_SCRIPTABLE Q_NOREPLY void start()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.