File indexing completed on 2024-12-15 04:02:31

0001 /*
0002  * SPDX-FileCopyrightText: 2001-2015 Klaralvdalens Datakonsult AB. All rights reserved.
0003  *
0004  * This file is part of the KD Chart library.
0005  *
0006  * SPDX-License-Identifier: GPL-2.0-or-later
0007  */
0008 
0009 #ifndef KCHARTLEVEYJENNINGSDIAGRAM_P_H
0010 #define KCHARTLEVEYJENNINGSDIAGRAM_P_H
0011 
0012 //
0013 //  W A R N I N G
0014 //  -------------
0015 //
0016 // This file is not part of the KD Chart API.  It exists purely as an
0017 // implementation detail.  This header file may change from version to
0018 // version without notice, or even be removed.
0019 //
0020 // We mean it.
0021 //
0022 
0023 #include <QDateTime>
0024 
0025 #include "KChartLeveyJenningsDiagram.h"
0026 #include "KChartThreeDLineAttributes.h"
0027 #include "KChartLineDiagram_p.h"
0028 #include "KChartMath_p.h"
0029 
0030 QT_BEGIN_NAMESPACE
0031 class QSvgRenderer;
0032 QT_END_NAMESPACE
0033 
0034 namespace KChart {
0035 
0036     class PaintContext;
0037 
0038 /**
0039  * \internal
0040  */
0041     class Q_DECL_HIDDEN LeveyJenningsDiagram::Private : public LineDiagram::Private
0042     {
0043         friend class LeveyJenningsDiagram;
0044     public:
0045         Private();
0046         Private( const Private& rhs );
0047         ~Private() override;
0048 
0049         void setYAxisRange() const;
0050 
0051         Qt::Alignment lotChangedPosition;
0052         Qt::Alignment fluidicsPackChangedPosition;
0053         Qt::Alignment sensorChangedPosition;
0054 
0055         QVector< QDateTime > fluidicsPackChanges;
0056         QVector< QDateTime > sensorChanges;
0057 
0058         QPen scanLinePen;
0059 
0060         QMap< LeveyJenningsDiagram::Symbol, QString >  icons;
0061         QMap< LeveyJenningsDiagram::Symbol, QSvgRenderer* > iconRenderer;
0062 
0063         QPair< QDateTime, QDateTime > timeRange;
0064 
0065         float expectedMeanValue;
0066         float expectedStandardDeviation;
0067 
0068         mutable float calculatedMeanValue;
0069         mutable float calculatedStandardDeviation;
0070     };
0071 
0072     KCHART_IMPL_DERIVED_DIAGRAM( LeveyJenningsDiagram, LineDiagram, LeveyJenningsCoordinatePlane )
0073 }
0074 
0075 #endif /* KCHARTLINEDIAGRAM_P_H */