• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • sources
  • kde-4.14
  • kdeedu
  • marble
  • src
  • lib
  • marble
  • layers
GroundLayer.h
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2012 Cezar Mocan <mocancezar@gmail.com>
9 //
10 
11 #ifndef MARBLE_GROUNDLAYER_H
12 #define MARBLE_GROUNDLAYER_H
13 
14 #include "LayerInterface.h"
15 
16 #include <QColor>
17 
18 namespace Marble
19 {
20 
21 class GroundLayer : public LayerInterface
22 {
23  public:
24 
25  GroundLayer();
26 
27  ~GroundLayer();
28 
29  virtual QStringList renderPosition() const;
30 
31  virtual bool render( GeoPainter *painter, ViewportParams *viewport,
32  const QString& renderPos = "NONE", GeoSceneLayer * layer = 0 );
33 
34  virtual qreal zValue() const;
35 
36  void setColor( const QColor &color );
37 
38  QColor color() const;
39 
40  RenderState renderState() const;
41 
42  virtual QString runtimeTrace() const { return "GroundLayer"; }
43 
44  private:
45  QColor m_color; // Gets the color specified via DGML's <map bgcolor="">
46 
47 };
48 
49 }
50 
51 #endif
Marble::GroundLayer::color
QColor color() const
Definition: GroundLayer.cpp:61
Marble::GroundLayer::render
virtual bool render(GeoPainter *painter, ViewportParams *viewport, const QString &renderPos="NONE", GeoSceneLayer *layer=0)
Renders the content provided by the layer on the viewport.
Definition: GroundLayer.cpp:33
Marble::GeoPainter
A painter that allows to draw geometric primitives on the map.
Definition: GeoPainter.h:98
LayerInterface.h
Marble::LayerInterface
Definition: LayerInterface.h:26
Marble::GroundLayer::renderPosition
virtual QStringList renderPosition() const
Preferred level in the layer stack for the rendering.
Definition: GroundLayer.cpp:28
Marble::GroundLayer
Definition: GroundLayer.h:21
Marble::GeoSceneLayer
Layer of a GeoScene document.
Definition: GeoSceneLayer.h:43
Marble::GroundLayer::renderState
RenderState renderState() const
Definition: GroundLayer.cpp:66
QString
QColor
Marble::RenderState
Definition: RenderState.h:22
Marble::GroundLayer::runtimeTrace
virtual QString runtimeTrace() const
Returns a debug line for perfo/tracing issues.
Definition: GroundLayer.h:42
Marble::GroundLayer::zValue
virtual qreal zValue() const
Returns the z value of the layer (default: 0.0).
Definition: GroundLayer.cpp:51
QStringList
Marble::ViewportParams
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
Marble::GroundLayer::GroundLayer
GroundLayer()
Definition: GroundLayer.cpp:19
Marble::GroundLayer::setColor
void setColor(const QColor &color)
Definition: GroundLayer.cpp:56
Marble::GroundLayer::~GroundLayer
~GroundLayer()
Definition: GroundLayer.cpp:24
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal