KD Chart API Documentation
3.1
src
KDChart
Polar
KDChartRadarDiagram.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 KDCHARTRADARDIAGRAM_H
12
#define KDCHARTRADARDIAGRAM_H
13
14
#include "
KDChartPolarDiagram.h
"
15
#include "
KDChartPosition.h
"
16
#include "
KDChartRadarCoordinatePlane.h
"
17
18
QT_BEGIN_NAMESPACE
19
class
QPolygonF;
20
QT_END_NAMESPACE
21
22
namespace
KDChart
{
23
27
class
KDCHART_EXPORT
RadarDiagram
:
public
AbstractPolarDiagram
28
{
29
Q_OBJECT
30
31
Q_DISABLE_COPY(
RadarDiagram
)
32
KDCHART_DECLARE_DERIVED_DIAGRAM
(
RadarDiagram
,
RadarCoordinatePlane
)
33
34
public
:
35
explicit
RadarDiagram
(
36
QWidget *parent =
nullptr
,
RadarCoordinatePlane
*plane =
nullptr
);
37
~
RadarDiagram
()
override
;
38
39
virtual
void
paint(
PaintContext
*paintContext,
40
bool
calculateListAndReturnScale,
41
qreal &newZoomX, qreal &newZoomY);
43
void
resize(
const
QSizeF &area)
override
;
44
46
qreal valueTotals()
const override
;
48
qreal numberOfValuesPerDataset()
const override
;
50
qreal numberOfGridRings()
const override
;
51
55
void
setReverseData(
bool
val);
56
bool
reverseData();
57
58
virtual
RadarDiagram
*clone()
const
;
59
64
void
setCloseDatasets(
bool
closeDatasets);
65
bool
closeDatasets()
const
;
66
74
qreal fillAlpha()
const
;
75
void
setFillAlpha(qreal alphaF);
76
77
protected
:
79
const
QPair<QPointF, QPointF> calculateDataBoundaries()
const override
;
80
void
paintEvent(QPaintEvent *)
override
;
81
void
resizeEvent(QResizeEvent *)
override
;
82
void
paint(
PaintContext
*paintContext)
override
;
83
84
};
// End of class RadarDiagram
85
}
86
87
#endif
// KDCHARTRADARDIAGRAM_H
KDCHART_DECLARE_DERIVED_DIAGRAM
#define KDCHART_DECLARE_DERIVED_DIAGRAM(X, PLANE)
Definition:
KDChartGlobal.h:140
KDChartPolarDiagram.h
KDChartPosition.h
KDChartRadarCoordinatePlane.h
KDChart::AbstractPolarDiagram
Base class for diagrams based on a polar coordinate system.
Definition:
KDChartAbstractPolarDiagram.h:25
KDChart::PaintContext
Stores information about painting diagrams.
Definition:
KDChartPaintContext.h:30
KDChart::RadarCoordinatePlane
Radar coordinate plane.
Definition:
KDChartRadarCoordinatePlane.h:24
KDChart::RadarDiagram
RadarDiagram defines a common radar diagram.
Definition:
KDChartRadarDiagram.h:28
KDChart
Definition:
CartesianCoordinateTransformation.h:23
© 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