diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-06-27 18:01:28 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-06-27 18:01:28 +0200 |
commit | 881c0f14129038fa3dca762681426c695ed3e891 (patch) | |
tree | 5e55289a7615c7bcbe67c557a7251a0ce4531d7e /include/llmr/style | |
parent | 9761140deb30ba0c960e62a2ef72665c2ee68f41 (diff) | |
download | qtlocation-mapboxgl-881c0f14129038fa3dca762681426c695ed3e891.tar.gz |
more docs + remove StyleLayer::Ptr typedef
Diffstat (limited to 'include/llmr/style')
-rw-r--r-- | include/llmr/style/style_layer.hpp | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/include/llmr/style/style_layer.hpp b/include/llmr/style/style_layer.hpp index 889cd8648e..19490c9282 100644 --- a/include/llmr/style/style_layer.hpp +++ b/include/llmr/style/style_layer.hpp @@ -20,9 +20,6 @@ typedef std::vector<std::shared_ptr<StyleLayer>> StyleLayerGroup; class StyleLayer { public: - typedef std::shared_ptr<StyleLayer> Ptr; - -public: template <typename T> const T &getProperties() { if (style.is<T>()) { return style.get<T>(); @@ -32,11 +29,26 @@ public: } public: + // The name of this layer. std::string id; + + // Bucket information, telling the renderer how to generate the geometries + // for this layer (feature property filters, tessellation instructions, ...). std::shared_ptr<StyleBucket> bucket; + + // Contains all style classes that can be applied to this layer. std::map<ClassID, ClassProperties> styles; + + // Stores the evaluated, and cascaded styling information, specific to this + // layer's type. StyleProperties style; + + // Rasterization properties are used for prerendering the tile to a bitmap, + // which is then used as a raster image instead of rendering this layer + // directly in every frame. std::unique_ptr<RasterizeProperties> rasterize; + + // Child layer array (if this layer has child layers). std::shared_ptr<StyleLayerGroup> layers; }; |