Class TUndoDeleteVertices

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TUndoDeleteVertices = class(TCustomUpdateScreenObjectUndo)

Description

TUndoDeleteVertices is used to delete a vertex of a TScreenObject.

Hierarchy

Overview

Fields

Private FCanDeleteVertices: boolean;
Private FPoints: array of TRealPointArray;
Private FSectionStarts: array of TValueArrayStorage;
Private FScreenObjects: TList;
Private FVertexValues: TList;
Private FOldImportedElevations: TList;
Private FOldHigherImportedElevations: TList;
Private FOldLowerImportedElevations: TList;
Private FOldImportedValues: TList;

Methods

Protected function Description: string; override;
Public constructor Create(const ListOfScreenObjects: TScreenObjectList);
Public destructor Destroy; override;
Public procedure DoCommand; override;
Public procedure Redo; override;
Public procedure Undo; override;

Description

Fields

Private FCanDeleteVertices: boolean;

FCanDeleteVertices: boolean; FCanDeleteVertices indicates whether a the vertices can be deleted from the selected TScreenObject. If deleting a vertex would cause the TScreenObject to cross itself, the vertices can not be deleted.

Private FPoints: array of TRealPointArray;

FPoints: array of array of TPoint2D; FPoints holds the TPoint2Ds of the TScreenObjects.

Private FSectionStarts: array of TValueArrayStorage;
 
Private FScreenObjects: TList;

FScreenObjects: TList; FScreenObjects is a list of the TScreenObjects from which vertices will be deleted.

Private FVertexValues: TList;
 
Private FOldImportedElevations: TList;
 
Private FOldHigherImportedElevations: TList;
 
Private FOldLowerImportedElevations: TList;
 
Private FOldImportedValues: TList;
 

Methods

Protected function Description: string; override;

Description tells what TUndoDeleteVertices does.

Public constructor Create(const ListOfScreenObjects: TScreenObjectList);

Create creates an instance of TUndoDeleteVertices and stores a list of the TScreenObjects from which vertices will be deleted.

Public destructor Destroy; override;

Destroy destroys the current instance of TUndoDeleteVertices. Do not call Destroy directly. Call Free instead.

Public procedure DoCommand; override;

DoCommand deletes the selected vertices from the selected TScreenObjects

Public procedure Redo; override;

Redo re-deletes the selected vertices from the selected TScreenObjects

Public procedure Undo; override;

Undo restores the deleted vertices from the selected TScreenObjects


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