Class TCellElementSegment

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TCellElementSegment = class(TObject)

Description

TCellElementSegment represents the 2D intersection of one segment of a TScreenObject with a cell or element in the grid.

Hierarchy

Overview

Fields

Private FCol: integer;
Private FEndPosition: TEdgePosition;
Private FLayer: integer;
Private FVertexIndex: integer;
Private FRow: integer;
Private FStartPosition: TEdgePosition;
Private FX1: double;
Private FX2: double;
Private FY1: double;
Private FY2: double;

Methods

Public function Length: double;

Properties

Public property Col: integer read FCol write FCol;
Public property EndPosition: TEdgePosition read FEndPosition write FEndPosition;
Public property Layer: integer read FLayer write FLayer;
Public property VertexIndex: integer read FVertexIndex write FVertexIndex;
Public property Row: integer read FRow write FRow;
Public property StartPosition: TEdgePosition read FStartPosition write FStartPosition;
Public property X1: double read FX1 write FX1;
Public property X2: double read FX2 write FX2;
Public property Y1: double read FY1 write FY1;
Public property Y2: double read FY2 write FY2;

Description

Fields

Private FCol: integer;

FCol: integer; See Col.

Private FEndPosition: TEdgePosition;

FEndPosition: TEdgePosition; See EndPosition.

Private FLayer: integer;

FLayer: integer; See Layer.

Private FVertexIndex: integer;

FVertexIndex: integer; See VertexIndex.

Private FRow: integer;

FRow: integer; See Row.

Private FStartPosition: TEdgePosition;

FStartPosition: TEdgePosition; See StartPosition.

Private FX1: double;

FX1: double; See X1.

Private FX2: double;

FX2: double; See X2.

Private FY1: double;

FY1: double; See Y1.

Private FY2: double;

FY2: double; See Y2.

Methods

Public function Length: double;

Length returns the length of this TCellElementSegment.

Properties

Public property Col: integer read FCol write FCol;

Col is the column of the grid which this TCellElementSegment intersects. In this context, column can represent a column of elements or a column of cells depending on which this TCellElementSegment is intersecting.

Public property EndPosition: TEdgePosition read FEndPosition write FEndPosition;

If the end of this TCellElementSegment is at the edge of the cell or element, EndPosition is epLast. If it is a vertex on the TScreenObject so that the point is in the interior of the cell or element, it is epMiddle.

Public property Layer: integer read FLayer write FLayer;

Layer is the layer of the grid which this TCellElementSegment intersects. In this context, layer can represent a layer of elements or a layer of cells depending on which this TCellElementSegment is intersecting.

Public property VertexIndex: integer read FVertexIndex write FVertexIndex;

VertexIndex is the index of the point in Points that comes before this TCellElementSegment.

Public property Row: integer read FRow write FRow;

Row is the row of the grid which this TCellElementSegment intersects. In this context, row can represent a row of elements or a row of cells depending on which this TCellElementSegment is intersecting.

Public property StartPosition: TEdgePosition read FStartPosition write FStartPosition;

If the start of this TCellElementSegment is at the edge of the cell or element, StartPosition is epFirst. If it is a vertex on the TScreenObject so that the point is in the interior of the cell or element, it is epMiddle.

Public property X1: double read FX1 write FX1;

X1 is the X-coordinate of the start of this TCellElementSegment.

Public property X2: double read FX2 write FX2;

X2 is the X-coordinate of the end of this TCellElementSegment.

Public property Y1: double read FY1 write FY1;

Y1 is the Y-coordinate of the start of this TCellElementSegment.

Public property Y2: double read FY2 write FY2;

Y2 is the Y-coordinate of the end of this TCellElementSegment.


Generated by PasDoc 0.10.0 on 2006-10-31 09:56:45