GETVIEWCOORD, GETVIEWCOORD_W (W*32, W*64)

Graphics Subroutines: Translate physical coordinates or window coordinates to viewport coordinates.

Module

USE IFQWIN

Syntax

CALL GETVIEWCOORD (x, y, t)

CALL GETVIEWCOORD_W (wx,wy,wt)

x, y

(Input) INTEGER(2). Physical coordinates to be converted to viewport coordinates.

t

(Output) Derived type xycoord. Viewport coordinates. The xycoord derived type is defined in IFQWIN.F90 as follows:TYPE xycoord
INTEGER(2) xcoord ! x-coordinate
INTEGER(2) ycoord ! y-coordinate

END TYPE xycoord

wx, wy

(Input) REAL(8). Window coordinates to be converted to viewport coordinates.

wt

(Output) Derived type wxycoord. Window coordinates. The derived type wxycoord is defined in IFQWIN.F90 as follows:TYPE wxycoord
REAL(8) wx ! x-coordinate
REAL(8) wy ! y-coordinate

END TYPE wxycoord

Viewport coordinates refer to an area of the screen defined as the viewport with SETVIEWPORT. Physical coordinates refer to the whole screen. Both take integer coordinate values. Window coordinates refer to a window sized with SETWINDOW or SETWSIZEQQ. Window coordinates are floating-point values and allow easy scaling of data to the window area. For a more complete discussion of coordinate systems, see Building Applications: Understanding Coordinate Systems Overview.

Compatibility

STANDARD GRAPHICS QUICKWIN GRAPHICS LIB

Example

See the example program in GETPHYSCOORD.

See Also