Kstars

darkview.h
1 /* Ekos Dark View
2  Child of FTISView with few additions necessary for Alignment functions
3 
4  SPDX-FileCopyrightText: 2021 Jasem Mutlaq <[email protected]>
5 
6  SPDX-License-Identifier: GPL-2.0-or-later
7 */
8 
9 #pragma once
10 
11 #include "fitsviewer/fitsview.h"
12 
13 #include <QVector3D>
14 
15 class QPainter;
16 class DefectMap;
17 
18 class DarkView : public FITSView
19 {
20  Q_OBJECT
21 
22  public:
23  explicit DarkView(QWidget *parent = nullptr, FITSMode mode = FITS_NORMAL, FITSScale filter = FITS_NONE);
24 
25  void drawOverlay(QPainter *, double scale) override;
26 
27  // Resets the marker and lines, celestial pole point and raAxis.
28  void reset();
29  void setDefectMap(const QSharedPointer<DefectMap> &defect);
30  void setDefectMapEnabled(bool enabled);
31 
32  protected:
33  void drawBadPixels(QPainter * painter, double scale);
34 
35  private:
36  QSharedPointer<DefectMap> m_CurrentDefectMap;
37  bool m_DefectMapEnabled {false};
38 
39 };
Q_OBJECTQ_OBJECT
KGuiItem reset()
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 12 2022 04:00:53 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.