Design: 04.02.02.02/P10

This is an abstract, language-independent design. Grim details may be found in the corresponding source code. You may return to the documentation for the module containing this program design, or to the entire hierarchical table of topics covered by the PVT.


PROGRAM 10: Polymarker bundle index

CHARACTERISTICS: ynny

OPERATOR SCRIPT:

DEFINED POLYMARKER INDICES: All markers but one are identical
(drawn with the same attributes).  Identify the marker that is
different.

UNDEFINED POLYMARKER INDICES: One marker is drawn above the line
and several markers beneath it.  Normally, all of these will have
the same attributes.  Count up and report the number of markers
below the line which match the marker above the line in marker
type, marker size, and color.

DESIGN:

set all ASFs to BUNDLED

<inquire workstation state table lengths> to determine maximum
   number of entries in polymarker table
szbt   = maximum size of bundle table

*** *** ***   polymarker index

TEST: #SR 3 4 5 6
      "A defined polymarker index should cause the addressed
       entry in the bundle table to be used when rendering a
       polymarker."

mscf = marker size scale factor = some reasonable value
bundis = number of bundles to be displayed = min(8, szbt)
initialize all of bundis to: marker type = 3,
                             marker size scale factor = mscf
                             color index = 1

bundif = randomly selected bundle from bundis
set bundif = marker type   = 2
             marker size scale factor = 0.5 * mscf
             color      = 2

Display and label a polymarker for each bundle in bundis

OPQA/DEFINED POLYMARKER INDICES: which marker is different?
pass/fail depending on (marker with attributes from bundle #bundif
                        selected)

TEST: #SR 3 4 5 7
      "An undefined polymarker index should cause bundle number 1
       in the polymarker bundle table to be used when rendering a
       polymarker."

set ASFs to individual and draw marker with
   marker type = 4
   marker size = mscf
   color index = 2
draw a line beneath this marker

reset ASFs to bundled

set index #1 in bundle table to marker type   = 4
                                marker size   = mscf
                                marker color  = 2

u1,u2,u3 = 3 undefined, positive indices - all greater than
  maximum defined index in bundle table (szbt)
explct = number of explicit markers using bundle #1 = random integer
   from 0 to 4

display interleaved:
  three markers using bundle index u1,u2,u3,
  explct markers using bundle index 1

OPQA/UNDEFINED POLYMARKER INDICES: How many of the markers
  below the line have the same attributes as the marker above the
  line?
pass/fail depending on response = 3+explct

END PROGRAM 10