summaryrefslogtreecommitdiff
path: root/src/mbgl/style/layers/fill_layer.cpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-04-26 16:39:56 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-06-02 14:51:39 -0700
commitc902f9098b331302aaa1baac77d1575db624a132 (patch)
tree211901cd04454aedbac40c469198438e46d7038c /src/mbgl/style/layers/fill_layer.cpp
parent18149cbcc27a926f280b08d8d0e09104b2147688 (diff)
downloadqtlocation-mapboxgl-c902f9098b331302aaa1baac77d1575db624a132.tar.gz
[core] Rationalize naming for style-related code
Diffstat (limited to 'src/mbgl/style/layers/fill_layer.cpp')
-rw-r--r--src/mbgl/style/layers/fill_layer.cpp113
1 files changed, 113 insertions, 0 deletions
diff --git a/src/mbgl/style/layers/fill_layer.cpp b/src/mbgl/style/layers/fill_layer.cpp
new file mode 100644
index 0000000000..1deaabb5ef
--- /dev/null
+++ b/src/mbgl/style/layers/fill_layer.cpp
@@ -0,0 +1,113 @@
+// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`.
+
+#include <mbgl/style/layers/fill_layer.hpp>
+#include <mbgl/style/layers/fill_layer_impl.hpp>
+
+namespace mbgl {
+namespace style {
+
+FillLayer::FillLayer(const std::string& layerID)
+ : Layer(Type::Fill, std::make_unique<Impl>())
+ , impl(static_cast<Impl*>(baseImpl.get())) {
+ impl->id = layerID;
+}
+
+FillLayer::FillLayer(const Impl& other)
+ : Layer(Type::Fill, std::make_unique<Impl>(other))
+ , impl(static_cast<Impl*>(baseImpl.get())) {
+}
+
+FillLayer::~FillLayer() = default;
+
+std::unique_ptr<Layer> FillLayer::Impl::clone() const {
+ return std::make_unique<FillLayer>(*this);
+}
+
+// Source
+
+void FillLayer::setSource(const std::string& sourceID, const std::string& sourceLayer) {
+ impl->source = sourceID;
+ impl->sourceLayer = sourceLayer;
+}
+
+const std::string& FillLayer::getSourceID() const {
+ return impl->source;
+}
+
+const std::string& FillLayer::getSourceLayer() const {
+ return impl->sourceLayer;
+}
+
+// Filter
+
+void FillLayer::setFilter(const Filter& filter) {
+ impl->filter = filter;
+}
+
+const Filter& FillLayer::getFilter() const {
+ return impl->filter;
+}
+
+// Layout properties
+
+
+// Paint properties
+
+PropertyValue<bool> FillLayer::getFillAntialias() const {
+ return impl->paint.fillAntialias.get();
+}
+
+void FillLayer::setFillAntialias(PropertyValue<bool> value) {
+ impl->paint.fillAntialias.set(value);
+}
+
+PropertyValue<float> FillLayer::getFillOpacity() const {
+ return impl->paint.fillOpacity.get();
+}
+
+void FillLayer::setFillOpacity(PropertyValue<float> value) {
+ impl->paint.fillOpacity.set(value);
+}
+
+PropertyValue<Color> FillLayer::getFillColor() const {
+ return impl->paint.fillColor.get();
+}
+
+void FillLayer::setFillColor(PropertyValue<Color> value) {
+ impl->paint.fillColor.set(value);
+}
+
+PropertyValue<Color> FillLayer::getFillOutlineColor() const {
+ return impl->paint.fillOutlineColor.get();
+}
+
+void FillLayer::setFillOutlineColor(PropertyValue<Color> value) {
+ impl->paint.fillOutlineColor.set(value);
+}
+
+PropertyValue<std::array<float, 2>> FillLayer::getFillTranslate() const {
+ return impl->paint.fillTranslate.get();
+}
+
+void FillLayer::setFillTranslate(PropertyValue<std::array<float, 2>> value) {
+ impl->paint.fillTranslate.set(value);
+}
+
+PropertyValue<TranslateAnchorType> FillLayer::getFillTranslateAnchor() const {
+ return impl->paint.fillTranslateAnchor.get();
+}
+
+void FillLayer::setFillTranslateAnchor(PropertyValue<TranslateAnchorType> value) {
+ impl->paint.fillTranslateAnchor.set(value);
+}
+
+PropertyValue<std::string> FillLayer::getFillPattern() const {
+ return impl->paint.fillPattern.get();
+}
+
+void FillLayer::setFillPattern(PropertyValue<std::string> value) {
+ impl->paint.fillPattern.set(value);
+}
+
+} // namespace style
+} // namespace mbgl