Kstars

focusprofileplot.h
1 /*
2  SPDX-FileCopyrightText: 2012 Jasem Mutlaq <[email protected]>
3  SPDX-FileCopyrightText: 2021 Wolfgang Reissenberger <[email protected]>
4 
5  SPDX-License-Identifier: GPL-2.0-or-later
6 */
7 
8 #pragma once
9 
10 #include <QObject>
11 #include <QWidget>
12 #include "qcustomplot.h"
13 
14 class FocusProfilePlot : public QCustomPlot
15 {
16 public:
17  FocusProfilePlot(QWidget *parent = nullptr);
18 
19  void setFocusAuto(bool isAuto) {focusAuto = isAuto;}
20  void clear();
21 
22 public slots:
23  void drawProfilePlot(double currentHFR);
24 
25 private:
26  bool focusAuto = true;
27  QCPGraph *currentGaus { nullptr };
28  QCPGraph *firstGaus { nullptr };
29  QCPGraph *lastGaus { nullptr };
30 
31  // Last gaussian fit values
32  QVector<double> lastGausIndexes;
33  QVector<double> lastGausFrequencies;
34 
35 };
A plottable representing a graph in a plot.
Definition: qcustomplot.h:5440
KGuiItem clear()
The central class of the library. This is the QWidget which displays the plot and interacts with the ...
Definition: qcustomplot.h:3735
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 19 2022 03:57:51 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.