KChart

KChartTernaryCoordinatePlane.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 KCHARTTERNARYCOORDINATEPLANE_H
10#define KCHARTTERNARYCOORDINATEPLANE_H
11
12#include "KChartAbstractCoordinatePlane.h"
13
14namespace KChart {
15
16 class TernaryGrid;
17
18 /**
19 * @brief Ternary coordinate plane
20 */
21 class KCHART_EXPORT TernaryCoordinatePlane
23 {
24 Q_OBJECT
25 Q_DISABLE_COPY( TernaryCoordinatePlane )
26 KCHART_DECLARE_PRIVATE_DERIVED_PARENT( TernaryCoordinatePlane, Chart* )
27
28 public:
29 explicit TernaryCoordinatePlane( Chart* parent = nullptr );
30 ~TernaryCoordinatePlane() override;
31
32 void addDiagram( AbstractDiagram* diagram ) override;
33
34 void layoutDiagrams() override;
35
36 const QPointF translate ( const QPointF& diagramPoint ) const override;
37
38 void paint( QPainter* ) override;
39 DataDimensionsList getDataDimensionsList() const override;
40
41 /** \reimpl */
42 QSize minimumSizeHint() const;
43 /** \reimpl */
44 QSizePolicy sizePolicy() const;
45
46 private:
47 TernaryGrid* grid() const;
48 };
49
50}
51
52#endif
Base class common for all coordinate planes, CartesianCoordinatePlane, PolarCoordinatePlane,...
AbstractDiagram defines the interface for diagram classes.
A chart with one or more diagrams.
Definition KChartChart.h:85
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.