Kstars

guidetargetplot.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
13#include "qcustomplot.h"
14#include "guideinterface.h"
15
16class GuideTargetPlot: public QCustomPlot
17{
19
20public:
21 GuideTargetPlot(QWidget *parent = nullptr);
22 void showPoint(double ra, double de);
23 void setLatestGuidePoint(bool isChecked) {graphOnLatestPt = isChecked;}
24 void connectGuider(Ekos::GuideInterface *guider);
25 void resize(int w, int h);
26
27public slots:
28 void handleVerticalPlotSizeChange();
29 void handleHorizontalPlotSizeChange();
30
31 void buildTarget(double accuracyRadius);
32 void setupNSEWLabels();
33 void autoScaleGraphs(double accuracyRadius);
34 void clear();
35
36protected:
37 // virtual void resizeEvent(QResizeEvent *resize) override;
38
39private slots:
40 void setAxisDelta(double ra, double de);
41
42
43private:
44 QCPCurve *centralTarget { nullptr };
45 QCPCurve *yellowTarget { nullptr };
46 QCPCurve *redTarget { nullptr };
47 QCPCurve *concentricRings { nullptr };
48
49 bool graphOnLatestPt = true;
50
51};
Interface skeleton for implementation of different guiding applications and/or routines.
A plottable representing a parametric curve in a plot.
The central class of the library. This is the QWidget which displays the plot and interacts with the ...
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:40 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.