Kstars

focusprofileplot.h
1/*
2 SPDX-FileCopyrightText: 2012 Jasem Mutlaq <mutlaqja@ikarustech.com>
3 SPDX-FileCopyrightText: 2021 Wolfgang Reissenberger <sterne-jaeger@openfuture.de>
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
14class FocusProfilePlot : public QCustomPlot
15{
16public:
17 FocusProfilePlot(QWidget *parent = nullptr);
18
19 void setFocusAuto(bool isAuto) {focusAuto = isAuto;}
20 void clear();
21
22public slots:
23 void drawProfilePlot(double currentHFR);
24
25private:
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.
The central class of the library. This is the QWidget which displays the plot and interacts with the ...
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.