Kstars

hipscomponent.h
1 /* HiPS : Hierarchical Progressive Surveys
2  HiPS is the hierarchical tiling mechanism which allows one to access, visualize and browse seamlessly image, catalogue and cube data.
3 
4  The KStars HiPS compoenent is used to load and overlay progress surverys from various online catalogs.
5 
6  SPDX-FileCopyrightText: 2017 Jasem Mutlaq <[email protected]>
7 
8  SPDX-License-Identifier: GPL-2.0-or-later
9 */
10 
11 #pragma once
12 
13 #include "hipscomponent.h"
14 #include "skycomponent.h"
15 
16 /**
17  * @class HIPSComponent
18  * Represents the HIPS progress survey overlay
19  * @author Jasem Mutlaq
20  * @version 1.0
21  */
23 {
24  public:
25  /** Constructor */
26  explicit HIPSComponent(SkyComposite *);
27 
28  virtual ~HIPSComponent() override = default;
29 
30  bool selected() override;
31  void draw(SkyPainter *skyp) override;
32 
33  private:
34  QElapsedTimer m_ElapsedTimer, m_RefreshTimer;
35  static constexpr uint32_t HIPS_REDRAW_PERIOD {5000};
36  static constexpr uint32_t HIPS_REFRESH_PERIOD {2000};
37  double m_LastZoom {1};
38  QString m_LastFocusedObjectName;
39 };
bool selected() override
Draws things on the sky, without regard to backend.
Definition: skypainter.h:37
HIPSComponent(SkyComposite *)
Constructor.
void draw(SkyPainter *skyp) override
Draw the object on the SkyMap skyp a pointer to the SkyPainter to use.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sun Aug 14 2022 04:13:56 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.