KChart::DataDimension
#include <KChartAbstractCoordinatePlane.h>
Public Member Functions | |
DataDimension (qreal start_, qreal end_, bool isCalculated_, AbstractCoordinatePlane::AxesCalcMode calcMode_, KChartEnums::GranularitySequence sequence_, qreal stepWidth_=0.0, qreal subStepWidth_=0.0) | |
qreal | distance () const |
bool | operator!= (const DataDimension &other) const |
bool | operator== (const DataDimension &r) const |
Public Attributes | |
AbstractCoordinatePlane::AxesCalcMode | calcMode |
qreal | end |
bool | isCalculated |
KChartEnums::GranularitySequence | sequence |
qreal | start |
qreal | stepWidth |
qreal | subStepWidth |
Detailed Description
Helper class for one dimension of data, e.g.
for the rows in a data model, or for the labels of an axis, or for the vertical lines in a grid.
isCalculated specifies whether this dimension's values are calculated or counted. (counted == "Item 1", "Item 2", "Item 3" ...)
sequence is the GranularitySequence, as specified at for the respective coordinate plane.
Step width is an optional parameter, to be omitted (or set to Zero, resp.) if the step width is unknown.
The default c'tor just gets you counted values from 1..10, using step width 1, used by the CartesianGrid, when showing an empty plane without any diagrams.
Definition at line 364 of file KChartAbstractCoordinatePlane.h.
Constructor & Destructor Documentation
◆ DataDimension() [1/2]
|
inline |
Definition at line 366 of file KChartAbstractCoordinatePlane.h.
◆ DataDimension() [2/2]
|
inline |
Definition at line 375 of file KChartAbstractCoordinatePlane.h.
Member Function Documentation
◆ distance()
|
inline |
Returns the size of the distance, equivalent to the width() (or height(), resp.) of a QRectF.
Note that this value can be negative, e.g. indicating axis labels going in reversed direction.
Definition at line 397 of file KChartAbstractCoordinatePlane.h.
◆ operator!=()
|
inline |
Definition at line 414 of file KChartAbstractCoordinatePlane.h.
◆ operator==()
|
inline |
Definition at line 402 of file KChartAbstractCoordinatePlane.h.
Member Data Documentation
◆ calcMode
AbstractCoordinatePlane::AxesCalcMode KChart::DataDimension::calcMode |
Definition at line 421 of file KChartAbstractCoordinatePlane.h.
◆ end
qreal KChart::DataDimension::end |
Definition at line 419 of file KChartAbstractCoordinatePlane.h.
◆ isCalculated
bool KChart::DataDimension::isCalculated |
Definition at line 420 of file KChartAbstractCoordinatePlane.h.
◆ sequence
KChartEnums::GranularitySequence KChart::DataDimension::sequence |
Definition at line 422 of file KChartAbstractCoordinatePlane.h.
◆ start
qreal KChart::DataDimension::start |
Definition at line 418 of file KChartAbstractCoordinatePlane.h.
◆ stepWidth
qreal KChart::DataDimension::stepWidth |
Definition at line 423 of file KChartAbstractCoordinatePlane.h.
◆ subStepWidth
qreal KChart::DataDimension::subStepWidth |
Definition at line 424 of file KChartAbstractCoordinatePlane.h.
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:02:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.