blob: bd66d8e3b19ed4cc9dab58aef0cdce4f00ae4d2c (
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
|
#pragma once
#include <mbgl/renderer/render_layer.hpp>
#include <mbgl/style/layers/fill_extrusion_layer.hpp>
#include <mbgl/style/layers/fill_extrusion_layer_properties.hpp>
namespace mbgl {
class RenderFillExtrusionLayer: public RenderLayer {
public:
RenderFillExtrusionLayer(const style::FillExtrusionLayer::Impl&);
~RenderFillExtrusionLayer() final = default;
std::unique_ptr<RenderLayer> clone() const override;
void cascade(const CascadeParameters&) override;
void evaluate(const PropertyEvaluationParameters&) override;
bool hasTransition() const override;
bool queryIntersectsFeature(
const GeometryCoordinates&,
const GeometryTileFeature&,
const float,
const float,
const float) const override;
std::unique_ptr<Bucket> createBucket(const BucketParameters&, const std::vector<const RenderLayer*>&) const override;
// Paint properties
style::FillExtrusionPaintProperties::Unevaluated unevaluated;
style::FillExtrusionPaintProperties::Evaluated evaluated;
const style::FillExtrusionLayer::Impl* const impl;
};
template <>
inline bool RenderLayer::is<RenderFillExtrusionLayer>() const {
return type == style::LayerType::FillExtrusion;
}
} // namespace mbgl
|