home *** CD-ROM | disk | FTP | other *** search
/ Unix System Administration Handbook 1997 October / usah_oct97.iso / rfc / 100s / rfc181.txt < prev    next >
Text File  |  1997-06-13  |  5KB  |  166 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.                          NETWORK WORKING GROUP
  8.  
  9.                         REQUEST FOR COMMENTS 181
  10.  
  11.                                NIC #7124
  12.  
  13.                              JUNE 27, 1971
  14.  
  15.  
  16.  
  17.                             JOHN Mc CONNELL
  18.  
  19.  
  20.                           AMES RESEARCH CENTER
  21.  
  22.                         MOFFET FIELD, CALIFORNIA
  23.  
  24.  
  25.  
  26.                        MODIFICATIONS TO RFC #177
  27.  
  28.  
  29.  
  30.  
  31. CATEGORY  D.6
  32. RFC's Obsoleted  none
  33. RFC's Updated    177
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.                                                                 [Page 1]
  59.  
  60.                       MODIFICATIONS TO RFC #177
  61.  
  62.     This RFC is intended to modifiy the proposal for a device
  63. independent graphical display description discussed in RFC #177.  Thanks
  64. are due to Stan Mantiply of Ames for his ideas.  The main changes are in
  65. the defini- tion of coordinate areas to avoid one problem encountered
  66. with the old definition and to provide more flexibility.  Terms used are
  67. those defined in RFC #177.
  68.  
  69.     The problem encountered in the previous proposal was that the areas
  70. of the NGS (network standard graphics screen), which were supposed to be
  71. absolute boundaries, could be crossed when a list was executed within
  72. that space.  Scaling of lists was also awkwardly done with specific
  73. commands in the network standard graphic display list (NGDL).
  74.  
  75.     Coordinates will still be defined with 16 bit unsigned normalized
  76. fractions.  This will leave the resolution of the picture up to the de-
  77. vice which eventually receives the NGDL.  The values will not now be
  78. tied to the NGS or an area of the screen, but will be fractional
  79. displace- ments from the lower left corner of the screen, an area, or an
  80. image space.
  81.  
  82.     Areas will still be rectangular and will be allowed to overlap, but
  83. not contain another area completely.  The attributes of an area are: its
  84. 16 bit integer name, by which it may be manipulated, two (x,y) pairs
  85. which will define its lower left and upper right corners with respect to
  86. the NGS.  No list executed in an area may cross its boundaries.  Within
  87. an area may be any number of image spaces which are dynamically defined
  88. with the execution of a list and define its relationship to the contain-
  89. ing area.
  90.  
  91.     The list item types 7 and 8 shall be changed from EXECUTE LIST
  92. (Name,x,y) and COPY LIST (Name,x,y) to EXECUTE LIST
  93. (Name,(Xl,Yl),(Xr,Yr)) and COPY LIST (Name,(Xl,Yl),(Xr,Yr))
  94. respectively.  The coordinate pairs (Xl,Yl) and (Xr,Yr) define the image
  95. area of that list as displacements from the lower left corner of the
  96. containing area.  If the list executes other lists within it, their
  97. image areas are defined as displacements from the image area of the list
  98. containing the execute command.  Thus each list can be scaled
  99. differently each time it is executed and may even be distorted if the
  100. image area defined has different ratios of X and Y lengths.  Lists
  101. executed within other lists will have the same relationship to their
  102. containing lists regardless of that lists's rela- tionship to the NGS
  103. area.  Since the initial image area is defined rela- tive to the NGSD
  104. area, no overlaps can occur.
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.                                                                 [Page 2]
  112.  
  113. If a table (item type = 9) is executed, the coordinate pairs it
  114. contains are relative to whatever area is valid at the time of its exe-
  115. cution.
  116.  
  117.     A change to the NGLI is implied.  Whenever an EXECUTE LIST command
  118. is encountered, the current state is saved, a new current origin is com-
  119. puted, NGLP is reset to zero, and new X and Y scale factors must be cal-
  120. culated to transform the coordinates in the new list to actual screen
  121. coor- dinates.
  122.  
  123.     Another construct for graphics processing will be added.  This is
  124. the mode stack for each graphics mode.  It will be used for saving and
  125. restoring character and vector mode values as lists are recursively exe-
  126. cuted.  Four new list items will be added to handle these operations.
  127.  
  128.    PUSH CHARACTER MODE    (item type = 14)
  129.    PUSH VECTOR MODE       (item type = 15)
  130.    POP CHARACTER MODE     (item type = 16)
  131.    POP VECTOR MODE        (item type = 17)
  132.  
  133.     The DEFINE LIST command (type = 1) shall have its parameters
  134. changed.  It shall have two parameters, a 16 bit integer name, by which
  135. it may be manipulated and referenced, and a 16 bit integer defining the
  136. length of the list in bytes rather than items.  This change is intended
  137. to make processing the NGDS easier and will eliminate the TABLE item
  138. (type = 11).
  139.  
  140.     The first three list items should have the WORD IMAGE eliminated
  141. from them, since they are defining NGS areas now.
  142.  
  143.     The list command DEFINE IMAGE ARE (type = 2) shall be changed to
  144. DEFINE AREA for the same reasons.
  145.  
  146.  
  147.        [ This RFC was put into machine readable form for entry ]
  148.          [ into the online RFC archives by Gert Doering 6/97 ]
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.                                                                 [Page 3]
  165.  
  166.