Class TRotateGridTool

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TRotateGridTool = class(TCustomInteractiveTool)

Description

TRotateGridTool is used to rotate the grid on the top view of the model.

Hierarchy

Overview

Fields

Private FRotating: boolean;
Private FStartAngle: double;

Methods

Private procedure DrawRotatedGrid(Bitmap: TBitmap32);
Private function GridCenter: TPoint2D;
Protected procedure DrawOnBitMap32(Sender: TObject; Buffer: TBitmap32); override;
Public procedure Activate; override;
Public procedure MouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); override;
Public procedure MouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer); override;
Public procedure MouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); override;
Public procedure RightClick(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); override;

Properties

Public property Rotating: boolean read FRotating;
Public property StartAngle: double read FStartAngle;

Description

Fields

Private FRotating: boolean;

FRotating: boolean; See Rotating.

Private FStartAngle: double;

FStartAngle: double; See StartAngle.

Methods

Private procedure DrawRotatedGrid(Bitmap: TBitmap32);

DrawRotatedGrid draws the rotated grid.

Private function GridCenter: TPoint2D;

GridCenter returns the point at the center of the grid on the top view of the model.

Protected procedure DrawOnBitMap32(Sender: TObject; Buffer: TBitmap32); override;
 
Public procedure Activate; override;

Activate sets the Hint of TfrmGoPhast.frameTopView, TfrmGoPhast.frameFrontView, and TfrmGoPhast.frameSideView. Each is set to a different value.

Public procedure MouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); override;

MouseDown starts rotating the grid.

Public procedure MouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer); override;

MouseMove causes ZoomBox.Image32 to be redrawn.

Public procedure MouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); override;

MouseUp rotates the grid.

Public procedure RightClick(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); override;

Abort grid rotation

Properties

Public property Rotating: boolean read FRotating;

Rotating indicates whether the grid is being rotated.

Public property StartAngle: double read FStartAngle;

StartAngle indicates the grid angle when rotating was started.


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