summaryrefslogtreecommitdiff
path: root/src/mbgl/style/layers/circle_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/circle_layer.cpp
parent18149cbcc27a926f280b08d8d0e09104b2147688 (diff)
downloadqtlocation-mapboxgl-c902f9098b331302aaa1baac77d1575db624a132.tar.gz
[core] Rationalize naming for style-related code
Diffstat (limited to 'src/mbgl/style/layers/circle_layer.cpp')
-rw-r--r--src/mbgl/style/layers/circle_layer.cpp105
1 files changed, 105 insertions, 0 deletions
diff --git a/src/mbgl/style/layers/circle_layer.cpp b/src/mbgl/style/layers/circle_layer.cpp
new file mode 100644
index 0000000000..bdfbf629e6
--- /dev/null
+++ b/src/mbgl/style/layers/circle_layer.cpp
@@ -0,0 +1,105 @@
+// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`.
+
+#include <mbgl/style/layers/circle_layer.hpp>
+#include <mbgl/style/layers/circle_layer_impl.hpp>
+
+namespace mbgl {
+namespace style {
+
+CircleLayer::CircleLayer(const std::string& layerID)
+ : Layer(Type::Circle, std::make_unique<Impl>())
+ , impl(static_cast<Impl*>(baseImpl.get())) {
+ impl->id = layerID;
+}
+
+CircleLayer::CircleLayer(const Impl& other)
+ : Layer(Type::Circle, std::make_unique<Impl>(other))
+ , impl(static_cast<Impl*>(baseImpl.get())) {
+}
+
+CircleLayer::~CircleLayer() = default;
+
+std::unique_ptr<Layer> CircleLayer::Impl::clone() const {
+ return std::make_unique<CircleLayer>(*this);
+}
+
+// Source
+
+void CircleLayer::setSource(const std::string& sourceID, const std::string& sourceLayer) {
+ impl->source = sourceID;
+ impl->sourceLayer = sourceLayer;
+}
+
+const std::string& CircleLayer::getSourceID() const {
+ return impl->source;
+}
+
+const std::string& CircleLayer::getSourceLayer() const {
+ return impl->sourceLayer;
+}
+
+// Filter
+
+void CircleLayer::setFilter(const Filter& filter) {
+ impl->filter = filter;
+}
+
+const Filter& CircleLayer::getFilter() const {
+ return impl->filter;
+}
+
+// Layout properties
+
+
+// Paint properties
+
+PropertyValue<float> CircleLayer::getCircleRadius() const {
+ return impl->paint.circleRadius.get();
+}
+
+void CircleLayer::setCircleRadius(PropertyValue<float> value) {
+ impl->paint.circleRadius.set(value);
+}
+
+PropertyValue<Color> CircleLayer::getCircleColor() const {
+ return impl->paint.circleColor.get();
+}
+
+void CircleLayer::setCircleColor(PropertyValue<Color> value) {
+ impl->paint.circleColor.set(value);
+}
+
+PropertyValue<float> CircleLayer::getCircleBlur() const {
+ return impl->paint.circleBlur.get();
+}
+
+void CircleLayer::setCircleBlur(PropertyValue<float> value) {
+ impl->paint.circleBlur.set(value);
+}
+
+PropertyValue<float> CircleLayer::getCircleOpacity() const {
+ return impl->paint.circleOpacity.get();
+}
+
+void CircleLayer::setCircleOpacity(PropertyValue<float> value) {
+ impl->paint.circleOpacity.set(value);
+}
+
+PropertyValue<std::array<float, 2>> CircleLayer::getCircleTranslate() const {
+ return impl->paint.circleTranslate.get();
+}
+
+void CircleLayer::setCircleTranslate(PropertyValue<std::array<float, 2>> value) {
+ impl->paint.circleTranslate.set(value);
+}
+
+PropertyValue<TranslateAnchorType> CircleLayer::getCircleTranslateAnchor() const {
+ return impl->paint.circleTranslateAnchor.get();
+}
+
+void CircleLayer::setCircleTranslateAnchor(PropertyValue<TranslateAnchorType> value) {
+ impl->paint.circleTranslateAnchor.set(value);
+}
+
+} // namespace style
+} // namespace mbgl