Kstars

terraincomponent.cpp
1/*
2 SPDX-FileCopyrightText: 2021 Hy Murveit <hy@murveit.com>
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
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
29#endif
30}
SkyComponent represents an object on the sky map.
SkyComposite is a kind of container class for SkyComponent objects.
Draws things on the sky, without regard to backend.
Definition skypainter.h:40
void draw(SkyPainter *skyp) override
Draw the object on the SkyMap skyp a pointer to the SkyPainter to use.
TerrainComponent(SkyComposite *)
Constructor.
bool selected() override
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:48:27 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.