KChart

KChartAbstractPolarDiagram.cpp
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#include "KChartAbstractPolarDiagram.h"
10#include "KChartAbstractPolarDiagram_p.h"
11
12#include "KChartMath_p.h"
13
14
15using namespace KChart;
16
17AbstractPolarDiagram::Private::Private()
18{
19}
20
21AbstractPolarDiagram::Private::~Private()
22{
23}
24
25void AbstractPolarDiagram::init()
26{
27}
28
29#define d d_func()
30
31AbstractPolarDiagram::AbstractPolarDiagram (
32 QWidget* parent, PolarCoordinatePlane* plane )
33 : AbstractDiagram ( new Private(), parent, plane )
34{
35}
36
37
38const PolarCoordinatePlane * AbstractPolarDiagram::polarCoordinatePlane() const
39{
40 return dynamic_cast<const PolarCoordinatePlane*>( coordinatePlane() );
41}
42
43int AbstractPolarDiagram::columnCount() const
44{
45 return static_cast<int>( numberOfValuesPerDataset() );
46}
47
48int AbstractPolarDiagram::rowCount() const
49{
50 return static_cast<int>( numberOfDatasets() );
51}
AbstractDiagram defines the interface for diagram classes.
AbstractCoordinatePlane * coordinatePlane() const
The coordinate plane associated with the diagram.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 24 2024 11:54:44 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.