Contained Within
Find More Documentation
Featured Support Resources
| Download this book in PDF
CGM Test Descriptions
8
- This chapter describes the Computer Graphics Metafile (CGM) 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
· cgm0
-
| Test Types: | INDEX, SM |
| Description: | Tests currently implemented CGM VDC extents and attributes listed below. Bare bones case test: draws line for XGL_VDC_MAP_ASPECT. Also see if setting the two different CGM VDC extents takes effect, and if the XGL_CGM_SCALE_FACT are properly recorded in the CGM output file for XGL_CGM_METRIC. |
- Attributes Tested: XGL_CGM_VDC_EXT_SHORT and XGL_CGM_VDC_EXT_LONG for XGL_CGM_CLEAR_TEXT CGM output file type, XGL_CGM_CLEAR_TEXT
-
-
XGL_VDC_MAP_ASPECT
XGL_CGM_SCALE_FACT
XGL_CGM_METRIC
Operators Tested: None
Output: A line
· cgm1
-
| Test Types: | INDEX, SM |
| Description: | Tests currently implemented CGM VDC extents, and attributes listed below. Verifies line types, line width as well as line colors are properly output to the CGM output file. |
- Attributes Tested: XGL_CGM_VDC_EXT_SHORT and
-
-
XGL_CGM_VDC_EXT_LONG for XGL_CGM_CLEAR_TEXT
Operators Tested: None
Output: CGM output file type
· cgm2
-
| Test Types: | INDEX, SM |
| Description: | Tests currently implemented CGM VDC extents and attributes listed below. Verifies line types, line width as well as line colors are properly output to the CGM output file when they are pushed and popped from stack. |
- Attributes Tested: XGL_CGM_VDC_EXT_SHORT and
- Operators Tested: None
-
| Output:· cgm3 | CGM output file type |
| Test Types: | INDEX, SM |
| Description: | Tests currently implemented CGM VDC extents and attributes listed below. Verifies line and marker clipping are properly output to the CGM output file. |
- Attributes Tested: XGL_CGM_VDC_EXT_SHORT and
-
-
XGL_CGM_VDC_EXT_LONG for XGL_CGM_CLEAR_TEXT
Operators Tested: None
-
| Output:· cgm4 | CGM output file type |
| Test Types: | INDEX, SM |
| Description: | Tests currently implemented CGM VDC extents and attributes listed below. Verifies transformed lines are properly output when pushed and popped on the stack for local, global and view transformations. |
- Attributes Tested: XGL_CGM_VDC_EXT_SHORT and
-
-
XGL_CGM_VDC_EXT_LONG for XGL_CGM_CLEAR_TEXT
Operators Tested: None
Output: CGM output file type
· cgm5
-
| Test Types: | INDEX, SM |
| Description: | Tests currently implemented CGM VDC extents and attributes listed below. Checks that marker type, color and size are properly output to the CGM output file. |
- Attributes Tested: XGL_CGM_VDC_EXT_SHORT and
-
-
XGL_CGM_VDC_EXT_LONG for XGL_CGM_CLEAR_TEXT
Operators Tested: None
Output: CGM output file type
· cgm6
-
| Test Types: | INDEX, SM |
| Description: | Tests currently implemented CGM VDC extents and attributes listed below. Checks that marker size, type and color are properly recorded to the CGM output file when pushed and popped on stack. |
- Attributes Tested: XGL_CGM_VDC_EXT_SHORT and
-
-
XGL_CGM_VDC_EXT_LONG for XGL_CGM_CLEAR_TEXT
Operators Tested: None
Output: CGM output file type
· cgm7
-
| Test Types: | INDEX, SM |
| Description: | Tests currently implemented CGM VDC extents and attributes listed below. Checks that polygons interior style, interior color, edge type, edge width, edge flag are properly recorded in the CGM output file. |
- Attributes Tested: XGL_CGM_VDC_EXT_SHORT and
-
-
XGL_CGM_VDC_EXT_LONG for XGL_CGM_CLEAR_TEXT
Operators Tested: None
Output: CGM output file type
· cgm8
-
| Test Types: | INDEX, SM |
| Description: | Tests pushing & popping of contexts for xgl_polygon for the attributes fill style & colour. |
- Attributes Tested: XGL_CGM_DESCRIPTION
-
-
XGL_CGM_ENCODING
XGL_CGM_VDC_EXTENT
XGL_CGM_COLOR_MAP
Operators Tested: None
Output: CGM output file type
· cgm9
-
| Test Types: | INDEX, SM |
| Description: | Tests circle, circle_arc, circle_arc_close, ellipse, ellipse_arc, ellipse_arc_close |
- Attributes Tested: XGL_CGM_DESCRIPTION
-
-
XGL_CGM_ENCODING
XGL_CGM_VDC_EXTENT
XGL_CGM_COLOR_MAP
Operators Tested: xgl_multicircle
xgl_arc
Output: CGM output file type
· xgl_stream
-
| Test Types: | RGB, SM |
| Description: | Tests XGL object XGL_STREAM |
- Attributes Tested: XGL_STREAM
- Operators Tested: xgl_multirectangle
-
-
xgl_polygon
-
| Output:· set_get_cgm_attrs | CGM output file type |
| Test Types: | RGB, SM |
| Description: | Tests the setting and getting of CGM attributes |
- Attributes Tested: XGL_CGM_DEV
-
-
XGL_CGM_DESCRIPTION
XGL_CGM_ENCODING
XGL_CGM_PICTURE_DESCRIPTION
XGL_CGM_VDC_EXTENT
XGL_CGM_VDC_EXT_SHORT
XGL_CGM_SCALE_MODE
XGL_CGM_METRIC
XGL_CGM_SCALE_FACTOR
Operators Tested: xgl_object_create
xgl_object_get
xgl_object_destroy
Output: CGM output file type
|
|