Changeset View
Changeset View
Standalone View
Standalone View
docs/layermanagement.txt
Show First 20 Lines • Show All 103 Lines • ▼ Show 20 Line(s) | 103 | - The plugin-backend concept should allow CUSTOM BACKENDS created by | |||
---|---|---|---|---|---|
104 | third party developers. | 104 | third party developers. | ||
105 | 105 | | |||
106 | - Creating new geographical features on the map should happen using a | 106 | - Creating new geographical features on the map should happen using a | ||
107 | Qt-like API (which would include the QPainter API to draw in screen | 107 | Qt-like API (which would include the QPainter API to draw in screen | ||
108 | coordinates): | 108 | coordinates): | ||
109 | 109 | | |||
110 | Code snippet: | 110 | Code snippet: | ||
111 | 111 | | |||
112 | bool MarbleTestPlugin::render( GeoPainter *painter, ViewportParams *viewport, const QString& renderPos, GeoSceneLayer * layer ) | 112 | bool MarbleTestPlugin::render(GeoPainter *painter, ViewportParams *viewport, RenderPosition renderPos, GeoSceneLayer * layer) | ||
113 | { | 113 | { | ||
114 | painter->autoMapQuality(); | 114 | painter->autoMapQuality(); | ||
115 | painter->setPen( Qt::red ); | 115 | painter->setPen( Qt::red ); | ||
116 | 116 | | |||
117 | GeoDataCoordinates flensburg( 9.4, 54.8, 0.0, GeoDataCoordinates::Degree ); | 117 | GeoDataCoordinates flensburg( 9.4, 54.8, 0.0, GeoDataCoordinates::Degree ); | ||
118 | GeoDataCoordinates madrid( -3.7, 40.4, 0.0, GeoDataCoordinates::Degree ); | 118 | GeoDataCoordinates madrid( -3.7, 40.4, 0.0, GeoDataCoordinates::Degree ); | ||
119 | 119 | | |||
120 | painter->drawLine( flensburg, madrid ); | 120 | painter->drawLine( flensburg, madrid ); | ||
Show All 34 Lines |