Class TUndoSetAngle

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TUndoSetAngle = class(TCustomUndo)

Description

TUndoSetAngle is used to set the grid angle.

Hierarchy

Overview

Fields

Private FNewAngle: real;
Private FOldAngle: real;
Private FOldColumns: TOneDRealArray;
Private FOldRows: TOneDRealArray;

Methods

Protected function Description: string; override;
Public constructor Create(const Angle: real);
Public procedure DoCommand; override;
Public procedure Undo; override;

Description

Fields

Private FNewAngle: real;

FNewAngle: real; FNewAngle is the new grid angle in radians.

Private FOldAngle: real;

FOldAngle: real; FOldAngle is the old grid angle in radians.

Private FOldColumns: TOneDRealArray;

FOldColumns: TOneDRealArray; FOldColumns is the column positions before changing the grid angle.

Private FOldRows: TOneDRealArray;

FOldRows: TOneDRealArray; FOldRows is the row positions before changing the grid angle.

Methods

Protected function Description: string; override;

See TCustomUndo.Description.

Public constructor Create(const Angle: real);

Create creates an instance of TUndoSetAngle.

Parameters
Angle
is the new grid angle.
Public procedure DoCommand; override;

DoCommand rotates the grid.

Public procedure Undo; override;

Undo restores the grid to its previous angle.


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