XGL Test Suite User's Guide
  Procure somente este livro
Fazer download desta apostila em PDF

Circle Test Descriptions

9

This chapter describes the Circle test programs. The following is defined for each test program:
  • Name of the test program
  • Test types (See the section, "Denizen Test Types" on page 2 for the different test types.)
  • Description of the test program
  • Attributes tested by the program
  • Operators tested by the program
  • Output from the test program
· circle0
Test Types:INDEX, SM
Description:Checks five points of a 2D indexed circle
Attributes Tested: See Table 9-1, Column A at the end of this chapter.
Operators Tested: xgl_multicircle
                    xgl_object_set
Output:             One 2D indexed circle

· circle1
Test Types:INDEX, SM
Description:Checks five points of each of three 2D indexed circles
Attributes Tested: See Table 9-1, Column A at the end of this chapter.
Operators Tested: xgl_multicircle
Output:· circle2Three 2D indexed circles
Test Types:INDEX, SM
Description:Checks for the presence/non-presence of edges in three circles, each drawn with edges both on and off
Attributes Tested: XGL_CTX_EDGE_COLOR and Table 9-1, Column A at the end of this chapter
Operators Tested: xgl_multicircle
                    xgl_object_set
Output:             Three 2D indexed circles drawn twice, once with edges on
                    and once with them off

· circle3
Test Types:INDEX, SM
Description:Checks the patterns and the edges of six 2D indexed circles
Attributes Tested: See Table 9-1, Columns A and B at the end of this chapter.
Operators Tested: xgl_multicircle
Output:· circle4Three circles with different patterns drawn twice, once with edges on and once with them off
Test Types:RGB, SM
Description:Checks five points of each of several RGB colored circles. Colors are all colors in a color cube for 8-bit rasters and 256 random colors for other rasters.
Attributes Tested: XGL_DEV_COLOR_MAP
                    XGL_CMAP_COLOR_CUBE_SIZE
                    and Table 9-1, Column A at the end of this chapter
Operators Tested:   xgl_multicircle
                    xgl_object_set
                    xgl_object_get
Output:             Several RGB circles of different colors

· circle5
Test Types:RGB, SM
Description:RGB version of circle0
Attributes Tested: See Table 9-1, Column A at the end of this chapter.
Operators Tested: xgl_multicircle
                    xgl_object_set
Output:             One 2D RGB circle

· circle6
Test Types:RGB, SM
Description:RGB version of circle1
Attributes Tested: See Table 9-1, Column A at the end of this chapter.
Operators Tested: xgl_multicircle
                    xgl_object_set
Output:             Three 2D RGB circles

· circle7
Test Types:RGB, SM
Description:RGB version of circle2
Attributes Tested: XGL_CTX_EDGE_COLOR and Table 9-1, Column A at the end of this chapter
Operators Tested: xgl_multicircle
                    xgl_object_set
Output:             Three 2D RGB circles drawn twice, once with edges on
                    and once with them off

· circle8
Test Types:RGB, SM
Description:RGB version of circle3
Attributes Tested: See Table 9-1, Columns A and B at the end of this chapter.
Operators Tested: xgl_multicircle
Output:· circle9Three circles with different patterns drawn twice, once with edges on and once with them off
Test Types:INDEX, SM
Description:3D version of circle0
Attributes Tested: See Table 9-1, Column A at the end of this chapter.
Operators Tested: xgl_multicircle
                    xgl_object_set
Output:             One 3D indexed circle

· circle10
Test Types:INDEX, SM
Description:3D version of circle1
Attributes Tested: See Table 9-1, Column A at the end of this chapter.
Operators Tested: xgl_multicircle
Output:· circle11Three 3D indexed circles
Test Types:INDEX, SM
Description:3D version of circle2
Attributes Tested: XGL_CTX_EDGE_COLOR and Table 9-1, Column A at the end of this chapter
Operators Tested: xgl_multicircle
                    xgl_object_set
Output:             Three 3D indexed circles drawn twice, once with edges on
                    and once with them off

· circle12
Test Types:INDEX, SM
Description:3D version of circle3
Attributes Tested: See Table 9-1, Columns A and B at the end of this chapter.
Operators Tested: xgl_multicircle
Output:· circle13Three circles with different patterns drawn twice, once with edges on and once with them off
Test Types:RGB, SM
Description:3D version of circle4
Attributes Tested: XGL_DEV_COLOR_MAP
                    XGL_CMAP_COLOR_CUBE_SIZE
                    and Table 9-1, Column A at the end of this chapter
Operators Tested:   xgl_multicircle
                    xgl_object_set
                    xgl_object_get
Output:             Several RGB circles of different colors

· circle14
Test Types:RGB, SM
Description:3D version of circle5
Attributes Tested: See Table 9-1, Column A at the end of this chapter.
Operators Tested: xgl_multicircle
                    xgl_object_set
Output:             One 3D RGB circle

