Delen via


CD2DGeometry Class

A wrapper for ID2D1Geometry.

class CD2DGeometry : public CD2DResource;

Members

Public Constructors

Name

Description

CD2DGeometry::CD2DGeometry

Constructs a CD2DGeometry object.

CD2DGeometry::~CD2DGeometry

The destructor. Called when a D2D geometry object is being destroyed.

Public Methods

Name

Description

CD2DGeometry::Attach

Attaches existing resource interface to the object

CD2DGeometry::CombineWithGeometry

Combines this geometry with the specified geometry and stores the result in an ID2D1SimplifiedGeometrySink.

CD2DGeometry::CompareWithGeometry

Describes the intersection between this geometry and the specified geometry. The comparison is performed using the specified flattening tolerance.

CD2DGeometry::ComputeArea

Computes the area of the geometry after it has been transformed by the specified matrix and flattened using the specified tolerance.

CD2DGeometry::ComputeLength

Calculates the length of the geometry as though each segment were unrolled into a line.

CD2DGeometry::ComputePointAtLength

Calculates the point and tangent vector at the specified distance along the geometry after it has been transformed by the specified matrix and flattened using the specified tolerance.

CD2DGeometry::Destroy

Destroys a CD2DGeometry object. (Overrides CD2DResource::Destroy.)

CD2DGeometry::Detach

Detaches resource interface from the object

CD2DGeometry::FillContainsPoint

Indicates whether the area filled by the geometry would contain the specified point given the specified flattening tolerance.

CD2DGeometry::Get

Returns ID2D1Geometry interface

CD2DGeometry::GetBounds

CD2DGeometry::GetWidenedBounds

Gets the bounds of the geometry after it has been widened by the specified stroke width and style and transformed by the specified matrix.

CD2DGeometry::IsValid

Checks resource validity (Overrides CD2DResource::IsValid.)

CD2DGeometry::Outline

Computes the outline of the geometry and writes the result to an ID2D1SimplifiedGeometrySink.

CD2DGeometry::Simplify

Creates a simplified version of the geometry that contains only lines and (optionally) cubic Bezier curves and writes the result to an ID2D1SimplifiedGeometrySink.

CD2DGeometry::StrokeContainsPoint

Determines whether the geometry's stroke contains the specified point given the specified stroke thickness, style, and transform.

CD2DGeometry::Tessellate

Creates a set of clockwise-wound triangles that cover the geometry after it has been transformed using the specified matrix and flattened using the specified tolerance.

CD2DGeometry::Widen

Widens the geometry by the specified stroke and writes the result to an ID2D1SimplifiedGeometrySink after it has been transformed by the specified matrix and flattened using the specified tolerance.

Public Operators

Name

Description

CD2DGeometry::operator ID2D1Geometry*

Returns ID2D1Geometry interface

Protected Data Members

Name

Description

CD2DGeometry::m_pGeometry

A pointer to an ID2D1Geometry.

Inheritance Hierarchy

CObject

CD2DResource

CD2DGeometry

Requirements

Header: afxrendertarget.h

See Also

Other Resources

MFC Classes