Interface to a path geometry builder. More...
#include <idompathgeometry.h>
Public Member Functions | |
virtual void | moveTo (const FPoint &point, bool absolute=true)=0 |
Move to the given user point. Throws an IEDLError exception on failure. | |
virtual void | lineTo (const FPoint &point, bool absolute=true, bool stroked=true)=0 |
Append a line segment to the current path. Throws an IEDLError exception on failure. | |
virtual void | curveTo (const FPoint &control0, const FPoint &control1, const FPoint &point, bool absolute=true, bool stroked=true)=0 |
Append a section of a cubic Bézier curve to the current path. Throws an IEDLError exception on failure. | |
virtual void | quadCurveTo (const FPoint &control, const FPoint &point, bool absolute=true, bool stroked=true)=0 |
Append a section of a quadratic Bézier curve to the current path. Throws an IEDLError exception on failure. | |
virtual void | arcTo (const FPoint &radius, double rotation, bool isLargeArc, IDOMArcSegment::eSweepDirection sweepDirection, const FPoint &point, bool absolute=true, bool stroked=true)=0 |
Append an elliptical arc segment to the current path. Throws an IEDLError exception on failure. | |
virtual void | close (bool stroked=true)=0 |
Close the subpath, if it is not already. Throws an IEDLError exception on failure. | |
virtual IDOMPathGeometryPtr | createGeometry (IEDLClassFactory *pFactory, IDOMPathGeometry::eFillRule fillRule, bool ignoreDegenerateSubpaths=false, const FMatrix &renderTransform=FMatrix()) const =0 |
Get the path as geometry, in user units according to the given CTM and fill rule. Throws an IEDLError exception on failure. | |
Public Member Functions inherited from IEDLObject | |
virtual const CClassID & | getClassID () const =0 |
Returns class ID of IEDLObject. | |
virtual bool | init (CClassParams *pData) |
The init() method is called to perform any post-construction initialization of an IEDLObject that has been created by the EDL class factory, before it is actually returned by the factory. | |
virtual bool | clone (IEDLObjectPtr &ptrObject, IEDLClassFactory *pFactory) |
Create a copy of EDLObject. | |
Public Member Functions inherited from IRCObject | |
virtual void | addRef () const =0 |
Increases the reference count of the actual object pointed to. This would take place during an assignment or copying. | |
virtual bool | decRef () const =0 |
Decreases the reference count of the actual object pointed to. When the reference count falls to Zero, it deletes the actual object pointed to. | |
virtual int32 | getRefCount () const =0 |
Retrieve the current reference count of the actual object pointed to. | |
Static Public Member Functions | |
static const CClassID & | classID () |
Retrieves class id of IDOMPathGeometryBuilder. | |
static EDL_API IDOMPathGeometryBuilderPtr | create (IEDLClassFactory *factory) |
Simplified creation function for IDOMPathGeometryBuilder. Throws an IEDLError exception on failure. | |
Additional Inherited Members | |
Protected Member Functions inherited from IRCObject | |
virtual | ~IRCObject () |
Virtual destructor. | |
Interface to a path geometry builder.
A path geometry builder can be used to build geometry using PostScript style path construction commands. Instances of this type use exceptions of IEDLError for error handling.
|
pure virtual |
Append an elliptical arc segment to the current path. Throws an IEDLError exception on failure.
radius | The x and y radius of the arc. |
rotation | The rotation angle. |
isLargeArc | Whether or not the large arc should be used. |
sweepDirection | The direction of the sweep - clockwise or counter clockwise - between the start and end points. |
point | The end point of the arc. |
absolute | Whether the points are specified in absolute coordinates. The default value is true. |
stroked | Whether the stroke for this segment of the path is drawn. The default value is true. |
|
inlinestatic |
Retrieves class id of IDOMPathGeometryBuilder.
|
pure virtual |
Close the subpath, if it is not already. Throws an IEDLError exception on failure.
stroked | Whether the stroke for this segment of the path is drawn. The default value is true. |
|
static |
Simplified creation function for IDOMPathGeometryBuilder. Throws an IEDLError exception on failure.
factory | The EDL class factory. |
|
pure virtual |
Get the path as geometry, in user units according to the given CTM and fill rule. Throws an IEDLError exception on failure.
fillRule | The fill rule. |
ignoreDegenerateSubpaths | Whether to generate ignore degenerate subpaths. The default value is false. |
renderTransform | The transform to apply to the geometry. |
|
pure virtual |
Append a section of a cubic Bézier curve to the current path. Throws an IEDLError exception on failure.
control0 | The first control point used to define the curve. |
control1 | The second control point used to define the curve. |
point | The new end point. |
absolute | Whether the points are specified in absolute coordinates. The default value is true. |
stroked | Whether the stroke for this segment of the path is drawn. The default value is true. |
|
pure virtual |
Append a line segment to the current path. Throws an IEDLError exception on failure.
point | The new end point. |
absolute | Whether the points are specified in absolute coordinates. The default value is true. |
stroked | Whether the stroke for this segment of the path is drawn. The default value is true. |
|
pure virtual |
Move to the given user point. Throws an IEDLError exception on failure.
point | The point to move to. |
absolute | Whether the point is specified in absolute coordinates. The default value is true. |
|
pure virtual |
Append a section of a quadratic Bézier curve to the current path. Throws an IEDLError exception on failure.
control | The control point used to define the curve. |
point | The new end point. |
absolute | Whether the points are specified in absolute coordinates. The default value is true. |
stroked | Whether the stroke for this segment of the path is drawn. The default value is true. |