Units
Class Hierarchy
Classes, Interfaces and Objects
Types
Variables
Constants
Functions and Procedures
Identifiers

Class TEnvelope

Unit

GISClient

Declaration

type TEnvelope = class()

Description

an envolpe is a defined region with the min./max. X/Y coordinates

Methods

Overview

Public procedure addBorder(radius: Double);
Public function calcDistance(lat1: Double; lon1: Double; lat2: Double; lon2: Double): Double;
Public function calcMeasure(imageWidth: Integer; measureWidth: Integer; minx: Double; miny: Double; maxx: Double; maxy: Double): Integer; overload;
Public function calcMeasure(imageWidth: Integer; measureWidth: Integer): Integer; overload;
Public function calcScale(dpi, imageWidth, imageHeight: Integer; minx: Double; miny: Double; maxx: Double; maxy: Double): Integer; overload;
Public function calcScale(dpi, imageWidth, imageHeight: Integer): Integer; overload;
Public procedure center(centerx: Double; centery: Double);
Public constructor Create(centerx: Double; centery: Double; radius: Double); overload;
Public constructor Create(minx: String; miny: String; maxx: String; maxy: String); overload;
Public constructor Create(minx: Double; miny: Double; maxx: Double; maxy: Double); overload;
Public constructor Create(); overload;
Public function getMaxX: Double;
Public function getMaxY: Double;
Public function getMinX: Double;
Public function getMinY: Double;
Public procedure move(distx: Double; disty: Double);
Public procedure overlay(other: TEnvelope);
Public procedure stretch(factor: Double; centerx: Double; centery: Double); overload;
Public procedure stretch(factor: Double); overload;
Public function toString(): String;

Description

Public procedure addBorder(radius: Double);

expand the envelope with the spec. radius

Public function calcDistance(lat1: Double; lon1: Double; lat2: Double; lon2: Double): Double;

evaluates the distance between two points (only for longitudes and latititudes)

Public function calcMeasure(imageWidth: Integer; measureWidth: Integer; minx: Double; miny: Double; maxx: Double; maxy: Double): Integer; overload;

evaluates the scale of the envelope with the resolution of the image (only for longitudes and latititudes)

Public function calcMeasure(imageWidth: Integer; measureWidth: Integer): Integer; overload;

evaluates the measure of the envelope with the resolution of the image (only for longitudes and latititudes)

Public function calcScale(dpi, imageWidth, imageHeight: Integer; minx: Double; miny: Double; maxx: Double; maxy: Double): Integer; overload;

evaluates the scale of a spec. envelope with the resolution of the image (only for longitudes and latititudes)

Public function calcScale(dpi, imageWidth, imageHeight: Integer): Integer; overload;

evaluates the scale of the envelope with the resolution of the image (only for longitudes and latititudes)

Public procedure center(centerx: Double; centery: Double);

sets a new center, the dimension are the same

Public constructor Create(centerx: Double; centery: Double; radius: Double); overload;

creates an envelope with centered position and a radius

Public constructor Create(minx: String; miny: String; maxx: String; maxy: String); overload;

creates an envelope with the specified coordinates

Public constructor Create(minx: Double; miny: Double; maxx: Double; maxy: Double); overload;

creates an envelope with the specified coordinates

Public constructor Create(); overload;

creates an envelope with the coordinates 0, 0, 0, 0

Public function getMaxX: Double;

gets the max. X

Public function getMaxY: Double;

gets the max. Y

Public function getMinX: Double;

gets the min. X

Public function getMinY: Double;

gets the min. Y

Public procedure move(distx: Double; disty: Double);

moves the envelope in the specified direction (vector)

Public procedure overlay(other: TEnvelope);

combine two envlopes to one, the new envelope includes the two before specified envelopes

Public procedure stretch(factor: Double; centerx: Double; centery: Double); overload;

stretches the envelope with the spec. factor and sets a new center

Public procedure stretch(factor: Double); overload;

stretches the envelope with the spec. factor

Public function toString(): String;

returns the envelope as a string


Generated by PasDoc 0.8.7 on Fre 14. Nov 2003 15:13:31