KD Chart API Documentation  3.1
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 
14 #include "KDChartCartesianGrid.h"
15 
16 namespace KDChart {
17 
18 class PaintContext;
19 
31 {
32 public:
34  : CartesianGrid()
35  {
36  }
37  ~LeveyJenningsGrid() override
38  {
39  }
40 
41  void drawGrid(PaintContext *context) override;
42 
43 private:
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.
QList< DataDimension > DataDimensionsList

© 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 by doxygen 1.9.1