Class TElevationStorage
Unit
ElevationStorageUnit
Declaration
type TElevationStorage = class(TObject)
Description
TElevationStorage
is intended to store a series of points that represent upper or lower "elevations" of a TScreenObject perpendicular to a TScreenObject whose ViewDirection is vdFront or vdSide.
TElevationStorage
is used in MODFLOW models to define the "upper" and "lower" surfaces of 3D objects drawn on the front or side views of the model. It is needed on those views because the layers may not be flat. Both row and column boundaries are vertical planes so TElevationStorage
isn't need for the top view.
Hierarchy
- TObject
- TElevationStorage
Overview
Fields
Methods
Properties
Description
Fields
|
FFirstCapacity: integer; |
FFirstCapacity is the maximum size of the first dimension of Elevations. FFirstCapacity would normally be the number of rows for the front view or the number of columns for the side view.
|
|
FSecondCapacity: integer; |
FSecondCapacity is the maximum size of the second dimension of Elevations. FSecondCapacity would normally be the number of columns times the number of layers for the front view or the number of rows times the number of layers for the side view.
|
|
FSecondCount: array of integer; |
FSecondCount records how many items are stored for each row or column in FElevations
|
|
FCachedElevations: T3DRealPointArray2; |
FCachedElevations is used to report the elevations to consumers. The elevations are sorted before being reported. See Elevations;
|
|
FElevationsUpToDate: boolean; |
FElevationsUpToDate is used to record whether FCachedElevations are up-to-date or whether they need to be recalculated.
|
Methods
|
function PointsAreDifferent(const OtherPoint, Point: T3DRealPoint): boolean; |
PointsAreDifferent tests whether OtherPoint and Point are different.
|
|
procedure AddPoint(const FirstIndex: integer; const Point: T3DRealPoint); |
AddPoint adds a point on the front or side view of the TScreenObject.
Parameters
- FirstIndex
- is the row or column number of the location being added.
- Point
- is the location being added.
|
|
procedure Clear; |
Clear clears all the elevations in the TElevationStorage .
|
|
procedure SetCapacities(const FirstCapacity, SecondCapacity: integer); |
SetCapacities sets the maximum size of Elevations.
|
Properties
|
property Elevations: T3DRealPointArray2 read GetElevations; |
Elevations are the "elevations" on the front or side views. The first index is a row or column number. The points in each row or column will be sorted in ascending order. Elevations will be recalculated if required.
|
Generated by PasDoc 0.12.1 on 2013-05-13 15:41:31