Kstars

guidetargetplot.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 
13 #include "qcustomplot.h"
14 #include "guideinterface.h"
15 
16 class GuideTargetPlot: public QCustomPlot
17 {
18  Q_OBJECT
19 
20 public:
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 
27 public 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 
36 protected:
37  // virtual void resizeEvent(QResizeEvent *resize) override;
38 
39 private slots:
40  void setAxisDelta(double ra, double de);
41 
42 
43 private:
44  QCPCurve *centralTarget { nullptr };
45  QCPCurve *yellowTarget { nullptr };
46  QCPCurve *redTarget { nullptr };
47  QCPCurve *concentricRings { nullptr };
48 
49  bool graphOnLatestPt = true;
50 
51 };
Q_OBJECTQ_OBJECT
A plottable representing a parametric curve in a plot.
Definition: qcustomplot.h:5580
KGuiItem clear()
Interface skeleton for implementation of different guiding applications and/or routines.
void resize(int w, int h)
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.