KD Chart API Documentation 3.1
Loading...
Searching...
No Matches
KDChartLeveyJenningsGrid.h
Go to the documentation of this file.
1/****************************************************************************
2**
3** This file is part of the KD Chart library.
4**
5** SPDX-FileCopyrightText: 2001 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6**
7** SPDX-License-Identifier: MIT
8**
9****************************************************************************/
10
11#ifndef KDCHARTLEVEYJENNINGSGRID_H
12#define KDCHARTLEVEYJENNINGSGRID_H
13
15
16namespace KDChart {
17
18class PaintContext;
19
31{
32public:
35 {
36 }
38 {
39 }
40
41 void drawGrid(PaintContext *context) override;
42
43private:
44 DataDimensionsList calculateGrid(const DataDimensionsList &rawDataDimensions) const override;
45 DataDimension calculateGridXY(const DataDimension &rawDataDimension,
46 Qt::Orientation orientation, bool adjustLower, bool adjustUpper) const override;
47 void calculateStepWidth(qreal start_, qreal end_, const QList<qreal> &granularities, Qt::Orientation orientation,
48 qreal &stepWidth, qreal &subStepWidth, bool adjustLower, bool adjustUpper) const override;
49};
50}
51
52#endif
Helper class for one dimension of data, e.g. for the rows in a data model, or for the labels of an ax...
void drawGrid(PaintContext *context) override
Stores information about painting diagrams.
Orientation

© 2001 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/
Generated on Wed May 1 2024 00:01:10 for KD Chart API Documentation by doxygen 1.9.8