FGX.Canvas.Types.TfgPath

Материал из FGX Native Докуметации
Перейти к навигации Перейти к поиску

Delphi

TfgPath = class (TfgPersistent)

TPersistent -> TfgPersistent -> TfgPath

Описание

Описание отсутствует.

Конструкторы

constructor
Create(AOwner: TPersistent)

Описание отсутствует.

Методы

function
AddCommand(const ACommand: TfgPathCommand): TfgPath

Описание отсутствует.

function
MoveTo(const APoint: TPointF): TfgPath

Start a new sub-path at the given (x,y) coordinate. Absolute coordinates will follow. If a moveto is followed by multiple pairs of coordinates, the subsequent pairs are treated as implicit lineto commands. Hence, implicit lineto commands will be relative if the moveto is relative, and absolute if the moveto is absolute. If a relative moveto (m) appears as the first element of the path, then it is treated as a pair of absolute coordinates. In this case, subsequent pairs of coordinates are treated as relative even though the initial moveto is interpreted as an absolute moveto.

function
MoveTo(const AX: Single; const AY: Single): TfgPath

Описание отсутствует.

function
MoveToRel(const AVector: TPointF): TfgPath

Start a new sub-path at the given (x,y) coordinate. Relative coordinates will follow. If a moveto is followed by multiple pairs of coordinates, the subsequent pairs are treated as implicit lineto commands. Hence, implicit lineto commands will be relative if the moveto is relative, and absolute if the moveto is absolute. If a relative moveto (m) appears as the first element of the path, then it is treated as a pair of absolute coordinates. In this case, subsequent pairs of coordinates are treated as relative even though the initial moveto is interpreted as an absolute moveto.

function
MoveToRel(const ADX: Single; const ADY: Single): TfgPath

Описание отсутствует.

function
LineTo(const APoint: TPointF): TfgPath

Описание отсутствует.

function
LineTo(const AX: Single; const AY: Single): TfgPath

Описание отсутствует.

function
LineToRel(const AVector: TPointF): TfgPath

Описание отсутствует.

function
LineToRel(const ADX: Single; const ADY: Single): TfgPath

Описание отсутствует.

function
HLineTo(const AX: Single): TfgPath

Описание отсутствует.

function
HLineToRel(const AX: Single): TfgPath

Описание отсутствует.

function
VLineTo(const AY: Single): TfgPath

Описание отсутствует.

function
VLineToRel(const AY: Single): TfgPath

Описание отсутствует.

function
AddCurve(const AControlPoint1: TPointF; const AControlPoint2: TPointF; const AEndPoint: TPointF): TfgPath

Описание отсутствует.

function
AddCurveRel(const AControlPoint1: TPointF; const AControlPoint2: TPointF; const AEndPoint: TPointF): TfgPath

Описание отсутствует.

function
AddSmoothCurve(const AControlPoint2: TPointF; const AEndPoint: TPointF): TfgPath

Описание отсутствует.

function
AddSmoothCurveRel(const AControlPoint2: TPointF; const AEndPoint: TPointF): TfgPath

Описание отсутствует.

function
AddQuadraticCurve(const AControlPoint: TPointF; const AEndPoint: TPointF): TfgPath

Draws a quadratic Bézier curve from the current point to (x,y) using (x1,y1) as the control point. Absolute coordinates will follow. Multiple sets of coordinates may be specified to draw a polybézier. At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybézier.

function
AddQuadraticCurveRel(const AControlPoint: TPointF; const AEndPoint: TPointF): TfgPath

Draws a quadratic Bézier curve from the current point to (x,y) using (x1,y1) as the control point. Relative coordinates will follow. Multiple sets of coordinates may be specified to draw a polybézier. At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybézier.

function
AddSmoothQuadraticCurve(const AEndPoint: TPointF): TfgPath

Draws a quadratic Bézier curve from the current point to (x,y). The control point is assumed to be the reflection of the control point on the previous command relative to the current point. (If there is no previous command or if the previous command was not a Q, q, T or t, assume the control point is coincident with the current point.) Absolute coordinates will follow; At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybézier.

function
AddSmoothQuadraticCurveRel(const AEndPoint: TPointF): TfgPath

Draws a quadratic Bézier curve from the current point to (x,y). The control point is assumed to be the reflection of the control point on the previous command relative to the current point. (If there is no previous command or if the previous command was not a Q, q, T or t, assume the control point is coincident with the current point.) Relative coordinates will follow; At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybézier.

function
AddArc(const ARect: TRectF; const AStartAngle: Single; const ASweepAngle: Single): TfgPath

Добавляет дугу эллипса, вписанного в область ARect . Начало дуги задается углом AStartAngle в градусах. Конец дуги задается дельтой ASweepAngle в градусах, которая прибавляется к AStartAngle .

function
AddPath(const APath: TfgPath): TfgPath

Описание отсутствует.

function
ClosePath(): TfgPath

Описание отсутствует.

procedure
Clear()

Описание отсутствует.

procedure
FitInto(const ANewBounds: TRectF)

Описание отсутствует.

procedure
Translate(const AOffset: TPointF)

Описание отсутствует.

function
CalculateFrame(): TRectF

Вычисляет выпуклую оболочку расположения всего пути в локальных координатах пути.

function
FirstPoint(): TPointF

Возвращает первую точку в пути. Если ни одной точки нет, то вернет (0, 0).

function
LastPoint(): TPointF

Возвращает последнюю точку в пути. Если ни одной точки нет, то вернет (0, 0).

function
FirstCommand(): TfgPathCommand

Возвращает первую комманду в пути. Если ни одной команды нет, то вернет пустую команду.

function
LastCommand(): TfgPathCommand

Возвращает последнюю комманду в пути. Если ни одной команды нет, то вернет команду.

function
ToString(): string

Описание отсутствует.

function
GetEnumerator(): [[TEnumerator<FGX.Canvas.Types.TfgPathCommand>]]

Описание отсутствует.

Свойства

property
IsEmpty: Boolean

Описание отсутствует.

property
Count: Integer

Описание отсутствует.

property
Commands[AIndex]: TfgPathCommand

Описание отсутствует.