Class TGpcPolygonClass

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TGpcPolygonClass = class(TObject)

Description

Hierarchy

Overview

Fields

Private FPolygon: Tgpc_polygon;

Methods

Private function GetContours(ContourIndex: integer): Tgpc_vertex_list;
Private function GetHoles(ContourIndex: integer): boolean;
Private function GetNumberOfContours: integer;
Private function GetVertexCount(ContourIndex: integer): integer;
Private function GetVertices(ContourIndex, VertexIndex: integer): Tgpc_vertex;
Private procedure SetContours(ContourIndex: integer; const Value: Tgpc_vertex_list);
Private procedure SetHoles(ContourIndex: integer; const Value: boolean);
Private procedure SetNumberOfContours(const Value: integer);
Private procedure SetVertexCount(ContourIndex: integer; const Value: integer);
Private procedure SetVertices(ContourIndex, VertexIndex: integer; const Value: Tgpc_vertex);
Public Constructor Create;
Public Constructor CreateFromOperation(Operation: Tgpc_op; Subject, Clip: TGpcPolygonClass);
Public Destructor Destroy; override;
Public procedure ReadFromFile(FileName: string; ReadHoles: boolean);
Public procedure WriteToFile(FileName: string; WriteHoles: boolean);
Public function ContourArea(ContourIndex: integer): double;
Public procedure AddContour(const contour: Tgpc_vertex_list; Hole: boolean);
Public function TotalVertexCount: integer;

Properties

Public property NumberOfContours: integer read GetNumberOfContours write SetNumberOfContours;
Public property Contours[ContourIndex:integer]: Tgpc_vertex_list read GetContours write SetContours;
Public property Holes[ContourIndex:integer]: boolean read GetHoles write SetHoles;
Public property VertexCount[ContourIndex:integer]: integer read GetVertexCount write SetVertexCount;
Public property Vertices[ContourIndex,VertexIndex:integer]: Tgpc_vertex read GetVertices write SetVertices;

Description

Fields

Private FPolygon: Tgpc_polygon;
 

Methods

Private function GetContours(ContourIndex: integer): Tgpc_vertex_list;
 
Private function GetHoles(ContourIndex: integer): boolean;
 
Private function GetNumberOfContours: integer;
 
Private function GetVertexCount(ContourIndex: integer): integer;
 
Private function GetVertices(ContourIndex, VertexIndex: integer): Tgpc_vertex;
 
Private procedure SetContours(ContourIndex: integer; const Value: Tgpc_vertex_list);
 
Private procedure SetHoles(ContourIndex: integer; const Value: boolean);
 
Private procedure SetNumberOfContours(const Value: integer);
 
Private procedure SetVertexCount(ContourIndex: integer; const Value: integer);
 
Private procedure SetVertices(ContourIndex, VertexIndex: integer; const Value: Tgpc_vertex);
 
Public Constructor Create;
 
Public Constructor CreateFromOperation(Operation: Tgpc_op; Subject, Clip: TGpcPolygonClass);
 
Public Destructor Destroy; override;
 
Public procedure ReadFromFile(FileName: string; ReadHoles: boolean);
 
Public procedure WriteToFile(FileName: string; WriteHoles: boolean);
 
Public function ContourArea(ContourIndex: integer): double;
 
Public procedure AddContour(const contour: Tgpc_vertex_list; Hole: boolean);
 
Public function TotalVertexCount: integer;
 

Properties

Public property NumberOfContours: integer read GetNumberOfContours write SetNumberOfContours;

Setting NumberOfContours erases all existing contours.

Public property Contours[ContourIndex:integer]: Tgpc_vertex_list read GetContours write SetContours;
 
Public property Holes[ContourIndex:integer]: boolean read GetHoles write SetHoles;
 
Public property VertexCount[ContourIndex:integer]: integer read GetVertexCount write SetVertexCount;

Setting VertexCount erases all vertices in the specified contour.

Public property Vertices[ContourIndex,VertexIndex:integer]: Tgpc_vertex read GetVertices write SetVertices;
 

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