Kstars

terraincomponent.cpp
1 /*
2  SPDX-FileCopyrightText: 2021 Hy Murveit <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #include "terraincomponent.h"
8 
9 #include "Options.h"
10 #include "skypainter.h"
11 #include "skymap.h"
12 
14 {
15 }
16 
18 {
19  return Options::showTerrain();
20 }
21 
23 {
24 #if !defined(KSTARS_LITE)
25  if (((SkyMap::IsSlewing() == false) || Options::terrainPanning()) && selected())
26  skyp->drawTerrain();
27 #else
28  Q_UNUSED(skyp);
29 #endif
30 }
virtual bool drawTerrain(bool useCache=false)=0
drawHips Draw the Terrain
bool selected() override
TerrainComponent(SkyComposite *)
Constructor.
Draws things on the sky, without regard to backend.
Definition: skypainter.h:37
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 Fri Aug 19 2022 03:57:55 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.