TConverter

Hierarchy

TConverter = class

Unit

uCoordConvert

Description

Class TConverter is used for transformation of coordinates into various formats which are used by functions and procedures. The following four types storage of coordinates of geographical object are used in components .


1. Format of geographical data in which they are stored in files *.map. (File Coord FC)
2. Format of coordinates in an internal projection which is used inside a component for combining layers in one general projection. (Internal Coord IC)
3. Format of coordinates of object in pixels for the showing on computer display. (Screen Coord SC)
4. Real geographical coordinates in the appropriate projection of the given layer. (Map Coord MC)

Properties

cvXmin, cvYmin, cvXmax, cvYmax:integer Coordinates of image on computer screen. (SC)
ddX, ddY:double The Width and Height of map (FC)
XScale, YScale:double Coefficient scale of map
Quadrant:byte Quadrant of map
ttXmin, ttYmin, ttXmax, ttYmax:Double Coordinates of map area shown on computer screen.(IC).
txDispl, tyDispl:double Offset of coordinates

Methods

Function UndoPointX(ssX: integer): integer X Width FC->SC
Function UndoPointY(ssY: integer): integer Y Width FC->SC
Function GetX(ssX: double): integer Transfer of coordinates ssX (FC->SC)
Function GetY(ssY: double): integer Transfer of coordinates ssY (FC->SC)
Function PointX(ssX: integer): integer Set size in pixels. Function transfers this width to format FC (X Width SC->FC)
Function PointY(ssY: integer): integer Set size in pixels. Function transfers this width to format FC (Y Width SC->FC)
Function GetXForCanvas(canvX: integer): double Transfer of coordinates X (SC->FC)
Function GetYForCanvas(canvY: integer): double Transfer of coordinates Y (SC->FC)
Procedure GetAngleForArc2(Angle, Angle2: smallint; var VAngle1,VAngle2:double) Function for calculation of corners from format of storage in file MapInfo into format Windows GDI for drawing an arc (Arc).

Events