Marble

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

KDE's Doxygen guidelines are available online.