Marble

GroundLayer.h
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2012 Cezar Mocan <[email protected]>
4 //
5 
6 #ifndef MARBLE_GROUNDLAYER_H
7 #define MARBLE_GROUNDLAYER_H
8 
9 #include "LayerInterface.h"
10 
11 #include <QColor>
12 #include <QPainterPath>
13 
14 namespace Marble
15 {
16 
17 class GroundLayer : public LayerInterface
18 {
19  public:
20 
21  GroundLayer();
22 
23  ~GroundLayer() override;
24 
25  QStringList renderPosition() const override;
26 
27  bool render( GeoPainter *painter, ViewportParams *viewport,
28  const QString& renderPos = QLatin1String("NONE"),
29  GeoSceneLayer * layer = nullptr ) override;
30 
31  qreal zValue() const override;
32 
33  void setColor( const QColor &color );
34 
35  QColor color() const;
36 
37  RenderState renderState() const override;
38 
39  QString runtimeTrace() const override { return QStringLiteral("GroundLayer"); }
40 
41  private:
42  QColor m_color; // Gets the color specified via DGML's <map bgcolor="">
43 
44 };
45 
46 }
47 
48 #endif
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Oct 2 2023 03:52:08 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.