KD Chart API Documentation 3.1
Loading...
Searching...
No Matches
KDChartLeveyJenningsCoordinatePlane.cpp
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
12#include "KDChartLeveyJenningsCoordinatePlane_p.h"
13
14#include <QPainter>
15#include <QtDebug>
16
19#include "KDChartPaintContext.h"
20#include "KDChartPainterSaver_p.h"
21
22using namespace KDChart;
23
24#define d d_func()
25
26LeveyJenningsCoordinatePlane::Private::Private()
27 : CartesianCoordinatePlane::Private()
28{
29}
30
35
39
40void LeveyJenningsCoordinatePlane::init()
41{
42}
43
45{
47 "LeveyJenningsCoordinatePlane::addDiagram", "Only Levey Jennings "
48 "diagrams can be added to a ternary coordinate plane!");
50}
51
52LeveyJenningsGrid *LeveyJenningsCoordinatePlane::grid() const
53{
54 auto *leveyJenningsGrid = static_cast<LeveyJenningsGrid *>(d->grid);
55 Q_ASSERT(dynamic_cast<LeveyJenningsGrid *>(d->grid));
56 return leveyJenningsGrid;
57}
58
63
68
73
74#undef d
AbstractDiagram defines the interface for diagram classes.
void addDiagram(AbstractDiagram *diagram) override
const QPointF translateBack(const QPointF &screenPoint) const
A chart with one or more diagrams.
void addDiagram(AbstractDiagram *diagram) override
void setGridAttributes(const LeveyJenningsGridAttributes &attr)
const QPointF translateBack(const QPointF &screenPoint) const
LeveyDiagram defines a Levey Jennings chart.
A set of attributes controlling the appearance of grids.
T qobject_cast(QObject *object)

© 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