CD2DGeometrySink Class

Visual Studio 2010 SP1 is required.

A wrapper for ID2D1GeometrySink.

class CD2DGeometrySink;

Members

Public Constructors

Name

Description

CD2DGeometrySink::CD2DGeometrySink

Constructs a CD2DGeometrySink object from CD2DPathGeometry object.

CD2DGeometrySink::~CD2DGeometrySink

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

Public Methods

Name

Description

CD2DGeometrySink::AddArc

Adds a single arc to the path geometry

CD2DGeometrySink::AddBezier

Creates a cubic Bezier curve between the current point and the specified end point.

CD2DGeometrySink::AddBeziers

Creates a sequence of cubic Bezier curves and adds them to the geometry sink.

CD2DGeometrySink::AddLine

Creates a line segment between the current point and the specified end point and adds it to the geometry sink.

CD2DGeometrySink::AddLines

Creates a sequence of lines using the specified points and adds them to the geometry sink.

CD2DGeometrySink::AddQuadraticBezier

Creates a quadratic Bezier curve between the current point and the specified end point.

CD2DGeometrySink::AddQuadraticBeziers

Adds a sequence of quadratic Bezier segments as an array in a single call.

CD2DGeometrySink::BeginFigure

Starts a new figure at the specified point.

CD2DGeometrySink::Close

Closes the geometry sink

CD2DGeometrySink::EndFigure

Ends the current figure; optionally, closes it.

CD2DGeometrySink::Get

Returns ID2D1GeometrySink interface

CD2DGeometrySink::IsValid

Checks geometry sink validity

CD2DGeometrySink::SetFillMode

Specifies the method used to determine which points are inside the geometry described by this geometry sink and which points are outside.

CD2DGeometrySink::SetSegmentFlags

Specifies stroke and join options to be applied to new segments added to the geometry sink.

Public Operators

Name

Description

CD2DGeometrySink::operator ID2D1GeometrySink*

Returns ID2D1GeometrySink interface

Protected Data Members

Name

Description

CD2DGeometrySink::m_pSink

A pointer to an ID2D1GeometrySink.

Inheritance Hierarchy

CD2DGeometrySink

Requirements

Header: afxrendertarget.h

See Also

Other Resources

MFC Classes