summaryrefslogtreecommitdiff
path: root/include/mbgl/layer/line_layer.hpp
blob: aeec3632813516aba3de7dc99f3f87d11360b64a (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
85
86
87
// 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 <vector>

namespace mbgl {

class LineLayer : public Layer {
public:
    LineLayer(const std::string& layerID);
    ~LineLayer() final;

    // Source

    void setSource(const std::string& sourceID, const std::string& sourceLayer);
    const std::string& getSourceID() const;
    const std::string& getSourceLayer() const;

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

    // Layout properties

    PropertyValue<LineCapType> getLineCap() const;
    void setLineCap(PropertyValue<LineCapType>);

    PropertyValue<LineJoinType> getLineJoin() const;
    void setLineJoin(PropertyValue<LineJoinType>);

    PropertyValue<float> getLineMiterLimit() const;
    void setLineMiterLimit(PropertyValue<float>);

    PropertyValue<float> getLineRoundLimit() const;
    void setLineRoundLimit(PropertyValue<float>);

    // Paint properties

    PropertyValue<float> getLineOpacity() const;
    void setLineOpacity(PropertyValue<float>);

    PropertyValue<Color> getLineColor() const;
    void setLineColor(PropertyValue<Color>);

    PropertyValue<std::array<float, 2>> getLineTranslate() const;
    void setLineTranslate(PropertyValue<std::array<float, 2>>);

    PropertyValue<TranslateAnchorType> getLineTranslateAnchor() const;
    void setLineTranslateAnchor(PropertyValue<TranslateAnchorType>);

    PropertyValue<float> getLineWidth() const;
    void setLineWidth(PropertyValue<float>);

    PropertyValue<float> getLineGapWidth() const;
    void setLineGapWidth(PropertyValue<float>);

    PropertyValue<float> getLineOffset() const;
    void setLineOffset(PropertyValue<float>);

    PropertyValue<float> getLineBlur() const;
    void setLineBlur(PropertyValue<float>);

    PropertyValue<std::vector<float>> getLineDasharray() const;
    void setLineDasharray(PropertyValue<std::vector<float>>);

    PropertyValue<std::string> getLinePattern() const;
    void setLinePattern(PropertyValue<std::string>);

    // Private implementation

    class Impl;
    Impl* const impl;

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

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

} // namespace mbgl