KChart

KChartTernaryLineDiagram.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 KCHARTTERNARYLINEDIAGRAM_H
10#define KCHARTTERNARYLINEDIAGRAM_H
11
12#include "KChartTernaryCoordinatePlane.h"
13#include "KChartAbstractTernaryDiagram.h"
14
15
16namespace KChart {
17
18 /**
19 * @brief A TernaryLineDiagram is a line diagram with a ternary coordinate plane
20 */
21 class KCHART_EXPORT TernaryLineDiagram : public AbstractTernaryDiagram
22 {
23 Q_OBJECT
24 Q_DISABLE_COPY( TernaryLineDiagram )
25 KCHART_DECLARE_DERIVED_DIAGRAM( TernaryLineDiagram, TernaryCoordinatePlane )
26
27 public:
28 explicit TernaryLineDiagram ( QWidget* parent = nullptr, TernaryCoordinatePlane* plane = nullptr );
29 ~TernaryLineDiagram() override;
30
31 void resize (const QSizeF &area) override;
32 void paint (PaintContext *paintContext) override;
33
34 protected:
35 const QPair< QPointF, QPointF > calculateDataBoundaries () const override;
36
37 };
38}
39
40#endif
Base class for diagrams based on a ternary coordinate plane.
Stores information about painting diagrams.
A TernaryLineDiagram is a line diagram with a ternary coordinate plane.
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.