Changeset View
Changeset View
Standalone View
Standalone View
src/plugins/render/test/TestPlugin.cpp
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | 42 | { | |||
---|---|---|---|---|---|
43 | return QStringList( "test" ); | 43 | return QStringList( "test" ); | ||
44 | } | 44 | } | ||
45 | 45 | | |||
46 | QString TestPlugin::renderPolicy() const | 46 | QString TestPlugin::renderPolicy() const | ||
47 | { | 47 | { | ||
48 | return QString( "ALWAYS" ); | 48 | return QString( "ALWAYS" ); | ||
49 | } | 49 | } | ||
50 | 50 | | |||
51 | QStringList TestPlugin::renderPosition() const | 51 | RenderPositions TestPlugin::renderPositions() const | ||
52 | { | 52 | { | ||
53 | return QStringList( "ALWAYS_ON_TOP" ); | 53 | return AlwaysOnTopRenderPosition; | ||
54 | } | 54 | } | ||
55 | 55 | | |||
56 | QString TestPlugin::name() const | 56 | QString TestPlugin::name() const | ||
57 | { | 57 | { | ||
58 | return tr( "Test Plugin" ); | 58 | return tr( "Test Plugin" ); | ||
59 | } | 59 | } | ||
60 | 60 | | |||
61 | QString TestPlugin::guiString() const | 61 | QString TestPlugin::guiString() const | ||
Show All 37 Lines | |||||
99 | { | 99 | { | ||
100 | } | 100 | } | ||
101 | 101 | | |||
102 | bool TestPlugin::isInitialized () const | 102 | bool TestPlugin::isInitialized () const | ||
103 | { | 103 | { | ||
104 | return true; | 104 | return true; | ||
105 | } | 105 | } | ||
106 | 106 | | |||
107 | bool TestPlugin::render( GeoPainter *painter, ViewportParams *viewport, const QString& renderPos, GeoSceneLayer * layer ) | 107 | bool TestPlugin::render(GeoPainter *painter, ViewportParams *viewport, | ||
108 | RenderPosition renderPos, GeoSceneLayer *layer) | ||||
108 | { | 109 | { | ||
109 | Q_UNUSED(viewport); | 110 | Q_UNUSED(viewport); | ||
110 | Q_UNUSED(renderPos); | 111 | Q_UNUSED(renderPos); | ||
111 | Q_UNUSED(layer); | 112 | Q_UNUSED(layer); | ||
112 | 113 | | |||
113 | // Example: draw a straight line | 114 | // Example: draw a straight line | ||
114 | 115 | | |||
115 | GeoDataCoordinates northpole1( 0.0, 90.0, 0.0, GeoDataCoordinates::Degree ); | 116 | GeoDataCoordinates northpole1( 0.0, 90.0, 0.0, GeoDataCoordinates::Degree ); | ||
▲ Show 20 Lines • Show All 186 Lines • Show Last 20 Lines |