Modulefpreviousupnextcontents[BIG][Normal][small]
Next: 2.3 Association of names with elementary Up: 2 General tools Prev: 2.1 Defining the output terminal Contents


2.2 Screen management

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 facility is only available if the graphics terminal in use allows it. If not, all, or part of, the instructions which follow will be ineffective.

Remark:
If we do not use the screen management instructions, all the graphics commands take immediate effect.

Subroutine OPENG  is used to open a segment:

      SUBROUTINE OPENG(NOM)
      INTEGER NOM

This subroutine opens a segment called "NOM". If this segment does not exist already, it will be created. If it exists, it will be enriched. All graphics components created following this 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

     CALL OPENG(1)
       .....
       CALL OPENG(2)
         .....
         CALL OPENG(3)
          ....
         CALL CLOSEG
         .....
       CALL CLOSEG
       .....
     CALL CLOSEG

is identical to the following sequence:

     

     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

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.

The following subroutines correspond to useful screen management operations:


Modulefpreviousupnextcontents[BIG][Normal][small]
Next: 2.3 Association of names with elementary Up: 2 General tools Prev: 2.1 Defining the output terminal Contents