📄 node72.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>2.2 Screen management</TITLE><LINK REL=STYLESHEET TYPE="text/css" HREF="./Modulef.css" TITLE="Modulef CSS"><meta name="description" value="2.2 Screen management"><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=tex2html1323 HREF="node71.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/previous_motif.gif" ALT="previous"></A><A NAME=tex2html1329 HREF="node70.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/up_motif.gif" ALT="up"></A><A NAME=tex2html1331 HREF="node73.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/next_motif.gif" ALT="next"></A><A NAME=tex2html1333 HREF="node2.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/contents_motif.gif" ALT="contents"></A><A HREF="../Guide6-18/node72.html"><IMG BORDER=0 SRC="../icons/zoom18.gif" ALIGN=BOTTOM ALT="[BIG]"></A><A HREF="../Guide6-14/node72.html"><IMG BORDER=0 SRC="../icons/zoom14.gif" ALIGN=BOTTOM ALT="[Normal]"></A><A HREF="../Guide6-10/node72.html"><IMG BORDER=0 SRC="../icons/zoom10.gif" ALIGN=BOTTOM ALT="[small]"></A><BR><B> Next: </B> <A NAME=tex2html1332 HREF="node73.html">2.3 Association of names with elementary </A><B>Up: </B> <A NAME=tex2html1330 HREF="node70.html">2 General tools</A><B> Prev: </B> <A NAME=tex2html1324 HREF="node71.html">2.1 Defining the output terminal</A><B><A HREF="node2.html" >Contents</A></B><HR SIZE=3 WIDTH="75%"><H1><A NAME=SECTION05220000000000000000>2.2 Screen management</A></H1><P><P><P>In order to facilitate programming, FORTRAN 3D allows us to regroup the elementary components into "segments". Once constituted, a segment can be manipulated individually. This facilityis only available if the graphics terminal in use allows it. If not, all, or part of, the instructions which follow will be ineffective.<P><DL COMPACT><DT>Remark:<DD> If we do not use the screen management instructions, all the graphics commandstake immediate effect.<P> </DL><P>Subroutine OPENG<A NAME=3008> </A> is used to open a segment:<P><PRE> SUBROUTINE OPENG(NOM) INTEGER NOM</PRE><P>This subroutine opens a segment called "NOM". If this segment does not exist already, it will becreated. If it exists, it will be enriched. All graphics components created followingthis command will be added to the segment's contents until such a time as a CLOSEG command, or another OPENG command is encountered: In fact, it is possible to nest the OPENG and CLOSEG commands. Thus<P><PRE> CALL OPENG(1) ..... CALL OPENG(2) ..... CALL OPENG(3) .... CALL CLOSEG ..... CALL CLOSEG ..... CALL CLOSEG</PRE><P>is identical to the following sequence:<P><PRE> CALL OPENG(1) ..... CALL CLOSEG CALL OPENG(2) ..... CALL CLOSEG CALL OPENG(3) ..... CALL CLOSEG CALL OPENG(2) ..... CALL CLOSEG CALL OPENG(1) ..... CALL CLOSEG</PRE><P>There can be up to ten levels of nesting.Depending on the segment's status, visible or not (see commands DSPLAY and REMOVG), the graphics components will appear, or not, immediately after its description.<P><P><P>The following subroutines correspond to useful screen management operations:<P><UL><LI><P><PRE> SUBROUTINE CLOSEG</PRE><P>indicates the<A NAME=3010> </A> closing of a segment currently open. If the segment does not exist, thiscommand is without effect.<P><LI><P><PRE> SUBROUTINE KILL(NOM) INTEGER NOM</PRE><P>deletes the<A NAME=3011> </A> segment called NOM. If the segment was displayed, it will disappear fromthe screen. If the segment does not exist, thiscommand is without effect.<P><LI><P><PRE> SUBROUTINE DSPLAY(NOM) INTEGER NOM</PRE><P>display<A NAME=3012> </A> segment NOM on the screen. If it is already displayed, or if it does not exist, thiscommand is without effect.<P><LI><P><PRE> SUBROUTINE REMOVG(NOM) INTEGER NOM</PRE><P>removes<A NAME=3013> </A> segment NOM from the screen. If it is not displayed, or if it does not exist, thiscommand is without effect.<P><LI><P><PRE> SUBROUTINE HIGHLT(NOM, I) INTEGER NOM, I</PRE><P>highlights<A NAME=3014> </A> segment NOM by an arbitrary method (flashing, changing the color or intensity). The choice between these different techniques depends on the terminal used.It is therefore necessary to do it in such a manner as not to interfere withthe characteristics of the graphics components.The value of "I" indicates if there is highlighting (value 1), ornot (value 0). if the segment does not exist, this command is without effect.<P><LI><P><PRE> SUBROUTINE CLEAN</PRE><P>cleans <A NAME=3015> </A> the screen<A NAME=3016> </A> completely (all existing segments are erased, but not deleted, at this moment).This command must be interpreted by all terminals.<P><LI><P><PRE> SUBROUTINE UPDATE</PRE><P>up-dates the<A NAME=3017> </A> screen. In fact, certain terminals requires the complete description of the image before producing it. Others, for efficiency reasons, only performmodifications on an explicit command.<P><LI><P><PRE> SUBROUTINE HARDCP(CHOIX1, CHOIX2) INTEGER CHOIX1, CHOIX2</PRE><P>produces a hardcopy<A NAME=3018> </A> of the terminal's screen<A NAME=3019> </A>.<P><DL COMPACT><DT>CHOIX1:<DD> A choice <IMG BORDER=0 ALIGN=MIDDLE ALT="" SRC="img22.gif"> 0, relating to several hardcopy possibilities. <UL><LI> 0 : automatic choice, we let the driver choose a standard output. </UL><P><DT>CHOIX2:<DD> A choice <IMG BORDER=0 ALIGN=MIDDLE ALT="" SRC="img22.gif"> 0, relating to the color possibilities of the output terminal, where: <UL><LI> 0 : automatic choice, we let the driver choose according to the screen; <LI> 1 : black and white output; <LI> 2 : color output. </UL> </DL></UL><P><P><P><HR SIZE=3 WIDTH="75%"><IMG SRC="../icons/smallmod.gif" WIDTH=211 HEIGHT=50 ALIGN=BOTTOM ALT="Modulef"><A NAME=tex2html1323 HREF="node71.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/previous_motif.gif" ALT="previous"></A><A NAME=tex2html1329 HREF="node70.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/up_motif.gif" ALT="up"></A><A NAME=tex2html1331 HREF="node73.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/next_motif.gif" ALT="next"></A><A NAME=tex2html1333 HREF="node2.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/contents_motif.gif" ALT="contents"></A><A HREF="../Guide6-18/node72.html"><IMG BORDER=0 SRC="../icons/zoom18.gif" ALIGN=BOTTOM ALT="[BIG]"></A><A HREF="../Guide6-14/node72.html"><IMG BORDER=0 SRC="../icons/zoom14.gif" ALIGN=BOTTOM ALT="[Normal]"></A><A HREF="../Guide6-10/node72.html"><IMG BORDER=0 SRC="../icons/zoom10.gif" ALIGN=BOTTOM ALT="[small]"></A><BR><B> Next: </B> <A NAME=tex2html1332 HREF="node73.html">2.3 Association of names with elementary </A><B>Up: </B> <A NAME=tex2html1330 HREF="node70.html">2 General tools</A><B> Prev: </B> <A NAME=tex2html1324 HREF="node71.html">2.1 Defining the output terminal</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 + -