#include <geometry.h>
Public Member Functions | |
| virtual GeometryResult | GetPositionBuffer (const ContentContext &renderer, const Entity &entity, RenderPass &pass) const =0 |
| virtual GeometryResult | GetPositionUVBuffer (Rect texture_coverage, Matrix effect_transform, const ContentContext &renderer, const Entity &entity, RenderPass &pass) const =0 |
| virtual GeometryResult::Mode | GetResultMode () const |
| virtual GeometryVertexType | GetVertexType () const =0 |
| virtual std::optional< Rect > | GetCoverage (const Matrix &transform) const =0 |
| virtual bool | CoversArea (const Matrix &transform, const Rect &rect) const |
Determines if this geometry, transformed by the given transform, will completely cover all surface area of the given rect. More... | |
| virtual bool | IsAxisAlignedRect () const |
| virtual bool | CanApplyMaskFilter () const |
Static Public Member Functions | |
| static std::shared_ptr< Geometry > | MakeFillPath (const Path &path, std::optional< Rect > inner_rect=std::nullopt) |
| static std::shared_ptr< Geometry > | MakeStrokePath (const Path &path, Scalar stroke_width=0.0, Scalar miter_limit=4.0, Cap stroke_cap=Cap::kButt, Join stroke_join=Join::kMiter) |
| static std::shared_ptr< Geometry > | MakeCover () |
| static std::shared_ptr< Geometry > | MakeRect (const Rect &rect) |
| static std::shared_ptr< Geometry > | MakeOval (const Rect &rect) |
| static std::shared_ptr< Geometry > | MakeLine (const Point &p0, const Point &p1, Scalar width, Cap cap) |
| static std::shared_ptr< Geometry > | MakeCircle (const Point ¢er, Scalar radius) |
| static std::shared_ptr< Geometry > | MakeStrokedCircle (const Point ¢er, Scalar radius, Scalar stroke_width) |
| static std::shared_ptr< Geometry > | MakeRoundRect (const Rect &rect, const Size &radii) |
| static std::shared_ptr< Geometry > | MakePointField (std::vector< Point > points, Scalar radius, bool round) |
Static Protected Member Functions | |
| static GeometryResult | ComputePositionGeometry (const ContentContext &renderer, const Tessellator::VertexGenerator &generator, const Entity &entity, RenderPass &pass) |
| static GeometryResult | ComputePositionUVGeometry (const ContentContext &renderer, const Tessellator::VertexGenerator &generator, const Matrix &uv_transform, const Entity &entity, RenderPass &pass) |
Definition at line 83 of file geometry.h.
|
virtual |
Reimplemented in impeller::CoverGeometry.
Definition at line 243 of file geometry.cc.
|
staticprotected |
Definition at line 25 of file geometry.cc.
References impeller::HostBuffer::Emplace(), impeller::Tessellator::VertexGenerator::GenerateVertices(), impeller::Entity::GetShaderTransform(), impeller::ContentContext::GetTransientsBuffer(), impeller::Tessellator::VertexGenerator::GetTriangleType(), impeller::Tessellator::VertexGenerator::GetVertexCount(), impeller::kNone, and impeller::GeometryResult::type.
|
staticprotected |
Definition at line 57 of file geometry.cc.
References impeller::HostBuffer::Emplace(), impeller::Tessellator::VertexGenerator::GenerateVertices(), impeller::Entity::GetShaderTransform(), impeller::ContentContext::GetTransientsBuffer(), impeller::Tessellator::VertexGenerator::GetTriangleType(), impeller::Tessellator::VertexGenerator::GetVertexCount(), impeller::kNone, and impeller::GeometryResult::type.
Determines if this geometry, transformed by the given transform, will completely cover all surface area of the given rect.
This is a conservative estimate useful for certain optimizations.
true if the transformed geometry is guaranteed to cover the given rect. May return false in many undetected cases where the transformed geometry does in fact cover the rect. Reimplemented in impeller::CircleGeometry, impeller::FillPathGeometry, impeller::EllipseGeometry, impeller::RoundRectGeometry, impeller::LineGeometry, impeller::CoverGeometry, and impeller::RectGeometry.
Definition at line 235 of file geometry.cc.
|
pure virtual |
Implemented in impeller::VerticesGeometry, and impeller::RectGeometry.
|
pure virtual |
Implemented in impeller::VerticesGeometry, and impeller::RectGeometry.
|
pure virtual |
Implemented in impeller::RectGeometry, and impeller::VerticesGeometry.
Definition at line 163 of file geometry.cc.
|
virtual |
Definition at line 171 of file geometry.cc.
References impeller::GeometryResult::kNormal.
|
pure virtual |
Implemented in impeller::VerticesGeometry, and impeller::RectGeometry.
|
virtual |
Reimplemented in impeller::CircleGeometry, impeller::EllipseGeometry, impeller::RoundRectGeometry, impeller::LineGeometry, and impeller::RectGeometry.
Definition at line 239 of file geometry.cc.
|
static |
Definition at line 219 of file geometry.cc.
|
static |
Definition at line 200 of file geometry.cc.
Referenced by impeller::testing::TEST_P().
|
static |
Definition at line 175 of file geometry.cc.
Referenced by impeller::SolidColorContents::Make(), impeller::testing::TEST(), and impeller::testing::TEST_P().
|
static |
Definition at line 212 of file geometry.cc.
Referenced by impeller::testing::TEST().
Definition at line 208 of file geometry.cc.
|
static |
Definition at line 181 of file geometry.cc.
Referenced by impeller::testing::TEST_P().
Definition at line 204 of file geometry.cc.
Referenced by impeller::Paint::MaskBlurDescriptor::CreateMaskBlur(), impeller::PipelineBlend(), impeller::testing::TEST(), and impeller::testing::TEST_P().
|
static |
Definition at line 230 of file geometry.cc.
Referenced by impeller::testing::TEST().
|
static |
Definition at line 224 of file geometry.cc.
References stroke_width.
|
static |
Definition at line 187 of file geometry.cc.
References stroke_width.
Referenced by impeller::testing::TEST_P().