Class TBGRACustomPathCursor
Unit
BGRABitmapTypes
Declaration
type TBGRACustomPathCursor = class(TObject)
Description
Class that contains a cursor to browse an existing path
Hierarchy
- TObject
- TBGRACustomPathCursor
Overview
Methods
Properties
Description
Methods
 |
function MoveBackward(ADistance: single; ACanJump: boolean = true): single; virtual; abstract; |
Go backward, decreasing the value of Position. If ADistance is negative, then it goes forward instead. ACanJump specifies if the cursor can jump from one shape to another without a line or an arc. Otherwise, the cursor is stuck, and the return value is less than the value ADistance provided. If all the way has been travelled, the return value is equal to ADistance
|
 |
function MoveForward(ADistance: single; ACanJump: boolean = true): single; virtual; abstract; |
Go forward in the path, increasing the value of Position. If ADistance is negative, then it goes backward instead. ACanJump specifies if the cursor can jump from one shape to another without a line or an arc. Otherwise, the cursor is stuck, and the return value is less than the value ADistance provided. If all the way has been travelled, the return value is equal to ADistance
|
 |
function GetArcPos: single; virtual; abstract; |
Retrieves the current position from the start
|
 |
function GetBounds: TRectF; virtual; abstract; |
Compute the bounds of the path
|
 |
function GetCurrentCoord: TPointF; virtual; abstract; |
Returns the current coordinate in the path
|
 |
function GetCurrentTangent: TPointF; virtual; abstract; |
Returns the tangent vector to the current position
|
 |
function GetLoopClosedShapes: boolean; virtual; abstract; |
Retrieves if the cursor loops when there is a closed shape
|
 |
function GetLoopPath: boolean; virtual; abstract; |
Retrieves if the cursor loops at the end of the whole path
|
 |
function GetPathLength: single; virtual; abstract; |
Retreive the full arc length of the path
|
 |
function GetStartCoordinate: TPointF; virtual; abstract; |
Starting coordinate of the path
|
 |
procedure SetArcPos(AValue: single); virtual; abstract; |
Sets the current position from the start
|
 |
procedure SetLoopClosedShapes(AValue: boolean); virtual; abstract; |
Sets if the cursor loops when there is a closed shape
|
 |
procedure SetLoopPath(AValue: boolean); virtual; abstract; |
Sets if the cursor loops at the end of the whole path
|
Properties
 |
property CurrentTangent: TPointF read GetCurrentTangent; |
Returns the tangent vector. It is a vector of length one that is parallel to the curve at the current point. A normal vector is easily deduced as PointF(y,-x)
|
 |
property LoopPath: boolean read GetLoopPath write SetLoopPath; |
Specifies if the cursor loops at the end of the path. Note that if it needs to jump to go to the beginning, it will be only possible if the parameter ACanJump is set to True when moving along the path
|
 |
property PathLength: single read GetPathLength; |
Full arc length of the path
|
 |
property Position: single read GetArcPos write SetArcPos; |
Current position in the path, as a distance along the arc from the starting point of the path
|