KD Chart API Documentation  3.1
KDChartAbstractPolarDiagram.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 "KDChartAbstractPolarDiagram_p.h"
13 
14 #include <KDABLibFakes>
15 
16 using namespace KDChart;
17 
18 AbstractPolarDiagram::Private::Private()
19 {
20 }
21 
22 AbstractPolarDiagram::Private::~Private()
23 {
24 }
25 
26 void AbstractPolarDiagram::init()
27 {
28 }
29 
30 #define d d_func()
31 
33  QWidget *parent, PolarCoordinatePlane *plane)
34  : AbstractDiagram(new Private(), parent, plane)
35 {
36 }
37 
39 {
40  return dynamic_cast<const PolarCoordinatePlane *>(coordinatePlane());
41 }
42 
44 {
45  return static_cast<int>(numberOfValuesPerDataset());
46 }
47 
49 {
50  return static_cast<int>(numberOfDatasets());
51 }
AbstractDiagram defines the interface for diagram classes.
AbstractCoordinatePlane * coordinatePlane() const
const PolarCoordinatePlane * polarCoordinatePlane() const
virtual qreal numberOfValuesPerDataset() const =0
AbstractPolarDiagram(QWidget *parent=nullptr, PolarCoordinatePlane *plane=nullptr)

© 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