FGX.Canvas.Types.TfgPath: различия между версиями

Материал из FGX Native Докуметации
Перейти к навигации Перейти к поиску
(summary)
(summary)
(Метка: замена)
Строка 7: Строка 7:
  
 
<p class="class-inheritance"><span class="type-border">[[System.Classes.TPersistent|TPersistent]]</span> -> <span class="type-border">[[FGX.Types.TfgPersistent|TfgPersistent]]</span> -> <span class="type-border">[[FGX.Canvas.Types.TfgPath|TfgPath]]</span></p>
 
<p class="class-inheritance"><span class="type-border">[[System.Classes.TPersistent|TPersistent]]</span> -> <span class="type-border">[[FGX.Types.TfgPersistent|TfgPersistent]]</span> -> <span class="type-border">[[FGX.Canvas.Types.TfgPath|TfgPath]]</span></p>
 
== Описание ==
 
 
<span style="color:gray">Описание отсутствует.</span>
 
 
== Конструкторы ==
 
 
{| class="wikitable sortable"
 
|-
 
| <syntaxhighlight lang="Delphi">constructor</syntaxhighlight> || <code>Create(AOwner: [[TPersistent]])</code>
 
<span style="color:gray">Описание отсутствует.</span>
 
|}
 
 
== Методы ==
 
 
{| class="wikitable sortable"
 
|-
 
| <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">MoveTo(const APoint: [[TPointF]]): [[FGX.Canvas.Types.TfgPath|TfgPath]]</code>
 
<p>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.</p>
 
|-
 
| <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">MoveTo(const AX: [[Single]]; const AY: [[Single]]): [[FGX.Canvas.Types.TfgPath|TfgPath]]</code>
 
<span style="color:gray">Описание отсутствует.</span>
 
|-
 
| <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">MoveToRel(const AVector: [[TPointF]]): [[FGX.Canvas.Types.TfgPath|TfgPath]]</code>
 
<p>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.</p>
 
|-
 
| <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">MoveToRel(const ADX: [[Single]]; const ADY: [[Single]]): [[FGX.Canvas.Types.TfgPath|TfgPath]]</code>
 
<span style="color:gray">Описание отсутствует.</span>
 
|-
 
| <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">LineTo(const APoint: [[TPointF]]): [[FGX.Canvas.Types.TfgPath|TfgPath]]</code>
 
<span style="color:gray">Описание отсутствует.</span>
 
|-
 
| <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">LineTo(const AX: [[Single]]; const AY: [[Single]]): [[FGX.Canvas.Types.TfgPath|TfgPath]]</code>
 
<span style="color:gray">Описание отсутствует.</span>
 
|-
 
| <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">LineToRel(const AVector: [[TPointF]]): [[FGX.Canvas.Types.TfgPath|TfgPath]]</code>
 
<span style="color:gray">Описание отсутствует.</span>
 
|-
 
| <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">LineToRel(const ADX: [[Single]]; const ADY: [[Single]]): [[FGX.Canvas.Types.TfgPath|TfgPath]]</code>
 
<span style="color:gray">Описание отсутствует.</span>
 
|-
 
| <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">HLineTo(const AX: [[Single]]): [[FGX.Canvas.Types.TfgPath|TfgPath]]</code>
 
<span style="color:gray">Описание отсутствует.</span>
 
|-
 
| <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">HLineToRel(const AX: [[Single]]): [[FGX.Canvas.Types.TfgPath|TfgPath]]</code>
 
<span style="color:gray">Описание отсутствует.</span>
 
|-
 
| <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">VLineTo(const AY: [[Single]]): [[FGX.Canvas.Types.TfgPath|TfgPath]]</code>
 
<span style="color:gray">Описание отсутствует.</span>
 
|-
 
| <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">VLineToRel(const AY: [[Single]]): [[FGX.Canvas.Types.TfgPath|TfgPath]]</code>
 
<span style="color:gray">Описание отсутствует.</span>
 
|-
 
| <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">AddCurve(const AControlPoint1: [[TPointF]]; const AControlPoint2: [[TPointF]]; const AEndPoint: [[TPointF]]): [[FGX.Canvas.Types.TfgPath|TfgPath]]</code>
 
<span style="color:gray">Описание отсутствует.</span>
 
|-
 
| <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">AddCurveRel(const AControlPoint1: [[TPointF]]; const AControlPoint2: [[TPointF]]; const AEndPoint: [[TPointF]]): [[FGX.Canvas.Types.TfgPath|TfgPath]]</code>
 
<span style="color:gray">Описание отсутствует.</span>
 
|-
 
| <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">AddSmoothCurve(const AControlPoint2: [[TPointF]]; const AEndPoint: [[TPointF]]): [[FGX.Canvas.Types.TfgPath|TfgPath]]</code>
 
<span style="color:gray">Описание отсутствует.</span>
 
|-
 
| <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">AddSmoothCurveRel(const AControlPoint2: [[TPointF]]; const AEndPoint: [[TPointF]]): [[FGX.Canvas.Types.TfgPath|TfgPath]]</code>
 
<span style="color:gray">Описание отсутствует.</span>
 
|-
 
| <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">AddQuadraticCurve(const AControlPoint1: [[TPointF]]; const AEndPoint: [[TPointF]]): [[FGX.Canvas.Types.TfgPath|TfgPath]]</code>
 
<p>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.</p>
 
|-
 
| <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">AddQuadraticCurveRel(const AControlPoint1: [[TPointF]]; const AEndPoint: [[TPointF]]): [[FGX.Canvas.Types.TfgPath|TfgPath]]</code>
 
<p>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.</p>
 
|-
 
| <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">AddSmoothQuadraticCurve(const AEndPoint: [[TPointF]]): [[FGX.Canvas.Types.TfgPath|TfgPath]]</code>
 
<p>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.</p>
 
|-
 
| <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">AddSmoothQuadraticCurveRel(const AEndPoint: [[TPointF]]): [[FGX.Canvas.Types.TfgPath|TfgPath]]</code>
 
<p>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.</p>
 
|-
 
| <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">AddArc(const ARect: [[TRectF]]; const AStartAngle: [[Single]]; const ASweepAngle: [[Single]]): [[FGX.Canvas.Types.TfgPath|TfgPath]]</code>
 
 
<p>Добавляет дугу эллипса, вписанного в область <i>ARect</i> . Начало дуги задается углом <i>AStartAngle</i> в градусах. Конец дуги задается дельтой <i>ASweepAngle</i> в градусах, которая прибавляется к <i>AStartAngle</i> .</p><div class="info"><i>ASweepAngle</i> должно быть больше 0.</div>
 
|-
 
| <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">AddPath(const APath: [[FGX.Canvas.Types.TfgPath|TfgPath]]): [[FGX.Canvas.Types.TfgPath|TfgPath]]</code>
 
<span style="color:gray">Описание отсутствует.</span>
 
|-
 
| <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">ClosePath(): [[FGX.Canvas.Types.TfgPath|TfgPath]]</code>
 
<span style="color:gray">Описание отсутствует.</span>
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">Clear()</code>
 
<span style="color:gray">Описание отсутствует.</span>
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">FitInto(const ANewBounds: [[TRectF]])</code>
 
<span style="color:gray">Описание отсутствует.</span>
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">Translate(const AOffset: [[TPointF]])</code>
 
<span style="color:gray">Описание отсутствует.</span>
 
|-
 
| <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">CalculateFrame(): [[TRectF]]</code>
 
<p>Вычисляет выпуклую оболочку расположения всего пути в локальных координатах пути.</p>
 
|-
 
| <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">FirstPoint(): [[TPointF]]</code>
 
<p>Возвращает первую точку в пути. Если ни одной точки нет, то вернет (0, 0).</p>
 
|-
 
| <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">LastPoint(): [[TPointF]]</code>
 
<p>Возвращает последнюю точку в пути. Если ни одной точки нет, то вернет (0, 0).</p>
 
|-
 
| <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">ToString(): [[string]]</code>
 
<span style="color:gray">Описание отсутствует.</span>
 
|}
 
 
== Свойства ==
 
 
{| class="wikitable sortable"
 
|-
 
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>Count: [[Integer]]</code>
 
<span style="color:gray">Описание отсутствует.</span>
 
|-
 
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>Points[AIndex]: [[TfgPathPoint|TfgPathPoint]]</code>
 
<span style="color:gray">Описание отсутствует.</span>
 
|}
 

Версия 17:59, 29 июня 2019