Skip to content

ISVGPathData

No description yet.

Unit: BVE.SVG2Intf

Methods

AddPathData

procedure AddPathData(const aPathData: ISVGPathData); overload;

procedure AddPathData(
  const aPathData: ISVGPathData;
  const aMatrix: TSVGMatrix); overload;

No description yet.

AddRectangle

procedure AddRectangle(
  const aRect: TSVGRect;
  const aXRadius, aYRadius: TSVGFloat;
  const aCorners: TSVGCorners;
  const aCornerType: TSVGCornerType = TSVGCornerType.ctRound);

No description yet.

ApplyMatrix

procedure ApplyMatrix(const aMatrix: TSVGMatrix);

No description yet.

Assign

procedure Assign(Source: TObject);

No description yet.

AssignTransform

procedure AssignTransform(Source: TObject; const aMatrix: TSVGMatrix);

No description yet.

CalcPointOnPath

procedure CalcPointOnPath(
  const aMatrix: TSVGMatrix;
  const aPos: TSVGFloat;
  var aPoint: TSVGPoint;
  var aTangent: TSVGPoint);

No description yet.

Clear

procedure Clear;

No description yet.

CreateCopy

function CreateCopy: ISVGPathData; overload;

No description yet.

CreateIterator

function CreateIterator: ISVGPathDataIterator;

No description yet.

GetBounds

function GetBounds: TSVGRect; overload;

function GetBounds(const aMatrix: TSVGMatrix): TSVGRect; overload;

No description yet.

GetContour

function GetContour(const aIndex: Integer): TSVGContour; overload;

function GetContour(
  const aIndex: Integer;
  const aMatrix: TSVGMatrix): TSVGContour; overload;

Subpath aIndex as a run of points, with its curves flattened to line segments, in the coordinates of the path or mapped through aMatrix. A closed subpath ends where it began, so a contour whose last point equals its first is closed.

Note

This is the same flattening the path measures and hit tests itself with, so a length summed over these contours agrees with PathLength, and it is what a toolpath, a die line or any other consumer that wants line segments rather than curves works from. The result is a copy: changing it does not change the path.

GetContourCount

function GetContourCount: Integer;

The number of contours the path flattens to: one per subpath.

GetCount

function GetCount: Cardinal;

No description yet.

GetFirstPoint

function GetFirstPoint: TSVGPoint;

No description yet.

GetIsClosed

function GetIsClosed: Boolean;

No description yet.

GetLastPoint

function GetLastPoint: TSVGPoint;

No description yet.

GetPathLength

function GetPathLength: TSVGFloat; overload;

function GetPathLength(const aMatrix: TSVGMatrix): TSVGFloat; overload;

No description yet.

GetSVGPathString

function GetSVGPathString: TSVGUnicodeString;

No description yet.

IsEmpty

function IsEmpty: Boolean;

No description yet.

IsRect

function IsRect(var aRect: TSVGRect): Boolean;

No description yet.

ParseSVGPathString

procedure ParseSVGPathString(const aPathString: TSVGUnicodeString);

No description yet.

PtInPath

function PtInPath(
  const aP: TSVGPoint;
  const aFillRule: TSVGFillRule): Integer;

No description yet.

PtInStroke

function PtInStroke(const aP: TSVGPoint; const aD: TSVGFloat): Boolean;

No description yet.

Properties

ContourCount

property ContourCount: Integer read GetContourCount;

No description yet.

Count

property Count: Cardinal read GetCount;

No description yet.

FirstPoint

property FirstPoint: TSVGPoint read GetFirstPoint;

No description yet.

IsClosed

property IsClosed: Boolean read GetIsClosed;

No description yet.

LastPoint

property LastPoint: TSVGPoint read GetLastPoint;

No description yet.

PathLength

property PathLength: TSVGFloat read GetPathLength;

No description yet.