node89.html
来自「htmdoc for html coding」· HTML 代码 · 共 107 行
HTML
107 行
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.2 Final//FR"><!-- Converted with LaTeX2HTML 95.1 (Fri Jan 20 1995) --><!-- by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds --><!-- Modified Simulog 03/97 --><HTML><HEAD><TITLE>6.1 Definition of the terminal and input surface</TITLE><LINK REL=STYLESHEET TYPE="text/css" HREF="./Modulef.css" TITLE="Modulef CSS"><meta name="description" value="6.1 Definition of the terminal and input surface"><meta name="keywords" value="Guide6"><meta name="resource-type" value="document"><meta name="distribution" value="global"></HEAD><BODY BGCOLOR="#FFFFFF"><P> <IMG SRC="../icons/smallmod.gif" WIDTH=211 HEIGHT=50 ALIGN=BOTTOM ALT="Modulef"><A NAME=tex2html1515 HREF="node88.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/previous_motif.gif" ALT="previous"></A><A NAME=tex2html1521 HREF="node88.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/up_motif.gif" ALT="up"></A><A NAME=tex2html1523 HREF="node90.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/next_motif.gif" ALT="next"></A><A NAME=tex2html1525 HREF="node2.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/contents_motif.gif" ALT="contents"></A><A HREF="../Guide6-18/node89.html"><IMG BORDER=0 SRC="../icons/zoom18.gif" ALIGN=BOTTOM ALT="[BIG]"></A><A HREF="../Guide6-14/node89.html"><IMG BORDER=0 SRC="../icons/zoom14.gif" ALIGN=BOTTOM ALT="[Normal]"></A><A HREF="../Guide6-10/node89.html"><IMG BORDER=0 SRC="../icons/zoom10.gif" ALIGN=BOTTOM ALT="[small]"></A><BR><B> Next: </B> <A NAME=tex2html1524 HREF="node90.html">6.2 Interaction subroutines</A><B>Up: </B> <A NAME=tex2html1522 HREF="node88.html">6 Input management</A><B> Prev: </B> <A NAME=tex2html1516 HREF="node88.html">6 Input management</A><B><A HREF="node2.html" >Contents</A></B><HR SIZE=3 WIDTH="75%"><H1><A NAME=SECTION05610000000000000000>6.1 Definition of the terminal and input surface</A></H1><P><P><P>As for the output, it is necessary to declare the input terminal:<P><UL><LI><P><PRE> SUBROUTINE DEVICI(N, PARAM) INTEGER N, PARAM(2)</PRE><P>selects input terminal <A NAME=3284> </A> N as active terminal.<P>PARAM is a supplementary parameter for the input terminal.For example, it can define the type of cursor that the user can move around on the screen(0, 1 or 2). When initializing with<A NAME=3285> </A> by DEFDEV, DEVICI is automatically called.<P></UL><P>The input surface employed to enter the coordinates is <em> a priori</em> distinct from the visualization surface. For example, a graphics table has, in general, different dimensions than those of thescreen in use, and it is not always desirable to make them correspond exactly.This is the reason why FORTRAN 3D enables us to define, as for graphics output,a frame on the input surfaceand a mask in the corresponding user space.<P><UL><LI><PRE> SUBROUTINE FENTRI(XMIN, XMAX, YMIN, YMAX) REAL XMIN, XMAX, YMIN, YMAX</PRE><P>defines a <A NAME=3289> </A> frame on the input surface<A NAME=3290> </A>, with the coordinates of thelower left corner, (XMIN, YMIN), and those of the upper right corner, (XMAX, YMAX). It is quite frequent thatthe dimensions of FENTRI and FENTR2 are the same for reasons that will be revealed in the subroutines described in the following section. The coordinates are given in centimeters.<P><LI><P><PRE> SUBROUTINE MASQUI(XMIN, XMAX, YMIN, YMAX) REAL XMIN, XMAX, YMIN, YMAX</PRE><P>defines a<A NAME=3291> </A> mask<A NAME=3292> </A> in the user space corresponding to the frame defined by FENTRI.The lower left corner of the frame is given by (XMIN, YMIN) and the upper right corner by(XMAX, YMAX). Here also, as for subroutine MASQU2, the unit system selected for the mask depends onthe user. It is quite frequent that the dimensions of MASQUI and MASQU2 are the same for reasons that will be revealed in the subroutines described in the following section.<P></UL><P>Interrogation subroutines exist to help the user to adapt the dimensions of the masks and windows better.<P><P><P><HR SIZE=3 WIDTH="75%"><IMG SRC="../icons/smallmod.gif" WIDTH=211 HEIGHT=50 ALIGN=BOTTOM ALT="Modulef"><A NAME=tex2html1515 HREF="node88.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/previous_motif.gif" ALT="previous"></A><A NAME=tex2html1521 HREF="node88.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/up_motif.gif" ALT="up"></A><A NAME=tex2html1523 HREF="node90.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/next_motif.gif" ALT="next"></A><A NAME=tex2html1525 HREF="node2.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/contents_motif.gif" ALT="contents"></A><A HREF="../Guide6-18/node89.html"><IMG BORDER=0 SRC="../icons/zoom18.gif" ALIGN=BOTTOM ALT="[BIG]"></A><A HREF="../Guide6-14/node89.html"><IMG BORDER=0 SRC="../icons/zoom14.gif" ALIGN=BOTTOM ALT="[Normal]"></A><A HREF="../Guide6-10/node89.html"><IMG BORDER=0 SRC="../icons/zoom10.gif" ALIGN=BOTTOM ALT="[small]"></A><BR><B> Next: </B> <A NAME=tex2html1524 HREF="node90.html">6.2 Interaction subroutines</A><B>Up: </B> <A NAME=tex2html1522 HREF="node88.html">6 Input management</A><B> Prev: </B> <A NAME=tex2html1516 HREF="node88.html">6 Input management</A><B><A HREF="node2.html" >Contents</A></B><BR> <HR><P><ADDRESS></ADDRESS></BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?