Module #04.02.05.04 : Pattern table

All PVT documentation can be found under PHIGS Validation Tests - Overview. You may also return to the hierarchical table of topics covered by the PVT. For an explanation of the format of the individual module documentation, please see section 2.5 of the User's Guide.



DESCRIPTION: This module tests the table entries and other
workstation facilities for pattern.  These values control the
appearance of patterns when specified by fill area or fill area
set (which may be under either bundled or individual control).
The visual tests for pattern index (a.k.a. interior style index)
are found in 04.02.05.01 and 04.02.05.02 (individual attributes,
interior bundles, respectively).  The visual tests for the
geometric attributes are in 04.02.05.01.


SEMANTIC REQUIREMENTS:


SR1. <Set pattern representation> causes an entry to be defined.
#F 68
#D 5.14.1 5.14.2.1
#S
#T P02/2 P02/3 P02/6 P02/7 P02/9 P02/10

SR2. <Set pattern representation> sets the pattern colour index array of an entry in the pattern table.
#F 68
#D 5.14.2
#S 4.5.2/42/3
#T P01/1 P02/4 P02/8 P02/11
#X 04.02.05.01


SR3. <Inquire list of pattern indices> returns list of defined pattern indices.
#F 232
#D 5.14.1 5.14.2.1
#S
#T P02/1 P02/2 P02/3 P02/5 P02/6 P02/7 P02/9 P02/10 P02/12

SR4. <Inquire pattern representation> works for all defined entries.
#F 232 233
#D 5.14.1 5.14.2.1
#S
#T P02/12

SR5. <Inquire pattern representation> returns the pattern colour index array of an entry in the pattern table as set, when type of returned values specified as SET.
#F 233
#D 5.14.2.2
#S 4.11/108/1
#T P01/1 P02/4 P02/8 P02/11

SR6. <Inquire pattern representation> returns the pattern colour index array of an entry in the pattern table as realized, when type of returned values specified as REALIZED.
#F 233
#D 5.14.2.2
#S 4.11/108/1
#T P06/1 P06/3

SR7. <Inquire pattern representation> returns representation for pattern index number 1, if type of returned values is REALIZED, and pattern index is undefined.
#F 232 233
#D 5.14.2 5.14.2.1
#S
#T P02/5
*** *** *** ***   Maximum Size of pattern table   *** *** *** ***


SR8. <Inquire workstation state table lengths> returns the maximum size of pattern table.
#F 285
#D 6.21.6
#S
#T P03/1 P03/2 P03/3

SR9. If PATTERN interior style is not supported, the size of the pattern table returned by <inquire workstation state table lengths> is 0.
#F 285
#D 6.14.1.2 6.21.6
#S 6.7/324/1
#T P03/1

SR10. There must be at least 10 settable entries available in the pattern table.
#F 68 285
#D 5.14 6.21.6
#S 4.14/114/2 6.7/324/1
#T P03/2
*** *** *** ***   Predefined table facilities   *** *** *** ***


SR11. <Inquire pattern facilities> returns the number of predefined pattern indices.
#F 274
#D 6.16.1.1
#S
#T P04/1 P04/2 P04/4 P05/2

SR12. <Inquire predefined pattern representation> returns the pattern color index array for a predefined pattern index.
#F 275
#D 6.16.2
#S
#T P04/2 P04/3

SR13. If PATTERN interior style is supported on a workstation, then it must have at least 1 predefined pattern.
#F 274 275
#D 6.16.1.1 6.16.2
#S 4.14/114/2
#T P04/4
#X 04.02.05.02


SR14. If PATTERN interior style is not supported, the number of predefined patterns is 0.
#F 274
#D 6.14.1.2 6.16.1.1
#S 4.14/114/2 6.7/323/1
#T P04/1
#X 04.02.05.02


SR15. The n predefined patterns in the Workstation Description Table (WDT) are indexed as 1-n.
#F 275
#D 6.16.2
#S 6.7/323/1
#T P04/2 P05/2 #C The standard presumes this because in section 6.7 the predefined
pattern indices in the WDT do not mention index as a data item, nor
is there a way to get a list of these indices (<inquire pattern
facilities> gives the number of predefined indices, but not a list
thereof).

