| Flutter Impeller |

point_field_geometry.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef FLUTTER_IMPELLER_ENTITY_GEOMETRY_POINT_FIELD_GEOMETRY_H_
6 #define FLUTTER_IMPELLER_ENTITY_GEOMETRY_POINT_FIELD_GEOMETRY_H_
7
8 #include "impeller/entity/geometry/geometry.h"
9
10 namespace impeller {
11
12 class PointFieldGeometry final : public Geometry {
13 public:
14 PointFieldGeometry(std::vector<Point> points, Scalar radius, bool round);
15
16 ~PointFieldGeometry() = default;
17
18 private:
19 // |Geometry|
20 GeometryResult GetPositionBuffer(const ContentContext& renderer,
21 const Entity& entity,
22 RenderPass& pass) const override;
23
24 // |Geometry|
25 std::optional<Rect> GetCoverage(const Matrix& transform) const override;
26
27 std::vector<Point> points_;
28 Scalar radius_;
29 bool round_;
30
31 PointFieldGeometry(const PointFieldGeometry&) = delete;
32
33 PointFieldGeometry& operator=(const PointFieldGeometry&) = delete;
34 };
35
36 } // namespace impeller
37
38 #endif // FLUTTER_IMPELLER_ENTITY_GEOMETRY_POINT_FIELD_GEOMETRY_H_
impeller::Scalar
float Scalar
Definition: scalar.h:18
impeller::PointFieldGeometry
Definition: point_field_geometry.h:12
impeller::PointFieldGeometry::PointFieldGeometry
PointFieldGeometry(std::vector< Point > points, Scalar radius, bool round)
Definition: point_field_geometry.cc:13
impeller::Entity
Definition: entity.h:20
transform
Matrix transform
Definition: gaussian_blur_filter_contents.cc:231
geometry.h
impeller::GeometryResult
Definition: geometry.h:19
impeller::RenderPass
Render passes encode render commands directed as one specific render target into an underlying comman...
Definition: render_pass.h:33
impeller::PointFieldGeometry::~PointFieldGeometry
~PointFieldGeometry()=default
impeller::Geometry
Definition: geometry.h:48
impeller
Definition: aiks_blend_unittests.cc:18
impeller::ContentContext
Definition: content_context.h:366
impeller::Matrix
A 4x4 matrix using column-major storage.
Definition: matrix.h:37