KChart

KChartAbstractPolarDiagram.h
1/*
2 * SPDX-FileCopyrightText: 2001-2015 Klaralvdalens Datakonsult AB. All rights reserved.
3 *
4 * This file is part of the KD Chart library.
5 *
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
8
9#ifndef KCHARTABSTRACTPOLARDIAGRAM_H
10#define KCHARTABSTRACTPOLARDIAGRAM_H
11
12#include "KChartPolarCoordinatePlane.h"
13#include "KChartAbstractDiagram.h"
14
15namespace KChart {
16
17 class GridAttributes;
18
19 /**
20 * @brief Base class for diagrams based on a polar coordinate system.
21 */
22 class KCHART_EXPORT AbstractPolarDiagram : public AbstractDiagram
23 {
24 Q_OBJECT
25 Q_DISABLE_COPY( AbstractPolarDiagram )
26 KCHART_DECLARE_DERIVED_DIAGRAM( AbstractPolarDiagram, PolarCoordinatePlane )
27
28 public:
29 explicit AbstractPolarDiagram (
30 QWidget* parent = nullptr, PolarCoordinatePlane* plane = nullptr );
31 ~AbstractPolarDiagram() override {}
32
33 virtual qreal valueTotals () const = 0;
34 virtual qreal numberOfValuesPerDataset() const = 0;
35 virtual qreal numberOfDatasets() const { return 1; };
36 virtual qreal numberOfGridRings() const = 0;
37
38 const PolarCoordinatePlane * polarCoordinatePlane() const;
39
40 int columnCount() const;
41 int rowCount() const;
42 };
43
44}
45
46#endif
AbstractDiagram defines the interface for diagram classes.
Base class for diagrams based on a polar coordinate system.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:14:24 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.