SR16. Immediately after <open workstation>, for each WDT predefined pattern there exists a Workstation State List (WSL) pattern table entry with the same attributes, including the same pattern index.
#F 232 233 275 3
#D 5.14.2 6.16.2
#S 4.5.2/42/3 6.6/317/1 6.7/323/1
#T P05/1 P05/2

SR17. Immediately after <open workstation>, the pattern table contains nothing but the entries initialized from the WDT predefined pattern table.
#F 232 233 275 3
#D 5.14.2 6.16.2
#S 4.5.2/42/3 6.6/317/1 6.7/323/1
#T P05/1
*** *** *** ***   Validity of predefined pattern indices    *** *** *** ***


SR18. Each predefined pattern has a color index array with color indices within range of the predefined color indices.
#F 275 277
#D 6.16.2.1 6.17.2.4
#S 5.12.1/232/2
#T P04/3
*** *** *** ***   Pattern color index array   *** *** *** ***


SR19. Any non-negative pattern color index may be specified in a pattern color index array when invoking <set pattern representation>.
#F 68
#D 5.14.2.2
#S
#T P06/2

SR20. A defined pattern color index is realized as itself.
#F 68 233
#D 5.14.2.2 5.15.3
#S
#T P06/1

SR21. An undefined pattern color index is realized as color index 1.
#F 68 233
#D 5.14.2.2 5.15.3
#S
#T P06/3
LOCAL DICTIONARY:

  Functions ---
  003: popwk   <open workstation>
  068: pspar   <set pattern representation>
  232: pqepai  <inquire list of pattern indices>
  233: pqpar   <inquire pattern representation>
  274: pqpaf   <inquire pattern facilities>
  275: pqppar  <inquire predefined pattern representation>
  277: pqcf    <inquire colour facilities>
  285: pqwksl  <inquire workstation state table lengths>
 
  Data Structures ---
  5  ...  workstation_state_list
  5.14  ...  pattern_entry
  5.14.1  ...  number_of_pattern_table_entries
  5.14.2  ...  pattern_table
  5.14.2.1  ...  pattern_index
  5.14.2.2  ...  pattern_colour_index_array
  5.15  ...  colour_entry
  5.15.3  ...  colour_table
  6  ...  workstation_description_table
  6.14  ...  interior_entry
  6.14.1  ...  interior_facilities
  6.14.1.2  ...  list_of_available_interior_styles
  6.16  ...  pattern_entry
  6.16.1  ...  pattern_facilities
  6.16.1.1  ...  number_of_predefined_pattern_indices
  6.16.2  ...  predefined_pattern_table
  6.16.2.1  ...  pattern_colour_index_array
  6.17  ...  colour_entry
  6.17.2  ...  colour_facilities
  6.17.2.4  ...  number_of_predefined_colour_indices
  6.21  ...  maximum_table_lengths
  6.21.6  ...  maximum_number_of_pattern_indices
 
SEMANTIC CROSS-REFERENCES:
  04.02.05.01/SR15 04.02.05.01/SR20 04.02.05.01/SR21
  04.02.05.01/SR75 04.02.05.01/SR76 04.02.05.01/SR77
  04.02.05.01/SR78 04.02.05.02/SR34 04.02.05.02/SR41




PROGRAM 1: Simple setting and inquiring

You may inspect either the design or code for this program.


PROGRAM 2: Setting entries of various kinds

You may inspect either the design or code for this program.


PROGRAM 3: Pattern table length

You may inspect either the design or code for this program.


PROGRAM 4: Validity of predefined pattern table

You may inspect either the design or code for this program.


PROGRAM 5: WSL pattern table initialized properly

You may inspect either the design or code for this program.


PROGRAM 6: Pattern color index array

You may inspect either the design or code for this program.

End of documentation for 04.02.05.04