Description | Hierarchy | Fields | Methods | Properties |
type TCustomInteractiveTool = class(TComponent)
TCustomInteractiveTool
is an abstract base class. Its descendants (mainly in InteractiveTools) handle on-screen interaction between the user and the grid or TScreenObjects.
The main procedures in which the interaction is handled are MouseDown, MouseMove and MouseUp. These are called in TframeView.ZoomBoxPaintBoxMouseDown, TframeView.ZoomBoxPaintBoxMouseMove, and TframeView.ZoomBoxPaintBoxMouseUp.
The hints in TfrmGoPhast.frameTopView, TfrmGoPhast.frameFrontView, and TfrmGoPhast.frameSideView are set by the current tool via GetHint, Activate, and Deactivate.
CurrentTool
is the TCustomInteractiveTool that is currently being used to handle the user interaction with TframeView.ZoomBox.![]() |
FCursor: TCursor; |
![]() |
FViewDirection: TViewDirection; |
![]() |
procedure SetViewDirection(const Value: TViewDirection); |
![]() |
function GetMouseIsDown: boolean; |
![]() |
function GetCursor: TCursor; virtual; |
![]() |
procedure GetColLayer(APoint: T2DRealPoint; out Col, Layer: integer); |
![]() |
function GetHint: string; virtual; |
![]() |
procedure GetRowCol(APoint: T2DRealPoint; out Row, Column: integer); |
![]() |
procedure GetRowLayer(APoint: T2DRealPoint; out Row, Layer: integer); |
![]() |
procedure SetCursor(const Value: TCursor); virtual; |
![]() |
procedure UpdateCursors; virtual; |
![]() |
function View: TframeView; |
![]() |
function ZoomBox: TQRbwZoomBox2; |
![]() |
procedure Activate; virtual; |
![]() |
procedure Deactivate; virtual; |
![]() |
procedure DoubleClick(Sender: TObject); virtual; |
![]() |
procedure Draw(const Sender: TObject; const Direction: TViewDirection); virtual; |
![]() |
procedure MouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); virtual; |
![]() |
procedure MouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer); virtual; |
![]() |
procedure MouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); virtual; |
![]() |
procedure RightClick(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); virtual; |
![]() |
procedure SetAllCursors(const Value: TCursor); virtual; |
![]() |
property Cursor: TCursor read GetCursor write SetCursor; |
![]() |
property Hint: string read GetHint; |
![]() |
property MouseIsDown: boolean read GetMouseIsDown; |
![]() |
property ViewDirection: TViewDirection read FViewDirection write
SetViewDirection; |
![]() |
FCursor: TCursor; |
|
![]() |
FViewDirection: TViewDirection; |
|
![]() |
procedure SetViewDirection(const Value: TViewDirection); |
See ViewDirection. |
![]() |
function GetMouseIsDown: boolean; |
Getter for MouseIsDown |
![]() |
function GetCursor: TCursor; virtual; |
See Cursor. |
![]() |
procedure GetColLayer(APoint: T2DRealPoint; out Col, Layer: integer); |
|
![]() |
function GetHint: string; virtual; |
See Hint |
![]() |
procedure GetRowCol(APoint: T2DRealPoint; out Row, Column: integer); |
|
![]() |
procedure GetRowLayer(APoint: T2DRealPoint; out Row, Layer: integer); |
|
![]() |
procedure SetCursor(const Value: TCursor); virtual; |
See Cursor. |
![]() |
procedure UpdateCursors; virtual; |
|
![]() |
function View: TframeView; |
|
![]() |
function ZoomBox: TQRbwZoomBox2; |
|
![]() |
procedure Activate; virtual; |
|
![]() |
procedure Deactivate; virtual; |
|
![]() |
procedure DoubleClick(Sender: TObject); virtual; |
Descendants of |
![]() |
procedure Draw(const Sender: TObject; const Direction: TViewDirection); virtual; |
Descendants of |
![]() |
procedure MouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); virtual; |
Descendants of |
![]() |
procedure MouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer); virtual; |
Descendants of |
![]() |
procedure MouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); virtual; |
Descendants of |
![]() |
procedure RightClick(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); virtual; |
handle a right click |
![]() |
procedure SetAllCursors(const Value: TCursor); virtual; |
|
![]() |
property Cursor: TCursor read GetCursor write SetCursor; |
(Note: in some cases, setting the cursor has no effect because GetCursor does not refer to the value that was set. |
![]() |
property Hint: string read GetHint; |
|
![]() |
property MouseIsDown: boolean read GetMouseIsDown; |
|
![]() |
property ViewDirection: TViewDirection read FViewDirection write
SetViewDirection; |
|