KChart

KChartTernaryPointDiagram.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 KCHARTTERNARYPOINTDIAGRAM_H
10#define KCHARTTERNARYPOINTDIAGRAM_H
11
12#include "KChartTernaryCoordinatePlane.h"
13#include "KChartAbstractTernaryDiagram.h"
14
15namespace KChart {
16
17 /**
18 * @brief A TernaryPointDiagram is a point diagram within a ternary coordinate plane
19 */
20 class KCHART_EXPORT TernaryPointDiagram : public AbstractTernaryDiagram
21 {
22 Q_OBJECT
23 Q_DISABLE_COPY( TernaryPointDiagram )
24 KCHART_DECLARE_DERIVED_DIAGRAM( TernaryPointDiagram, TernaryCoordinatePlane )
25
26 public:
27 explicit TernaryPointDiagram ( QWidget* parent = nullptr, TernaryCoordinatePlane* plane = nullptr );
28 ~TernaryPointDiagram() override;
29
30 void resize (const QSizeF &area) override;
31 void paint (PaintContext *paintContext) override;
32
33 protected:
34 const QPair< QPointF, QPointF > calculateDataBoundaries () const override;
35 };
36
37}
38
39#endif
Base class for diagrams based on a ternary coordinate plane.
Stores information about painting diagrams.
A TernaryPointDiagram is a point diagram within a ternary coordinate plane.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:02:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.