KChart

KChartAbstractTernaryDiagram.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 KCHARTABSTRACTTERNARYDIAGRAM_H
10 #define KCHARTABSTRACTTERNARYDIAGRAM_H
11 
12 #include "KChartAbstractDiagram.h"
13 #include "KChartTernaryAxis.h"
14 
15 namespace KChart {
16 
17  class TernaryCoordinatePlane;
18  class TernaryAxis;
19 
20  /**
21  * @brief Base class for diagrams based on a ternary coordinate plane.
22  */
23  class KCHART_EXPORT AbstractTernaryDiagram : public AbstractDiagram
24  {
25  Q_OBJECT
26  Q_DISABLE_COPY( AbstractTernaryDiagram )
27  KCHART_DECLARE_DERIVED_DIAGRAM( AbstractTernaryDiagram,
29 
30  public:
31  explicit AbstractTernaryDiagram ( QWidget* parent = nullptr,
32  TernaryCoordinatePlane* plane = nullptr );
33  ~AbstractTernaryDiagram() override;
34 
35  void paint (PaintContext *paintContext) override;
36 
37  virtual void addAxis( TernaryAxis* axis );
38  virtual void takeAxis( TernaryAxis* axis );
39  virtual TernaryAxisList axes () const;
40 
41  protected:
42  const QPair< QPointF, QPointF > calculateDataBoundaries () const override = 0;
43 
44  };
45 
46 }
47 
48 #endif
The class for ternary axes.
Class only listed here to document inheritance of some KChart classes.
Stores information about painting diagrams.
AbstractDiagram defines the interface for diagram classes.
Base class for diagrams based on a ternary coordinate plane.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 12 2022 03:50:54 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.