Kstars

hipsrenderer.h
1 /*
2  SPDX-FileCopyrightText: 2015-2017 Pavel Mraz
3 
4  SPDX-FileCopyrightText: 2017 Jasem Mutlaq
5 
6  SPDX-License-Identifier: GPL-2.0-or-later
7 */
8 
9 #pragma once
10 
11 #include "healpix.h"
12 #include "hipsmanager.h"
13 #include "scanrender.h"
14 
15 #include <memory>
16 
17 class Projector;
18 
19 class HIPSRenderer : public QObject
20 {
21  Q_OBJECT
22 public:
23  explicit HIPSRenderer();
24  //void render(mapView_t *view, CSkPainter *painter, QImage *pDest);
25  bool render(uint16_t w, uint16_t h, QImage *hipsImage, const Projector *m_proj);
26  void renderRec(bool allsky, int level, int pix, QImage *pDest);
27  bool renderPix(bool allsky, int level, int pix, QImage *pDest);
28 
29 signals:
30 
31 public slots:
32 
33 private:
34  int m_blocks { 0 };
35  int m_rendered { 0 };
36  int m_size { 0 };
37  QSet<int> m_renderedMap;
38  std::unique_ptr<HEALPix> m_HEALpix;
39  std::unique_ptr<ScanRender> m_scanRender;
40  const Projector *m_projector;
41  QColor gridColor;
42 };
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Mon Aug 8 2022 04:13:21 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.