KChart::DataDimension

KChart::DataDimension Class Reference

#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 375 of file KChartAbstractCoordinatePlane.h.

Member Function Documentation

qreal KChart::DataDimension::distance ( ) const
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 408 of file KChartAbstractCoordinatePlane.h.


The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun Aug 9 2020 22:38:07 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.