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.ZoomBoxImage32MouseDown, TframeView.ZoomBoxImage32MouseMove, and TframeView.ZoomBoxImage32MouseUp.
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; |
![]() |
FTopLayer: TPositionedLayer; |
![]() |
FSideLayer: TPositionedLayer; |
![]() |
FFrontLayer: TPositionedLayer; |
![]() |
procedure SetViewDirection(const Value: TViewDirection); |
![]() |
function GetMouseIsDown: boolean; |
![]() |
procedure CreateLayers; virtual; |
![]() |
function Layer32: TPositionedLayer; |
![]() |
function GetCursor: TCursor; virtual; |
![]() |
procedure GetColLayer(APoint: TPoint2D; out Col, Layer: integer); |
![]() |
function GetHint: string; virtual; |
![]() |
procedure GetRowCol(APoint: TPoint2D; out Row, Column: integer); |
![]() |
procedure GetRowLayer(APoint: TPoint2D; out Row, Layer: integer); |
![]() |
procedure SetCursor(const Value: TCursor); virtual; |
![]() |
procedure UpdateCursors; virtual; |
![]() |
function View: TframeView; overload; |
![]() |
function View(Direction: TViewDirection): TframeView; overload; |
![]() |
function ZoomBox: TQRbwZoomBox2; |
![]() |
procedure DrawOnBitMap32(Sender: TObject; Buffer: TBitmap32); virtual; |
![]() |
function GetEvaluatedAt(const Direction: TViewDirection): TEvaluatedAt; |
![]() |
function FindNodeInSelectedScreenObjects(const X, Y: integer; const AScreenObject: TScreenObject): integer; |
![]() |
procedure UpdateAllViews; |
![]() |
procedure Activate; virtual; |
![]() |
procedure Deactivate; virtual; |
![]() |
procedure DoubleClick(Sender: TObject); 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; |
See Cursor. |
![]() |
FViewDirection: TViewDirection; |
See ViewDirection; |
![]() |
FTopLayer: TPositionedLayer; |
![]() |
FSideLayer: TPositionedLayer; |
![]() |
FFrontLayer: TPositionedLayer; |
![]() |
procedure SetViewDirection(const Value: TViewDirection); |
See ViewDirection. |
![]() |
function GetMouseIsDown: boolean; |
Getter for MouseIsDown |
![]() |
procedure CreateLayers; virtual; |
![]() |
function Layer32: TPositionedLayer; |
![]() |
function GetCursor: TCursor; virtual; |
See Cursor. |
![]() |
procedure GetColLayer(APoint: TPoint2D; out Col, Layer: integer); |
|
![]() |
function GetHint: string; virtual; |
See Hint |
![]() |
procedure GetRowCol(APoint: TPoint2D; out Row, Column: integer); |
|
![]() |
procedure GetRowLayer(APoint: TPoint2D; out Row, Layer: integer); |
|
![]() |
procedure SetCursor(const Value: TCursor); virtual; |
See Cursor. |
![]() |
procedure UpdateCursors; virtual; |
|
![]() |
function View: TframeView; overload; |
|
![]() |
function View(Direction: TViewDirection): TframeView; overload; |
![]() |
function ZoomBox: TQRbwZoomBox2; |
|
![]() |
procedure DrawOnBitMap32(Sender: TObject; Buffer: TBitmap32); virtual; |
![]() |
function GetEvaluatedAt(const Direction: TViewDirection): TEvaluatedAt; |
![]() |
function FindNodeInSelectedScreenObjects(const X, Y: integer; const AScreenObject: TScreenObject): integer; |
|
![]() |
procedure UpdateAllViews; |
![]() |
procedure Activate; virtual; |
|
![]() |
procedure Deactivate; virtual; |
|
![]() |
procedure DoubleClick(Sender: TObject); 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; |
|