summaryrefslogtreecommitdiff
path: root/include/mbgl/style/layers/circle_layer.hpp
blob: 5562126c2f74caac340135d3ddd3dccdf3688ca3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
// This file is generated. Do not edit.

#pragma once

#include <mbgl/style/layer.hpp>
#include <mbgl/style/filter.hpp>
#include <mbgl/style/property_value.hpp>

#include <mbgl/util/color.hpp>

namespace mbgl {
namespace style {

class CircleLayer : public Layer {
public:
    CircleLayer(const std::string& layerID, const std::string& sourceID);
    ~CircleLayer() final;

    // Source
    const std::string& getSourceID() const;
    const std::string& getSourceLayer() const;
    void setSourceLayer(const std::string& sourceLayer);

    void setFilter(const Filter&);
    const Filter& getFilter() const;

    // Paint properties

    static PropertyValue<float> getDefaultCircleRadius();
    PropertyValue<float> getCircleRadius(const optional<std::string>& klass = {}) const;
    void setCircleRadius(PropertyValue<float>, const optional<std::string>& klass = {});

    static PropertyValue<Color> getDefaultCircleColor();
    PropertyValue<Color> getCircleColor(const optional<std::string>& klass = {}) const;
    void setCircleColor(PropertyValue<Color>, const optional<std::string>& klass = {});

    static PropertyValue<float> getDefaultCircleBlur();
    PropertyValue<float> getCircleBlur(const optional<std::string>& klass = {}) const;
    void setCircleBlur(PropertyValue<float>, const optional<std::string>& klass = {});

    static PropertyValue<float> getDefaultCircleOpacity();
    PropertyValue<float> getCircleOpacity(const optional<std::string>& klass = {}) const;
    void setCircleOpacity(PropertyValue<float>, const optional<std::string>& klass = {});

    static PropertyValue<std::array<float, 2>> getDefaultCircleTranslate();
    PropertyValue<std::array<float, 2>> getCircleTranslate(const optional<std::string>& klass = {}) const;
    void setCircleTranslate(PropertyValue<std::array<float, 2>>, const optional<std::string>& klass = {});

    static PropertyValue<TranslateAnchorType> getDefaultCircleTranslateAnchor();
    PropertyValue<TranslateAnchorType> getCircleTranslateAnchor(const optional<std::string>& klass = {}) const;
    void setCircleTranslateAnchor(PropertyValue<TranslateAnchorType>, const optional<std::string>& klass = {});

    static PropertyValue<CirclePitchScaleType> getDefaultCirclePitchScale();
    PropertyValue<CirclePitchScaleType> getCirclePitchScale(const optional<std::string>& klass = {}) const;
    void setCirclePitchScale(PropertyValue<CirclePitchScaleType>, const optional<std::string>& klass = {});

    static PropertyValue<float> getDefaultCircleStrokeWidth();
    PropertyValue<float> getCircleStrokeWidth(const optional<std::string>& klass = {}) const;
    void setCircleStrokeWidth(PropertyValue<float>, const optional<std::string>& klass = {});

    static PropertyValue<Color> getDefaultCircleStrokeColor();
    PropertyValue<Color> getCircleStrokeColor(const optional<std::string>& klass = {}) const;
    void setCircleStrokeColor(PropertyValue<Color>, const optional<std::string>& klass = {});

    static PropertyValue<float> getDefaultCircleStrokeOpacity();
    PropertyValue<float> getCircleStrokeOpacity(const optional<std::string>& klass = {}) const;
    void setCircleStrokeOpacity(PropertyValue<float>, const optional<std::string>& klass = {});

    // Private implementation

    class Impl;
    Impl* const impl;

    CircleLayer(const Impl&);
    CircleLayer(const CircleLayer&) = delete;
};

template <>
inline bool Layer::is<CircleLayer>() const {
    return type == Type::Circle;
}

} // namespace style
} // namespace mbgl