⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 node90.html

📁 htmdoc for html coding
💻 HTML
字号:
<!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.2 Interaction subroutines</TITLE><LINK REL=STYLESHEET TYPE="text/css"	HREF="./Modulef.css" TITLE="Modulef CSS"><meta name="description" value="6.2 Interaction subroutines"><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=tex2html1526 HREF="node89.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/previous_motif.gif"	ALT="previous"></A><A NAME=tex2html1532 HREF="node88.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/up_motif.gif"	ALT="up"></A><A NAME=tex2html1534 HREF="node91.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/next_motif.gif"	ALT="next"></A><A NAME=tex2html1536 HREF="node2.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/contents_motif.gif"	ALT="contents"></A><A HREF="../Guide6-18/node90.html"><IMG BORDER=0 SRC="../icons/zoom18.gif" ALIGN=BOTTOM	ALT="[BIG]"></A><A HREF="../Guide6-14/node90.html"><IMG BORDER=0 SRC="../icons/zoom14.gif" ALIGN=BOTTOM	ALT="[Normal]"></A><A HREF="../Guide6-10/node90.html"><IMG BORDER=0 SRC="../icons/zoom10.gif" ALIGN=BOTTOM	ALT="[small]"></A><BR><B> Next: </B> <A NAME=tex2html1535 HREF="node91.html">6.3 Entering a position in the </A><B>Up: </B> <A NAME=tex2html1533 HREF="node88.html">6 Input management</A><B> Prev: </B> <A NAME=tex2html1527 HREF="node89.html">6.1 Definition of the  terminal and </A><B><A HREF="node2.html"	>Contents</A></B><HR SIZE=3 WIDTH="75&#37;"><H1><A NAME=SECTION05620000000000000000>6.2 Interaction subroutines</A></H1><P><P><P><UL><LI><P><PRE>      SUBROUTINE GETXY(X, Y)      REAL X, Y</PRE><P> returns<A NAME=3296>&#160;</A> <A NAME=3297>&#160;</A> the coordinates of the graphics cursor (visible  on the visualization surface in the form of a crossor a small rectangle), expressed in the user space and defined by  MASQUI and FENTRI,in  (X, Y).  The unit system, in which these coordinates are expressed, is defined by  MASQUI.<P>If we decide to take the same dimensions for MASQUI and MASQU2 and is the visualized object is a two-dimensional object, then the coordinates returned in X and Y correspondexactly to the object's real coordinates.<P>If, for the same masks, the visualization object is three-dimensional, then the coordinates obtained are those obtained by  MASQU2 defined by PRSPCT, and it is placed on the plane, Z = -1. In other words, the true coordinates  obtained are (X, Y, -1.), expressed in the object's unit system, where:<P><DIV ALIGN=center><IMG BORDER=0 ALIGN=MIDDLE ALT="" SRC="img138.gif"></DIV><DIV ALIGN=center><IMG BORDER=0 ALIGN=MIDDLE ALT="" SRC="img139.gif"></DIV><P><LI><P><PRE>      SUBROUTINE GETXYC(X, Y, IC)      REAL X, Y      CHARACTER*1 IC</PRE><P>This subroutine is identical to the <A NAME=3298>&#160;</A> preceding one, except for IC which contains the charactercorresponding to the key used for input. If the terminal is implemented well, we will have the followingrelationship:<P>  <DIV ALIGN=center><IMG BORDER=0 ALIGN=MIDDLE ALT="" SRC="img140.gif"></DIV><P><LI><P><PRE>      SUBROUTINE STROKE(NMAX, NB, X, Y)      INTEGER NMAX, NB      REAL X(NMAX), Y(NMAX)</PRE><P> returns in arrays<A NAME=3299>&#160;</A>  X  and Y  a maximum of  NMAX  coordinates pairs defined in the user space.The actual number of  points input is indicated in NB.<P>This function corresponds to the input of a curve, point by point (map recording or scheme recording).<P><LI><P><PRE>      SUBROUTINE CSTROK(NMAX, NB, X, Y, DELMIN, DELMAX)      INTEGER NMAX, NB      REAL X(NMAX), Y(NMAX), DELMIN, DELMAX</PRE><P>returns in <A NAME=3300>&#160;</A> arrays X and Y a maximum of NMAX coordinate pairs defined in the user space.The actual number of  points input is indicated in NB.<P>  DELMIN and DELMAX indicate the minimum (elimination of noise) and maximum (elimination of coding errors) distances, respectively, between two consecutive  points.<P>This function corresponds to the input of a curve by hand.<P> <LI><P><PRE>      SUBROUTINE GETEXT(OUTEXT, X, Y, NBCMAX, INTEXT, NBCIN)      CHARACTER*(*) OUTEXT, INTEXT      INTEGER NBCMAX, NBCIN      REAL X, Y</PRE><P>returns a string of  NBCMAX characters <A NAME=3301>&#160;</A>  maximum in array INTEXT. The actual number of characters input is indicated in  NBCIN. An initial text contained in array OUTEXT is first displayed at position (X, Y) defined on the visualization surface. The initial textis cannot be edited. If, when called,  NBCIN is non-zero, the NBCIN characters of  INTEXT are displayed and those which  can be edited.<P>On exit,  (X, Y) is the position of the character which follows the last printed character.<P><LI><P><PRE>      SUBROUTINE GETNUM(OUTEXT,X,Y,R,I,B,ITYP,ICONT,MINI,MAXI,MINR,MAXR)      CHARACTER*(*)OUTEXT      INTEGER I, ITYP, ICONT, MINI, MAXI      REAL X, Y, R, MINR, MAXR      LOGICAL B</PRE><P> returns on of the following values <A NAME=3302>&#160;</A> in ITYP: either an integer number in I   (ITYP = 0), or a real value in  R  (ITYP = 1), or a logical entity in  B (ITYP = 2).<P>Eventually, the text  contained in the character string, OUTEXT, is displayed  first at  position (X, Y) on the visualization  surface (variable name, comment,...)as well as the current value of the number.<P>Finally, is ICONT is non-zero, the number entered can be restrained to lie between two limits indicated by MINI and  MAXI for an integer, and between  MINR and MAXR for a real.<P><LI><P><PRE>      SUBROUTINE GETHIT(HITSEG, HITNAM)      INTEGER HITSEG, HITNAM</PRE><P>returns<A NAME=3304>&#160;</A> the name of a segment, using the designation device, in  HITSEG.  The name of the designated element is stored in  HITNAM (see BGNA and ENDAS).<P></UL><P><P><P> <HR SIZE=3 WIDTH="75&#37;"><IMG SRC="../icons/smallmod.gif" WIDTH=211 HEIGHT=50 ALIGN=BOTTOM	ALT="Modulef"><A NAME=tex2html1526 HREF="node89.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/previous_motif.gif"	ALT="previous"></A><A NAME=tex2html1532 HREF="node88.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/up_motif.gif"	ALT="up"></A><A NAME=tex2html1534 HREF="node91.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/next_motif.gif"	ALT="next"></A><A NAME=tex2html1536 HREF="node2.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/contents_motif.gif"	ALT="contents"></A><A HREF="../Guide6-18/node90.html"><IMG BORDER=0 SRC="../icons/zoom18.gif" ALIGN=BOTTOM	ALT="[BIG]"></A><A HREF="../Guide6-14/node90.html"><IMG BORDER=0 SRC="../icons/zoom14.gif" ALIGN=BOTTOM	ALT="[Normal]"></A><A HREF="../Guide6-10/node90.html"><IMG BORDER=0 SRC="../icons/zoom10.gif" ALIGN=BOTTOM	ALT="[small]"></A><BR><B> Next: </B> <A NAME=tex2html1535 HREF="node91.html">6.3 Entering a position in the </A><B>Up: </B> <A NAME=tex2html1533 HREF="node88.html">6 Input management</A><B> Prev: </B> <A NAME=tex2html1527 HREF="node89.html">6.1 Definition of the  terminal and </A><B><A HREF="node2.html"	>Contents</A></B><BR> <HR><P><ADDRESS></ADDRESS></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -