KD Chart API Documentation  3.1
KDChartAbstractPolarDiagram.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 KDCHARTABSTRACTPOLARDIAGRAM_H
12 #define KDCHARTABSTRACTPOLARDIAGRAM_H
13 
14 #include "KDChartAbstractDiagram.h"
16 
17 namespace KDChart {
18 
19 class GridAttributes;
20 
24 class KDCHART_EXPORT AbstractPolarDiagram : public AbstractDiagram
25 {
26  Q_OBJECT
27  Q_DISABLE_COPY(AbstractPolarDiagram)
29 
30 public:
31  explicit AbstractPolarDiagram(
32  QWidget *parent = nullptr, PolarCoordinatePlane *plane = nullptr);
34  {
35  }
36 
37  virtual qreal valueTotals() const = 0;
38  virtual qreal numberOfValuesPerDataset() const = 0;
39  virtual qreal numberOfDatasets() const
40  {
41  return 1;
42  };
43  virtual qreal numberOfGridRings() const = 0;
44 
45  const PolarCoordinatePlane *polarCoordinatePlane() const;
46 
47  int columnCount() const;
48  int rowCount() const;
49 };
50 }
51 
52 #endif
#define KDCHART_DECLARE_DERIVED_DIAGRAM(X, PLANE)
AbstractDiagram defines the interface for diagram classes.
Base class for diagrams based on a polar coordinate system.
virtual qreal numberOfGridRings() const =0
virtual qreal valueTotals() const =0
virtual qreal numberOfValuesPerDataset() const =0

© 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