12.07.2015 Views

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2 Intel <strong>Fortran</strong> <strong>Libraries</strong> <strong>Reference</strong>Module: USE IFQWINSyntaxCALL GETPHYSCOORD (x, y, t)x, y(Input) INTEGER(2). Viewport coordinates to be translated to physical coordinates.t(Output) Derived type xycoord. Physical coordinates of the input viewport position. Thexycoord derived type is defined in IFQWIN.F90 as follows:TYPE xycoordINTEGER(2) xcoord ! x-coordinateINTEGER(2) ycoord ! y-coordinateEND TYPE xycoordPhysical coordinates refer to the physical screen. Viewport coordinates refer to an area of thescreen defined as the viewport with SETVIEWPORT. Both take integer coordinate values.Window coordinates refer to a window sized with SETWINDOW or SETWSIZEQQ. Windowcoordinates are floating-point values and allow easy scaling of data to the window area. For amore complete discussion of coordinate systems, see "Understanding Coordinate Systems" in youruser’s guide.CompatibilitySTANDARD GRAPHICS QUICKWIN GRAPHICS LIBSee Also: “GETVIEWCOORD, GETVIEWCOORD_W”, “GETWINDOWCOORD”,“SETCLIPRGN”, “SETVIEWPORT”Example! Program to demonstrate GETPHYSCOORD, GETVIEWCOORD,! and GETWINDOWCOORD. Build as QuickWin or Standard! GraphicsUSE IFQWINTYPE (xycoord) viewxy, physxyTYPE (wxycoord) windxyCALL SETVIEWPORT(INT2(80), INT2(50), &INT2(240), INT2(150))! Get viewport equivalent of point (100, 90)CALL GETVIEWCOORD (INT2(100), INT2(90), viewxy)! Get physical equivalent of viewport coordinatesCALL GETPHYSCOORD (viewxy%xcoord, viewxy%ycoord, &physxy)2-134

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!