File indexing completed on 2024-07-14 07:17:21

0001 /*  HiPS : Hierarchical Progressive Surveys
0002     HiPS is the hierarchical tiling mechanism which allows one to access, visualize and browse seamlessly image, catalogue and cube data.
0003 
0004     The KStars HiPS compoenent is used to load and overlay progress surverys from various online catalogs.
0005 
0006     SPDX-FileCopyrightText: 2017 Jasem Mutlaq <mutlaqja@ikarustech.com>
0007 
0008     SPDX-License-Identifier: GPL-2.0-or-later
0009 */
0010 
0011 #pragma once
0012 
0013 #include "skycomponent.h"
0014 #include "projections/projector.h"
0015 
0016 /**
0017  * @class HIPSComponent
0018  * Represents the HIPS progress survey overlay
0019  * @author Jasem Mutlaq
0020  * @version 1.0
0021  */
0022 class HIPSComponent : public SkyComponent
0023 {
0024     public:
0025         /** Constructor */
0026         explicit HIPSComponent(SkyComposite *);
0027 
0028         virtual ~HIPSComponent() override = default;
0029 
0030         bool selected() override;
0031         void draw(SkyPainter *skyp) override;
0032 
0033     private:
0034         QElapsedTimer m_ElapsedTimer, m_RefreshTimer;
0035         static constexpr uint32_t HIPS_REDRAW_PERIOD {5000};
0036         static constexpr uint32_t HIPS_REFRESH_PERIOD {2000};
0037         ViewParams m_previousViewParams;
0038         QString m_LastFocusedObjectName;
0039 };