Class TCustomStoreVerticesTool

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TCustomStoreVerticesTool = class(TCustomInteractiveTool)

Description

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

Fields

Protected FCurrentScreenObject: TScreenObject;
Protected FShift: TShiftState;
Protected FViewDirection: TViewDirection;
Protected FVisibleVertices: TRbwQuadTree;
Protected FStoredPoints: TList;

Methods

Private function FindPointInNearbyScreenObject(const APoint: TPoint; out NearbyPoint: TPoint2D): boolean;
Private procedure ClearPoints;
Protected procedure StorePointsOfOtherObjects(ScreenObject: TScreenObject);
Protected function GetSnapPoint: TPoint;
Public constructor Create(AOwner: TComponent); override;
Public destructor Destroy; override;
Public procedure Activate; override;

Properties

Public property CurrentScreenObject: TScreenObject read FCurrentScreenObject write FCurrentScreenObject;

Description

Fields

Protected FCurrentScreenObject: TScreenObject;

FCurrentScreenObject: TScreenObject; See CurrentScreenObject.

Protected FShift: TShiftState;
 
Protected FViewDirection: TViewDirection;
 
Protected FVisibleVertices: TRbwQuadTree;
 
Protected FStoredPoints: TList;

FStoredPoints contains instances of TScreenPointStorage. FStoredPoints is created and filled in StorePointsOfOtherObjects.

Methods

Private function FindPointInNearbyScreenObject(const APoint: TPoint; out NearbyPoint: TPoint2D): boolean;
 
Private procedure ClearPoints;
 
Protected procedure StorePointsOfOtherObjects(ScreenObject: TScreenObject);

Store the screen coordinates of visible objects.

Protected function GetSnapPoint: TPoint;
 
Public constructor Create(AOwner: TComponent); override;
 
Public destructor Destroy; override;
 
Public procedure Activate; override;
 

Properties

Public property CurrentScreenObject: TScreenObject read FCurrentScreenObject write FCurrentScreenObject;

CurrentScreenObject is the TScreenObject that is being created.


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