KD Chart API Documentation 3.1
Loading...
Searching...
No Matches
KDChartTernaryGrid.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 KDCHARTTERNARYGRID_H
12#define KDCHARTTERNARYGRID_H
13
14#include <QList>
15
16#include "KDChartAbstractGrid.h"
18
19namespace KDChart {
20
22{
23 TickInfo(qreal percentage = 0, int depth = 0);
25 int depth;
26};
27
28bool operator==(const TickInfo &, const TickInfo &);
29
30class PaintContext;
31
32// VERIFY: Grids are not public API, are they?
34{
35public:
37
38 ~TernaryGrid() override;
39
40 void drawGrid(PaintContext *context) override;
41 DataDimensionsList calculateGrid(const DataDimensionsList &rawDataDimensions) const override;
42
57 const QVector<TickInfo> &tickInfo() const;
58
59private:
60 QVector<TickInfo> m_tickInfo;
61 // QList<PrerenderedLabel> m_labels;
62};
63}
64
65#endif
Stores information about painting diagrams.
void drawGrid(PaintContext *context) override
QPair< QSizeF, QSizeF > requiredMargins() const
DataDimensionsList calculateGrid(const DataDimensionsList &rawDataDimensions) const override
Calculates the grid start/end/step width values.
const QVector< TickInfo > & tickInfo() const
bool operator==(const TickInfo &, const TickInfo &)

© 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