KD Chart 2  [rev.2.7]
Public Member Functions | Public Attributes | List of all members
KDChart::DataDimension Class Reference

Helper class for one dimension of data, e.g. More...

#include <KDChartAbstractCoordinatePlane.h>

Collaboration diagram for KDChart::DataDimension:
Collaboration graph
[legend]

Public Member Functions

 DataDimension ()
 
 DataDimension (qreal start_, qreal end_, bool isCalculated_, AbstractCoordinatePlane::AxesCalcMode calcMode_, KDChartEnums::GranularitySequence sequence_, qreal stepWidth_=0.0, qreal subStepWidth_=0.0)
 
qreal distance () const
 Returns the size of the distance, equivalent to the width() (or height(), resp.) of a QRectF. More...
 
bool operator!= (const DataDimension &other) const
 
bool operator== (const DataDimension &r) const
 

Public Attributes

AbstractCoordinatePlane::AxesCalcMode calcMode
 
qreal end
 
bool isCalculated
 
KDChartEnums::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 378 of file KDChartAbstractCoordinatePlane.h.

Constructor & Destructor Documentation

KDChart::DataDimension::DataDimension ( )

Definition at line 380 of file KDChartAbstractCoordinatePlane.h.

KDChart::DataDimension::DataDimension ( qreal  start_,
qreal  end_,
bool  isCalculated_,
AbstractCoordinatePlane::AxesCalcMode  calcMode_,
KDChartEnums::GranularitySequence  sequence_,
qreal  stepWidth_ = 0.0,
qreal  subStepWidth_ = 0.0 
)

Definition at line 389 of file KDChartAbstractCoordinatePlane.h.

Member Function Documentation

qreal KDChart::DataDimension::distance ( ) const

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 411 of file KDChartAbstractCoordinatePlane.h.

Referenced by KDChart::CartesianCoordinatePlane::logicalArea().

bool KDChart::DataDimension::operator!= ( const DataDimension other) const

Definition at line 428 of file KDChartAbstractCoordinatePlane.h.

References KDGantt::operator==().

bool KDChart::DataDimension::operator== ( const DataDimension r) const

Member Data Documentation

AbstractCoordinatePlane::AxesCalcMode KDChart::DataDimension::calcMode

Definition at line 435 of file KDChartAbstractCoordinatePlane.h.

Referenced by KDChart::operator<<(), and operator==().

qreal KDChart::DataDimension::end
bool KDChart::DataDimension::isCalculated

Definition at line 434 of file KDChartAbstractCoordinatePlane.h.

Referenced by KDChart::operator<<(), and operator==().

KDChartEnums::GranularitySequence KDChart::DataDimension::sequence

Definition at line 436 of file KDChartAbstractCoordinatePlane.h.

Referenced by KDChart::operator<<(), and operator==().

qreal KDChart::DataDimension::start
qreal KDChart::DataDimension::stepWidth

Definition at line 437 of file KDChartAbstractCoordinatePlane.h.

Referenced by KDChart::operator<<(), and operator==().

qreal KDChart::DataDimension::subStepWidth

Definition at line 438 of file KDChartAbstractCoordinatePlane.h.

Referenced by KDChart::operator<<(), and operator==().


The documentation for this class was generated from the following file:

Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/

https://www.kdab.com/development-resources/qt-tools/kd-chart/