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 <mutlaqja@ikarustech.com>
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
15class QPainter;
16class DefectMap;
17
18class DarkView : public FITSView
19{
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
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:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.