• 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
  • plugins
  • render
  • sun
SunPlugin.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 2008 Torsten Rahn <tackat@kde.org>
9 // Copyright 2011 Bernhard Beschow <bbeschow@cs.tu-berlin.de>
10 //
11 
12 #ifndef MARBLESUNPLUGIN_H
13 #define MARBLESUNPLUGIN_H
14 
15 #include "RenderPlugin.h"
16 
17 #include <QPixmap>
18 
19 namespace Marble
20 {
21 
27 class SunPlugin : public RenderPlugin
28 {
29  Q_OBJECT
30  Q_PLUGIN_METADATA( IID "org.kde.edu.marble.SunPlugin" )
31  Q_INTERFACES( Marble::RenderPluginInterface )
32  MARBLE_PLUGIN( SunPlugin )
33  public:
34  SunPlugin();
35 
36  explicit SunPlugin( const MarbleModel *marbleModel );
37 
38  QStringList backendTypes() const;
39 
40  QString renderPolicy() const;
41 
42  QStringList renderPosition() const;
43 
44  QString name() const;
45 
46  QString guiString() const;
47 
48  QString nameId() const;
49 
50  QString version() const;
51 
52  QString description() const;
53 
54  QString copyrightYears() const;
55 
56  QList<PluginAuthor> pluginAuthors() const;
57 
58  QIcon icon () const;
59 
60  void initialize ();
61 
62  bool isInitialized () const;
63 
64  bool render( GeoPainter *painter, ViewportParams *viewport, const QString& renderPos, GeoSceneLayer * layer = 0 );
65 
66 private:
67  QPixmap m_pixmap;
68 };
69 
70 }
71 
72 #endif // MARBLESUNPLUGIN_H
Marble::RenderPluginInterface
The class that specifies the Marble layer interface of a plugin.
Definition: RenderPluginInterface.h:30
Marble::SunPlugin::renderPosition
QStringList renderPosition() const
Preferred level in the layer stack for the rendering.
Definition: SunPlugin.cpp:44
Marble::SunPlugin::version
QString version() const
Definition: SunPlugin.cpp:65
Marble::GeoPainter
A painter that allows to draw geometric primitives on the map.
Definition: GeoPainter.h:98
Marble::SunPlugin::guiString
QString guiString() const
String that should be displayed in GUI.
Definition: SunPlugin.cpp:55
Marble::SunPlugin::backendTypes
QStringList backendTypes() const
Returns the name(s) of the backend that the plugin can render This method should return the name of t...
Definition: SunPlugin.cpp:34
Marble::SunPlugin::copyrightYears
QString copyrightYears() const
Definition: SunPlugin.cpp:75
Marble::SunPlugin::nameId
QString nameId() const
Returns the unique name of the plugin.
Definition: SunPlugin.cpp:60
Marble::SunPlugin::description
QString description() const
Returns a user description of the plugin.
Definition: SunPlugin.cpp:70
Marble::GeoSceneLayer
Layer of a GeoScene document.
Definition: GeoSceneLayer.h:43
Marble::SunPlugin::isInitialized
bool isInitialized() const
Definition: SunPlugin.cpp:99
Marble::SunPlugin
The class that specifies the Marble layer interface of a plugin.
Definition: SunPlugin.h:27
Marble::SunPlugin::icon
QIcon icon() const
Returns an icon for the plugin.
Definition: SunPlugin.cpp:88
Marble::SunPlugin::name
QString name() const
Returns the user-visible name of the plugin.
Definition: SunPlugin.cpp:50
QString
QList
QStringList
Marble::ViewportParams
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
QPixmap
Marble::SunPlugin::renderPolicy
QString renderPolicy() const
Return how the plugin settings should be used.
Definition: SunPlugin.cpp:39
Marble::SunPlugin::pluginAuthors
QList< PluginAuthor > pluginAuthors() const
Definition: SunPlugin.cpp:80
Marble::SunPlugin::SunPlugin
SunPlugin()
Definition: SunPlugin.cpp:23
Marble::MarbleModel
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:97
Marble::SunPlugin::render
bool render(GeoPainter *painter, ViewportParams *viewport, const QString &renderPos, GeoSceneLayer *layer=0)
Renders the content provided by the layer on the viewport.
Definition: SunPlugin.cpp:104
Marble::SunPlugin::initialize
void initialize()
Definition: SunPlugin.cpp:94
RenderPlugin.h
Marble::RenderPlugin::marbleModel
const MarbleModel * marbleModel() const
Access to the MarbleModel.
Definition: RenderPlugin.cpp:83
Marble::RenderPlugin
The abstract class that creates a renderable item.
Definition: RenderPlugin.h:43
QIcon
MARBLE_PLUGIN
#define MARBLE_PLUGIN(T)
Definition: RenderPlugin.h:340
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:42 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