Visible to Intel only — GUID: GUID-73E0018E-2739-4935-9D26-BD8415DBB541
Visible to Intel only — GUID: GUID-73E0018E-2739-4935-9D26-BD8415DBB541
GETVIEWCOORD, GETVIEWCOORD_W
Graphics Subroutines: Translate physical coordinates or window coordinates to viewport coordinates. These routines are only available for Windows.
USE IFQWIN
CALL GETVIEWCOORD (x, y, s)
CALL GETVIEWCOORD_W (wx, wy, s)
x, y |
(Input) INTEGER(2). Physical coordinates to be converted to viewport coordinates. |
wx, wy |
(Input) REAL(8). Window coordinates to be converted to viewport coordinates. |
s |
(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 |
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.
See the example program in GETPHYSCOORD.