marble
#include <StarsPlugin.h>

Public Slots | |
void | celestialEquatorGetColor () |
void | celestialPoleGetColor () |
void | constellationGetColor () |
void | constellationLabelGetColor () |
void | dsoLabelGetColor () |
void | eclipticGetColor () |
void | readSettings () |
void | writeSettings () |
![]() | |
QAction * | action () const |
void | restoreDefaultSettings () |
void | setEnabled (bool enabled) |
bool | setSetting (const QString &key, const QVariant &value) |
QVariant | setting (const QString &key) |
QStringList | settingKeys () |
void | setUserCheckable (bool isUserCheckable) |
void | setVisible (bool visible) |
Public Member Functions | |
StarsPlugin (const MarbleModel *marbleModel=0) | |
QString | assembledConstellation (const QString &name) |
QStringList | backendTypes () const |
QDialog * | configDialog () |
QString | copyrightYears () const |
QString | description () const |
QString | guiString () const |
QIcon | icon () const |
void | initialize () |
bool | isInitialized () const |
QString | name () const |
QString | nameId () const |
QList< PluginAuthor > | pluginAuthors () const |
bool | render (GeoPainter *painter, ViewportParams *viewport, const QString &renderPos, GeoSceneLayer *layer=0) |
QString | renderPolicy () const |
QStringList | renderPosition () const |
virtual RenderType | renderType () const |
void | setSettings (const QHash< QString, QVariant > &settings) |
QHash< QString, QVariant > | settings () const |
QString | version () const |
![]() | |
RenderPlugin (const MarbleModel *marbleModel) | |
virtual | ~RenderPlugin () |
virtual const QList < QActionGroup * > * | actionGroups () const |
bool | enabled () const |
bool | isUserCheckable () const |
const MarbleModel * | marbleModel () const |
virtual RenderPlugin * | newInstance (const MarbleModel *marbleModel) const =0 |
virtual QString | runtimeTrace () const |
virtual const QList < QActionGroup * > * | toolbarActionGroups () const |
bool | visible () const |
![]() | |
virtual | ~RenderPluginInterface () |
![]() | |
virtual | ~PluginInterface () |
virtual QString | aboutDataText () const |
![]() | |
virtual | ~LayerInterface () |
virtual qreal | zValue () const |
![]() | |
virtual | ~DialogConfigurationInterface () |
Protected Member Functions | |
bool | eventFilter (QObject *object, QEvent *e) |
![]() | |
bool | eventFilter (QObject *, QEvent *) |
Additional Inherited Members | |
![]() | |
enum | RenderType { UnknownRenderType, TopLevelRenderType, PanelRenderType, OnlineRenderType, ThemeRenderType } |
![]() | |
void | actionGroupsChanged () |
void | enabledChanged (bool enable) |
void | repaintNeeded (QRegion dirtyRegion=QRegion()) |
void | settingsChanged (QString nameId) |
void | userCheckableChanged (bool isUserCheckable) |
void | visibilityChanged (bool visible, const QString &nameId) |
![]() | |
QString | description |
bool | enabled |
QString | name |
QString | nameId |
bool | userCheckable |
QString | version |
bool | visible |
Detailed Description
Definition at line 120 of file StarsPlugin.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 37 of file StarsPlugin.cpp.
Member Function Documentation
QString Marble::StarsPlugin::assembledConstellation | ( | const QString & | name | ) |
Definition at line 581 of file StarsPlugin.cpp.
|
virtual |
Returns the name(s) of the backend that the plugin can render This method should return the name of the backend that the plugin can render.
The string has to be the same one that is given for the attribute in the layer element of the DGML file that backend is able to process. Examples to replace available default backends would be "vector" or "texture". To provide a completely new kind of functionality please choose your own unique string.
Implements Marble::RenderPluginInterface.
Definition at line 66 of file StarsPlugin.cpp.
|
slot |
Definition at line 730 of file StarsPlugin.cpp.
|
slot |
Definition at line 741 of file StarsPlugin.cpp.
|
virtual |
Returns a pointer to the configuration dialog of the plugin.
- Returns
- : Pointer to the configuration dialog, which must be non-zero.
Implements Marble::DialogConfigurationInterface.
Definition at line 138 of file StarsPlugin.cpp.
|
slot |
Definition at line 686 of file StarsPlugin.cpp.
|
slot |
Definition at line 697 of file StarsPlugin.cpp.
|
virtual |
Implements Marble::PluginInterface.
Definition at line 111 of file StarsPlugin.cpp.
|
virtual |
Returns a user description of the plugin.
Implements Marble::PluginInterface.
Definition at line 106 of file StarsPlugin.cpp.
|
slot |
Definition at line 708 of file StarsPlugin.cpp.
|
slot |
Definition at line 719 of file StarsPlugin.cpp.
|
protected |
Definition at line 1439 of file StarsPlugin.cpp.
|
virtual |
String that should be displayed in GUI.
Using a "&" you can suggest key shortcuts
Example: "&Stars"
- Returns
- string for gui usage
Implements Marble::RenderPlugin.
Definition at line 91 of file StarsPlugin.cpp.
|
virtual |
Returns an icon for the plugin.
Implements Marble::PluginInterface.
Definition at line 124 of file StarsPlugin.cpp.
|
virtual |
Implements Marble::RenderPluginInterface.
Definition at line 129 of file StarsPlugin.cpp.
|
virtual |
Implements Marble::RenderPluginInterface.
Definition at line 133 of file StarsPlugin.cpp.
|
virtual |
Returns the user-visible name of the plugin.
The user-visible name should be context free, i.e. the name should provide enough information as to what the plugin is about in the context of Marble.
Example: "Starry Sky Background", "OpenRouteService Routing"
Implements Marble::PluginInterface.
Definition at line 86 of file StarsPlugin.cpp.
|
virtual |
Returns the unique name of the plugin.
Examples: "starrysky", "openrouteservice"
Implements Marble::PluginInterface.
Definition at line 96 of file StarsPlugin.cpp.
|
virtual |
Implements Marble::PluginInterface.
Definition at line 116 of file StarsPlugin.cpp.
|
slot |
Definition at line 595 of file StarsPlugin.cpp.
|
virtual |
Renders the content provided by the layer on the viewport.
- Parameters
-
painter painter object allowing to paint on the map viewport metadata, such as current projection, screen dimension, etc. renderPos current render position layer deprecated, always zero (NULL)
- Returns
true
Returns whether the rendering has been successful
Implements Marble::LayerInterface.
Definition at line 996 of file StarsPlugin.cpp.
|
virtual |
Return how the plugin settings should be used.
FIXME: Document this Possible Values: "ALWAYS" – the plugin renders at the preferred position no matter what got specified in the DGML file. "SPECIFIED" – renders only in case it got specified in the DGML file. "SPECIFIED_ALWAYS" – In case it got specified in the DGML file render according to the specification otherwise choose the preferred position
Implements Marble::RenderPluginInterface.
Definition at line 71 of file StarsPlugin.cpp.
|
virtual |
Preferred level in the layer stack for the rendering.
Gives a preferred level in the existing layer stack where the render() method of this plugin should get executed. Possible Values: "NONE" "STARS" "BEHIND_TARGET" "SURFACE" "HOVERS_ABOVE_SURFACE" "ATMOSPHERE" "ORBIT" "ALWAYS_ON_TOP" "FLOAT_ITEM" "USER_TOOLS"
Implements Marble::LayerInterface.
Definition at line 76 of file StarsPlugin.cpp.
|
virtual |
Render type of the plugin.
Function for returning the type of plugin this is for. This affects where in the menu tree the action() is placed.
- See also
- RenderType
- Returns
- : The type of render plugin this is
Reimplemented from Marble::RenderPlugin.
Definition at line 81 of file StarsPlugin.cpp.
|
virtual |
Set the settings of the plugin.
Usually this is called at startup to restore saved settings.
- Parameters
-
new plugin's settings
- See also
- settings
Reimplemented from Marble::RenderPlugin.
Definition at line 202 of file StarsPlugin.cpp.
|
virtual |
Settings of the plugin.
Settings is the map (hash table) of plugin's settings This method is called to determine the current settings of the plugin for serialization, e.g. when closing the application.
- Returns
- plugin's settings
- See also
- setSettings
Reimplemented from Marble::RenderPlugin.
Definition at line 177 of file StarsPlugin.cpp.
|
virtual |
Implements Marble::PluginInterface.
Definition at line 101 of file StarsPlugin.cpp.
|
slot |
Definition at line 665 of file StarsPlugin.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:57 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.