Changeset View
Changeset View
Standalone View
Standalone View
src/lib/marble/LayerInterface.h
Show All 28 Lines | |||||
29 | public: | 29 | public: | ||
30 | 30 | | |||
31 | /** Destructor */ | 31 | /** Destructor */ | ||
32 | virtual ~LayerInterface(); | 32 | virtual ~LayerInterface(); | ||
33 | 33 | | |||
34 | /** | 34 | /** | ||
35 | * @brief Preferred level in the layer stack for the rendering | 35 | * @brief Preferred level in the layer stack for the rendering | ||
36 | * | 36 | * | ||
37 | * Gives a preferred level in the existing layer stack where | 37 | * Gives the preferred levels in the existing layer stack where | ||
38 | * the render() method of this plugin should get executed. | 38 | * the render() method of this plugin should get executed. | ||
39 | *. | | |||
40 | * Possible Values: | | |||
41 | * "NONE" | | |||
42 | * "STARS" | | |||
43 | * "BEHIND_TARGET" | | |||
44 | * "SURFACE" | | |||
45 | * "HOVERS_ABOVE_SURFACE" | | |||
46 | * "ATMOSPHERE" | | |||
47 | * "ORBIT" | | |||
48 | * "ALWAYS_ON_TOP" | | |||
49 | * "FLOAT_ITEM" | | |||
50 | * "USER_TOOLS" | | |||
51 | */ | 39 | */ | ||
52 | virtual QStringList renderPosition() const = 0; | 40 | virtual RenderPositions renderPositions() const = 0; | ||
53 | 41 | | |||
54 | /** | 42 | /** | ||
55 | * @brief Renders the content provided by the layer on the viewport. | 43 | * @brief Renders the content provided by the layer on the viewport. | ||
56 | * @param painter painter object allowing to paint on the map | 44 | * @param painter painter object allowing to paint on the map | ||
57 | * @param viewport metadata, such as current projection, screen dimension, etc. | 45 | * @param viewport metadata, such as current projection, screen dimension, etc. | ||
58 | * @param renderPos current render position | 46 | * @param renderPos current render position | ||
59 | * @param layer deprecated, always zero (NULL) | 47 | * @param layer deprecated, always zero (NULL) | ||
60 | * @return @c true Returns whether the rendering has been successful | 48 | * @return @c true Returns whether the rendering has been successful | ||
61 | */ | 49 | */ | ||
62 | virtual bool render( GeoPainter *painter, ViewportParams *viewport, | 50 | virtual bool render(GeoPainter *painter, ViewportParams *viewport, | ||
63 | const QString &renderPos, GeoSceneLayer *layer ) = 0; | 51 | RenderPosition renderPosition, GeoSceneLayer *layer) = 0; | ||
64 | 52 | | |||
65 | /** | 53 | /** | ||
66 | * @brief Returns the z value of the layer (default: 0.0). If two layers are painted | 54 | * @brief Returns the z value of the layer (default: 0.0). If two layers are painted | ||
67 | * at the same render position, the one with the higher z value is painted on top. | 55 | * at the same render position, the one with the higher z value is painted on top. | ||
68 | * If both have the same z value, their paint order is undefined. | 56 | * If both have the same z value, their paint order is undefined. | ||
69 | */ | 57 | */ | ||
70 | virtual qreal zValue() const; | 58 | virtual qreal zValue() const; | ||
71 | 59 | | |||
Show All 11 Lines |