KChart

KChartTernaryCoordinatePlane.h
1 /*
2  * Copyright (C) 2001-2015 Klaralvdalens Datakonsult AB. All rights reserved.
3  *
4  * This file is part of the KD Chart library.
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation; either version 2 of
9  * the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program. If not, see <https://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef KCHARTTERNARYCOORDINATEPLANE_H
21 #define KCHARTTERNARYCOORDINATEPLANE_H
22 
23 #include "KChartAbstractCoordinatePlane.h"
24 
25 namespace KChart {
26 
27  class TernaryGrid;
28 
32  class KCHART_EXPORT TernaryCoordinatePlane
34  {
35  Q_OBJECT
36  Q_DISABLE_COPY( TernaryCoordinatePlane )
37  KCHART_DECLARE_PRIVATE_DERIVED_PARENT( TernaryCoordinatePlane, Chart* )
38 
39  public:
40  explicit TernaryCoordinatePlane( Chart* parent = nullptr );
42 
43  void addDiagram( AbstractDiagram* diagram ) override;
44 
45  void layoutDiagrams() override;
46 
47  const QPointF translate ( const QPointF& diagramPoint ) const override;
48 
49  void paint( QPainter* ) override;
50  DataDimensionsList getDataDimensionsList() const override;
51 
53  QSize minimumSizeHint() const;
55  QSizePolicy sizePolicy() const;
56 
57  private:
58  TernaryGrid* grid() const;
59  };
60 
61 }
62 
63 #endif
AbstractDiagram defines the interface for diagram classes.
Base class common for all coordinate planes, CartesianCoordinatePlane, PolarCoordinatePlane, TernaryCoordinatePlane.
A chart with one or more diagrams.
Definition: KChartChart.h:95
Global namespace.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Sep 23 2020 22:36:47 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.