KD Chart API Documentation
3.1
src
KDChart
Ternary
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
"
17
#include "
KDChartTextLabelCache.h
"
18
19
namespace
KDChart
{
20
21
struct
TickInfo
22
{
23
TickInfo
(qreal
percentage
= 0,
int
depth
= 0);
24
qreal
percentage
;
25
int
depth
;
26
};
27
28
bool
operator==
(
const
TickInfo
&,
const
TickInfo
&);
29
30
class
PaintContext
;
31
32
// VERIFY: Grids are not public API, are they?
33
class
TernaryGrid
:
public
AbstractGrid
34
{
35
public
:
36
TernaryGrid
();
37
38
~TernaryGrid
()
override
;
39
40
void
drawGrid
(
PaintContext
*context)
override
;
41
DataDimensionsList
calculateGrid
(
const
DataDimensionsList
&rawDataDimensions)
const override
;
42
51
QPair<QSizeF, QSizeF>
requiredMargins
()
const
;
57
const
QVector<TickInfo> &
tickInfo
()
const
;
58
59
private
:
60
QVector<TickInfo> m_tickInfo;
61
// QList<PrerenderedLabel> m_labels;
62
};
63
}
64
65
#endif
KDChartAbstractGrid.h
KDChartTextLabelCache.h
KDChart::AbstractGrid
Definition:
KDChartAbstractGrid.h:35
KDChart::PaintContext
Stores information about painting diagrams.
Definition:
KDChartPaintContext.h:30
KDChart::TernaryGrid
Definition:
KDChartTernaryGrid.h:34
KDChart::TernaryGrid::drawGrid
void drawGrid(PaintContext *context) override
Definition:
KDChartTernaryGrid.cpp:52
KDChart::TernaryGrid::requiredMargins
QPair< QSizeF, QSizeF > requiredMargins() const
Definition:
KDChartTernaryGrid.cpp:189
KDChart::TernaryGrid::TernaryGrid
TernaryGrid()
Definition:
KDChartTernaryGrid.cpp:43
KDChart::TernaryGrid::~TernaryGrid
~TernaryGrid() override
Definition:
KDChartTernaryGrid.cpp:48
KDChart::TernaryGrid::calculateGrid
DataDimensionsList calculateGrid(const DataDimensionsList &rawDataDimensions) const override
Calculates the grid start/end/step width values.
Definition:
KDChartTernaryGrid.cpp:184
KDChart::TernaryGrid::tickInfo
const QVector< TickInfo > & tickInfo() const
Definition:
KDChartTernaryGrid.cpp:206
KDChart
Definition:
CartesianCoordinateTransformation.h:23
KDChart::operator==
bool operator==(const TickInfo &, const TickInfo &)
Definition:
KDChartTernaryGrid.cpp:36
KDChart::DataDimensionsList
QList< DataDimension > DataDimensionsList
Definition:
KDChartAbstractCoordinatePlane.h:25
KDChart::TickInfo
Definition:
KDChartTernaryGrid.h:22
KDChart::TickInfo::depth
int depth
Definition:
KDChartTernaryGrid.h:25
KDChart::TickInfo::percentage
qreal percentage
Definition:
KDChartTernaryGrid.h:24
KDChart::TickInfo::TickInfo
TickInfo(qreal percentage=0, int depth=0)
Definition:
KDChartTernaryGrid.cpp:30
© 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