· circle15
Test Types:RGB, SM
Description:3D version of circle6
Attributes Tested: See Table 9-1, Column A at the end of this chapter.
Operators Tested: xgl_multicircle
                    xgl_object_set
Output:             Three 3D RGB circles

· circle16
Test Types:RGB, SM
Description:3D version of circle7
Attributes Tested: XGL_CTX_EDGE_COLOR and Table 9-1, Column A at the end of this chapter
Operators Tested: xgl_multicircle
                    xgl_object_set
Output:             Three 3D RGB circles drawn twice, once with edges on
                    and once with them off

· circle17
Test Types:RGB, SM
Description:3D version of circle8
Attributes Tested: See Table 9-1, Columns A and B at the end of this chapter
Operators Tested: xgl_multicircle
                    xgl_object_set
                    xgl_object_get
Output:             Three circles with different patterns drawn twice, once
                    with edges on and once with them off

· circle18
Test Types:INDEX, SM
Description:Loops through every possible value for the plane mask, clears the plane mask by setting it to -1, and then sets it to -1^i. Sets the surface color to 0xff ^i, and then samples five points of the circle for this color.
Attributes Tested: XGL_CTX_PLANE_MASK
                    XGL_CTX_SURF_EDGE_FLAG
                    XGL_CURVE_METRIC_VDC
Operators Tested:   xgl_multicircle
                    xgl_object_set
Output:             Three sets of 0xff number of circles

· circle19
Test Types:INDEX, SM
Description:Four circles are rendered utilizing bounding box with non-null values, different index colors, and four different values for XGL_CTX_NURBS_CURVE_APPROX
Attributes Tested: See Table 9-1, Column C at the end of this chapter.
Operators Tested: xgl_multicircle
                    xgl_object_set
Output:             Four different colored circles, side by side, along the top
                    width of the window raster

· circle20
Test Types:INDEX, SM
Description:Four annotation circles are rendered utilizing bounding box with non-null values, different index colors, and four different values for XGL_CTX_NURBS_CURVE_APPROX and for their radius values
Attributes Tested: See Table 9-1, Column C at the end of this chapter.
Operators Tested: xgl_multicircle
                    xgl_object_set
Output:             Four different colored index annotation circles with
                    different radius values

· circle21
Test Types:INDEX, SM
Description:Four different colored 3D index circles rendered utilizing bound box with non-null values and different values for XGL_CTX_NURBS_CURVE_APPROX with each circle inside a different plane composed of non-normalized directional vectors
Attributes Tested: See Table 9-1, Column C at the end of this chapter.
Operators Tested: xgl_multicircle
Output:.....Four different colored 3D index circles with each circle inside a different plane
· circle22
Test Types:INDEX, SM
Description:Seven point type I2D circles with different centers, radiuses, bounding boxes, and colors. Four translated and scaled I2D circles through the utilization of transformations for scaling and translation applied to the global model transformation.
Attributes Tested: XGL_CTX_GLOBAL_MODEL_TRANS
                    XGL_TRANS_REPLACE
                    XGL_TRANS_POSTCONCAT
                    and Table 9-1, Column A at the end of this chapter
Operators Tested:   xgl_object_set
                    xgl_multicircle
                    xgl_context_push
                    xgl_object_destroy
                    xgl_object_create
                    xgl_transform_scale
                    xgl_transform_translate
Output:             Seven different colored 2D index circles with varying

radiuses. Four different colored 2D index circles sheared through changes to their global model coordinate system.
· circle23
Test Types:RGB, CM
Description:Tests XGL_CTX_CURVE_APPROX_VALUE with
                    xgl_multicircle()
Attributes Tested:  XGL_CTX_CURVE_APPROX_VALUE
Operators Tested:   xgl_object_set
                    xgl_multicircle
Output:             Circles with apporximation values 100.0, 50.0, 25.0 and
                    10.0

Table 9-1
Column AColumn BColumn C
XGL_CTX_SURF_EDGE_FLAGXGL_SURF_FILL_STIPPLEXGL_CURVE_CONST_PARAM_ SUBDIV_BETWEEN_KNOTS
XGL_CTX_SURF_FRONT_COLORXGL_CTX_SURF_FPAT_POSITIONXGL_CTX_NURBS_CURVE_ APPROX_VAL
XGL_CURVE_METRIC_VDCXGL_CTX_SURF_FPATXGL_CTX_SURF_EDGE_FLAG
XGL_CTX_NURBS_CURVE_ APPROX_VALXGL_CTX_SURF_FRONT_FILL_ STYLEXGL_3D_CTX_SURF_FACE_ DISTINGUISH
XGL_MEM_RASXGL_CTX_SURF_FRONT_COLOR
XGL_RAS_DEPTHXGL_CURVE_METRIC_WC
XGL_RAS_WIDTHXGL_CURVE_CHORDAL_ DEVIATION_WC
XGL_RAS_HEIGHT

XGL_CTX_EDGE_COLOR
XGL_CURVE_CHORDAL_
DEVIATION_VDC