Class TCustomEditScreenObjectTool

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TCustomEditScreenObjectTool = class(TCustomStoreVerticesTool)

Description

no description available, TCustomStoreVerticesTool description follows
no description available, TCustomInteractiveTool description follows

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.

See also
CurrentTool
CurrentTool is the TCustomInteractiveTool that is currently being used to handle the user interaction with TframeView.ZoomBox.

Hierarchy

Overview

Methods

Private function AreScreenObjectsSelected: boolean;
Private function SelectScreenObjects(const X, Y: integer; const SelectLowerScreenObjects, ToggleSelectedItem: boolean; const CanChangeSelection: boolean = True; const ReturnScreenObjectPresent: boolean = False): boolean;

Description

Methods

Private function AreScreenObjectsSelected: boolean;

AreScreenObjectsSelected returns True if any TScreenObjects are selected in the view to which this TCustomEditScreenObjectTool applies.

Private function SelectScreenObjects(const X, Y: integer; const SelectLowerScreenObjects, ToggleSelectedItem: boolean; const CanChangeSelection: boolean = True; const ReturnScreenObjectPresent: boolean = False): boolean;

SelectScreenObjects is used to select (or deselect) the TScreenObject at X,Y.

Parameters
X
is the X mouse coordinate.
Y
is the Y mouse coordinate.
SelectLowerScreenObjects
If SelectLowerScreenObjects is true, SelectScreenObjects will look for a TScreenObject that is below the selected one and try to select it.
CanChangeSelection
If CanChangeSelection is true, the TScreenObject at X,Y will be selected. otherwise, there will be no change in what is selected.
ReturnScreenObjectPresent
ReturnScreenObjectPresent is only used if CanChangeSelection is false. If ReturnScreenObjectPresent is true, SelectScreenObjects returns true if there is a TScreenObject at X,Y that can be selected. If ReturnScreenObjectPresent, SelectScreenObjects returns true if there already is a selected TScreenObject at X,Y.
Returns

SelectScreenObjects returns True if a TScreenObject can be selected at X,Y. Otherwise it returns False.


Generated by PasDoc 0.12.1 on 2013-05-13 15:41:43