KChart

KChartAbstractTernaryDiagram.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 KCHARTABSTRACTTERNARYDIAGRAM_H
21 #define KCHARTABSTRACTTERNARYDIAGRAM_H
22 
23 #include "KChartAbstractDiagram.h"
24 #include "KChartTernaryAxis.h"
25 
26 namespace KChart {
27 
28  class TernaryCoordinatePlane;
29  class TernaryAxis;
30 
34  class KCHART_EXPORT AbstractTernaryDiagram : public AbstractDiagram
35  {
36  Q_OBJECT
37  Q_DISABLE_COPY( AbstractTernaryDiagram )
38  KCHART_DECLARE_DERIVED_DIAGRAM( AbstractTernaryDiagram,
40 
41  public:
42  explicit AbstractTernaryDiagram ( QWidget* parent = nullptr,
43  TernaryCoordinatePlane* plane = nullptr );
44  virtual ~AbstractTernaryDiagram();
45 
46  void paint (PaintContext *paintContext) override;
47 
48  virtual void addAxis( TernaryAxis* axis );
49  virtual void takeAxis( TernaryAxis* axis );
50  virtual TernaryAxisList axes () const;
51 
52  protected:
53  const QPair< QPointF, QPointF > calculateDataBoundaries () const override = 0;
54 
55  };
56 
57 }
58 
59 #endif
Class only listed here to document inheritance of some KChart classes.
AbstractDiagram defines the interface for diagram classes.
Stores information about painting diagrams.
Base class for diagrams based on a ternary coordinate plane.
Global namespace.
The class for ternary axes.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Sep 22 2020 22:36:45 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.