Class TBGRAPathCursor
Unit
Declaration
type TBGRAPathCursor = class(TBGRACustomPathCursor)
Description
Cursor to determine position along a path
Hierarchy
- TObject
- TBGRACustomPathCursor
- TBGRAPathCursor
Overview
Fields
FAcceptedDeviation: single; |
|
FArcPos: Single; |
|
FBounds: TRectF; |
|
FBoundsComputed: boolean; |
|
FCurrentElement: Pointer; |
|
FCurrentElementArcPos: single; |
|
FCurrentElementArcPosScale: single; |
|
FCurrentElementEndCoord: TPointF; |
|
FCurrentElementLength: single; |
|
FCurrentElementPoints: array of TPointF; |
|
FCurrentElementStartCoord: TPointF; |
|
FCurrentElementType: TBGRAPathElementType; |
|
FCurrentSegment: Int32or64; |
|
FCurrentSegmentPos: single; |
|
FDataPos: IntPtr; |
|
FEndCoordinate: TPointF; |
|
FLoopClosedShapes: boolean; |
|
FLoopPath: boolean; |
|
FPath: TBGRAPath; |
|
FPathLength: single; |
|
FPathLengthComputed: boolean; |
|
FStartCoordinate: TPointF; |
Methods
constructor Create(APath: TBGRAPath; AAcceptedDeviation: single = DefaultDeviation); |
|
destructor Destroy; override; |
|
function MoveBackward(ADistance: single; ACanJump: boolean = true): single; override; |
|
function MoveForward(ADistance: single; ACanJump: boolean = true): single; override; |
|
function GetArcPos: single; override; |
|
function GetBounds: TRectF; override; |
|
function GetCurrentCoord: TPointF; override; |
|
function GetCurrentTangent: TPointF; override; |
|
function GetLoopClosedShapes: boolean; override; |
|
function GetLoopPath: boolean; override; |
|
function GetPath: TBGRAPath; virtual; |
|
function GetPathLength: single; override; |
|
function GetStartCoordinate: TPointF; override; |
|
function GoToNextElement(ACanJump: boolean): boolean; |
|
function GoToPreviousElement(ACanJump: boolean): boolean; |
|
function NeedPolygonalApprox: boolean; |
|
procedure MoveBackwardInElement(ADistance: single); |
|
procedure MoveForwardInElement(ADistance: single); |
|
procedure MoveToEndOfElement; |
|
procedure OnPathFree; virtual; |
|
procedure PrepareCurrentElement; virtual; |
|
procedure SetArcPos(AValue: single); override; |
|
procedure SetLoopClosedShapes(AValue: boolean); override; |
|
procedure SetLoopPath(AValue: boolean); override; |
Properties
property AcceptedDeviation: single read FAcceptedDeviation; |
|
property Bounds: TRectF read GetBounds; |
|
property CurrentCoordinate: TPointF read GetCurrentCoord; |
|
property CurrentTangent: TPointF read GetCurrentTangent; |
|
property LoopClosedShapes: boolean read GetLoopClosedShapes write SetLoopClosedShapes; |
|
property LoopPath: boolean read GetLoopPath write SetLoopPath; |
|
property Path: TBGRAPath read GetPath; |
|
property PathLength: single read GetPathLength; |
|
property Position: single read GetArcPos write SetArcPos; |
|
property StartCoordinate: TPointF read GetStartCoordinate; |
Description
Fields
FAcceptedDeviation: single; |
|
This item has no description. |
FArcPos: Single; |
|
This item has no description. |
FBounds: TRectF; |
|
This item has no description. |
FBoundsComputed: boolean; |
|
This item has no description. |
FCurrentElement: Pointer; |
|
This item has no description. |
FCurrentElementArcPos: single; |
|
This item has no description. |
FCurrentElementArcPosScale: single; |
|
This item has no description. |
FCurrentElementEndCoord: TPointF; |
|
This item has no description. |
FCurrentElementLength: single; |
|
This item has no description. |
FCurrentElementPoints: array of TPointF; |
|
This item has no description. |
FCurrentElementStartCoord: TPointF; |
|
This item has no description. |
FCurrentElementType: TBGRAPathElementType; |
|
This item has no description. |
FCurrentSegment: Int32or64; |
|
This item has no description. |
FCurrentSegmentPos: single; |
|
This item has no description. |
FDataPos: IntPtr; |
|
This item has no description. |
FEndCoordinate: TPointF; |
|
This item has no description. |
FLoopClosedShapes: boolean; |
|
This item has no description. |
FLoopPath: boolean; |
|
This item has no description. |
FPath: TBGRAPath; |
|
This item has no description. |
FPathLength: single; |
|
This item has no description. |
FPathLengthComputed: boolean; |
|
This item has no description. |
FStartCoordinate: TPointF; |
|
This item has no description. |
Methods
constructor Create(APath: TBGRAPath; AAcceptedDeviation: single = DefaultDeviation); |
|
This item has no description. |
destructor Destroy; override; |
|
This item has no description. |
function MoveBackward(ADistance: single; ACanJump: boolean = true): single; override; |
|
This item has no description. Showing description inherited from TBGRACustomPathCursor.MoveBackward. 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; override; |
|
This item has no description. Showing description inherited from TBGRACustomPathCursor.MoveForward. 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; override; |
|
This item has no description. Showing description inherited from TBGRACustomPathCursor.GetArcPos. |
function GetBounds: TRectF; override; |
|
This item has no description. Showing description inherited from TBGRACustomPathCursor.GetBounds. Compute the bounds of the path |
function GetCurrentCoord: TPointF; override; |
|
This item has no description. Showing description inherited from TBGRACustomPathCursor.GetCurrentCoord. Returns the current coordinate in the path |
function GetCurrentTangent: TPointF; override; |
|
This item has no description. Showing description inherited from TBGRACustomPathCursor.GetCurrentTangent. Returns the tangent vector to the current position |
function GetLoopClosedShapes: boolean; override; |
|
This item has no description. Showing description inherited from TBGRACustomPathCursor.GetLoopClosedShapes. Retrieves if the cursor loops when there is a closed shape |
function GetLoopPath: boolean; override; |
|
This item has no description. Showing description inherited from TBGRACustomPathCursor.GetLoopPath. Retrieves if the cursor loops at the end of the whole path |
function GetPath: TBGRAPath; virtual; |
|
This item has no description. |
function GetPathLength: single; override; |
|
This item has no description. Showing description inherited from TBGRACustomPathCursor.GetPathLength. Retreive the full arc length of the path |
function GetStartCoordinate: TPointF; override; |
|
This item has no description. Showing description inherited from TBGRACustomPathCursor.GetStartCoordinate. Starting coordinate of the path |
function GoToNextElement(ACanJump: boolean): boolean; |
|
This item has no description. |
function GoToPreviousElement(ACanJump: boolean): boolean; |
|
This item has no description. |
function NeedPolygonalApprox: boolean; |
|
This item has no description. |
procedure MoveBackwardInElement(ADistance: single); |
|
This item has no description. |
procedure MoveForwardInElement(ADistance: single); |
|
This item has no description. |
procedure MoveToEndOfElement; |
|
This item has no description. |
procedure OnPathFree; virtual; |
|
This item has no description. |
procedure PrepareCurrentElement; virtual; |
|
This item has no description. |
procedure SetArcPos(AValue: single); override; |
|
This item has no description. Showing description inherited from TBGRACustomPathCursor.SetArcPos. |
procedure SetLoopClosedShapes(AValue: boolean); override; |
|
This item has no description. Showing description inherited from TBGRACustomPathCursor.SetLoopClosedShapes. Sets if the cursor loops when there is a closed shape |
procedure SetLoopPath(AValue: boolean); override; |
|
This item has no description. Showing description inherited from TBGRACustomPathCursor.SetLoopPath. Sets if the cursor loops at the end of the whole path |
Properties
property AcceptedDeviation: single read FAcceptedDeviation; |
|
This item has no description. |
property Bounds: TRectF read GetBounds; |
|
This item has no description. |
property CurrentCoordinate: TPointF read GetCurrentCoord; |
|
This item has no description. |
property CurrentTangent: TPointF read GetCurrentTangent; |
|
This item has no description. |
property LoopClosedShapes: boolean read GetLoopClosedShapes write SetLoopClosedShapes; |
|
This item has no description. |
property LoopPath: boolean read GetLoopPath write SetLoopPath; |
|
This item has no description. |
property Path: TBGRAPath read GetPath; |
|
This item has no description. |
property PathLength: single read GetPathLength; |
|
This item has no description. |
property Position: single read GetArcPos write SetArcPos; |
|
This item has no description. |
property StartCoordinate: TPointF read GetStartCoordinate; |
|
This item has no description. |