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
17class Projector;
18
19class HIPSRenderer : public QObject
20{
22public:
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
30
31public slots:
32
33private:
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};
The Projector class is the primary class that serves as an interface to handle projections.
Definition projector.h:58
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:19:03 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.