File indexing completed on 2025-01-05 03:59:17
0001 // SPDX-License-Identifier: LGPL-2.1-or-later 0002 // 0003 // SPDX-FileCopyrightText: 2012 Cezar Mocan <mocancezar@gmail.com> 0004 // 0005 0006 #ifndef MARBLE_GROUNDLAYER_H 0007 #define MARBLE_GROUNDLAYER_H 0008 0009 #include "LayerInterface.h" 0010 0011 #include <QColor> 0012 #include <QPainterPath> 0013 0014 namespace Marble 0015 { 0016 0017 class GroundLayer : public LayerInterface 0018 { 0019 public: 0020 0021 GroundLayer(); 0022 0023 ~GroundLayer() override; 0024 0025 QStringList renderPosition() const override; 0026 0027 bool render( GeoPainter *painter, ViewportParams *viewport, 0028 const QString& renderPos = QLatin1String("NONE"), 0029 GeoSceneLayer * layer = nullptr ) override; 0030 0031 qreal zValue() const override; 0032 0033 void setColor( const QColor &color ); 0034 0035 QColor color() const; 0036 0037 RenderState renderState() const override; 0038 0039 QString runtimeTrace() const override { return QStringLiteral("GroundLayer"); } 0040 0041 private: 0042 QColor m_color; // Gets the color specified via DGML's <map bgcolor=""> 0043 0044 }; 0045 0046 } 0047 0048 #endif