Содержащиеся в
Найти другие документы
Ресурсы поддержки
| Загрузить это руководство в формате PDF
Set and Get Attribute Test Descriptions
23
- This chapter describes the Set and Get attribute 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
· set_get_ctx1
-
| Test Types: | INDEX, SM |
| Description: | Tests the setting and getting of the environment context attributes (nonpushable) |
- Attributes Tested: See Table 23-1, Column B at the end of this chapter.
- Operators Tested: xgl_object_get
- Output:.....None
· set_get_ctx2
-
| Test Types: | INDEX, SM |
| Description: | Tests the setting and getting of the depth cue context attributes |
- Attributes Tested: XGL_3D_CTX_DEPTH_CUE_COLOR
- Operators Tested: xgl_object_get
-
| Output:· set_get_ctx3 | None |
| Test Types: | INDEX, SM |
| Description: | Tests the setting and getting of the graphics context attributes (view model) |
- Attributes Tested: XGL_3D_CTX_MODEL_CLIP_PLANES
-
-
XGL_3D_CTX_MODEL_CLIP_PLANE_NUM
XGL_3D_CTX_VIEW_CLIP_PLUS_W_ONLY
XGL_CTX_CLIP_PLANES
XGL_CTX_DC_VIEWPORT
XGL_CTX_GLOBAL_MODEL_TRANS
XGL_CTX_LOCAL_MODEL_TRANS
XGL_CTX_VDC_MAP
XGL_CTX_VDC_WINDOW
XGL_CTX_VIEW_CLIP_BOUNDS
XGL_CTX_VIEW_TRANS
Operators Tested: xgl_object_get
xgl_object_set
Output: None
· set_get_ctx4
-
| Test Types: | INDEX, SM |
| Description: | Tests the setting and getting of the graphics context attributes--general rendering (Xgl) |
- Attributes Tested: XGL_3D_CTX_HLHSR_DATA
- Operators Tested: xgl_object_get
-
| Output:· set_get_ctx5 | None |
| Test Types: | INDEX, SM |
| Description: | Tests the setting and getting of the graphics context attributes--line rendering (Xgl) |
- Attributes Tested: XGL_3D_CTX_LINE_COLOR_INTERP
-
-
XGL_CTX_LINE_ALT_COLOR
XGL_CTX_LINE_CAP
XGL_CTX_LINE_COLOR
XGL_CTX_LINE_COLOR_SELECTOR
XGL_CTX_LINE_JOIN
XGL_CTX_LINE_MITER_LIMIT
XGL_CTX_LINE_PATTERN
XGL_CTX_LINE_STYLE
XGL_CTX_LINE_WIDTH_SCALE_FACTOR
Operators Tested: xgl_object_get
xgl_object_set
Output: None
· set_get_ctx6
-
| Test Types: | INDEX, SM |
| Description: | Tests the setting and getting of the graphics context attributes: |
-
- Curve and surface maximum tessellation
- Curve rendering (Xgl)
- Attributes Tested: XGL_CTX_MAX_TESSELLATION
-
-
XGL_CTX_MIN_TESSELLATION
XGL_CTX_NURBS_CURVE_APPROX
XGL_CTX_NURBS_CURVE_APPROX_VAL
Operators Tested: xgl_object_get
xgl_object_set
Output: None
· set_get_ctx7
-
| Test Types: | INDEX, SM |
| Description: | Tests the setting and getting of the graphics context attributes--surface rendering (Xgl) |
- Attributes Tested: XGL_CTX_ARC_FILL_STYLE
-
-
XGL_CTX_EDGE_ALT_COLOR
XGL_CTX_EDGE_COLOR
XGL_CTX_EDGE_PATTERN
XGL_CTX_EDGE_STYLE
XGL_CTX_EDGE_WIDTH_SCALE_FACTOR
XGL_CTX_SURF_EDGE_FLAG
XGL_CTX_SURF_FRONT_COLOR
XGL_CTX_SURF_FRONT_COLOR_SELECTOR
XGL_CTX_SURF_FRONT_FILL_STYLE
XGL_CTX_SURF_FRONT_FPAT
XGL_CTX_SURF_FRONT_FPAT_POSITION
XGL_CTX_SURF_INTERIOR_RULE
Operators Tested: xgl_object_get
xgl_object_set
Output: None
· set_get_ctx8
-
| Test Types: | INDEX, SM |
| Description: | Tests the setting and getting of the graphics context attributes--surface rendering (3D Xgl) [Test 1] |
- Attributes Tested: XGL_3D_CTX_SURF_BACK_COLOR
- Operators Tested: xgl_object_get
-
| Output:· set_get_ctx9 | None |
| Test Types: | INDEX, SM |
| Description: | Tests the setting and getting of the graphics context attributes--surface rendering (3D Xgl) [Test 2] |
- Attributes Tested: XGL_3D_CTX_SURF_BACK_AMBIENT
-
-
XGL_3D_CTX_SURF_BACK_DIFFUSE
XGL_3D_CTX_SURF_BACK_ILLUMINATION
XGL_3D_CTX_SURF_BACK_SPECULAR
XGL_3D_CTX_SURF_BACK_SPECULAR_COLOR
XGL_3D_CTX_SURF_FRONT_AMBIENT
XGL_3D_CTX_SURF_FRONT_DIFFUSE
XGL_3D_CTX_SURF_FRONT_ILLUMINATION
XGL_3D_CTX_SURF_FRONT_SPECULAR
XGL_3D_CTX_SURF_FRONT_SPECULAR_COLOR
Operators Tested: xgl_object_get
xgl_object_set
Output: None
· set_get_ctx10
-
| Test Types: | INDEX, SM |
| Description: | Tests the setting and getting of the graphics context attributes--surface rendering (3D Xgl) [Test 3] |
- Attributes Tested: XGL_3D_CTX_LIGHT_NUM
- Operators Tested: xgl_object_get
-
| Output:· set_get_ctx11 | None |
| Test Types: | INDEX, SM |
| Description: | Tests the setting and getting of the graphics context attributes--marker rendering (Xgl) |
- Attributes Tested: XGL_CTX_MARKER
- Operators Tested: xgl_object_get
-
| Output:· set_get_ctx12 | None |
| Test Types: | INDEX, SM |
| Description: | Tests the setting and getting of the graphics context attributes--stroke fonts |
- Attributes Tested: See Table 23-1, Column C at the end of this chapter.
- Operators Tested: xgl_object_get
-
-
xgl_object_set
Output: None
· set_get_ctx13
-
| Test Types: | INDEX, SM |
| Description: | Tests the setting and getting of the graphics context attributes--picking |
- Attributes Tested: XGL_CTX_PICK_ID_1
- Operators Tested: xgl_object_get
-
| Output:· set_get_ctx14 | None |
| Test Types: | INDEX, SM |
| Description: | Tests the setting and getting of the graphics context attributes--annotation text |
- Attributes Tested: See Table 23-1, Column A at the end of this chapter.
- Operators Tested: xgl_object_get
-
-
xgl_object_set
Output: None
· set_get_ctx15
-
| Test Types: | INDEX, SM |
| Description: | Tests the setting and getting of the 2D environment context attributes (nonpushable) |
- Attributes Tested: See Table 23-1, Column B at the end of this chapter.
- Operators Tested: xgl_object_get
-
| Output:· set_get_ctx16 | None |
| Test Types: | INDEX, SM |
| Description: | Tests the setting and getting of the 2D graphics context attributes (view model) |
- Attributes Tested: XGL_CTX_CLIP_PLANES
-
-
XGL_CTX_DC_VIEWPORT
XGL_CTX_GLOBAL_MODEL_TRANS
XGL_CTX_LOCAL_MODEL_TRANS
-
-
XGL_CTX_VDC_MAP
XGL_CTX_VDC_WINDOW
XGL_CTX_VIEW_CLIP_BOUNDS
XGL_CTX_VIEW_TRANS
XGL_TRANS_DIMENSION
Operators Tested: xgl_object_get
xgl_object_set
Output: None
· set_get_ctx17
-
| Test Types: | INDEX, SM |
| Description: | Tests the setting and getting of the 2D graphics context attributes--general rendering (Xgl) |
- Attributes Tested: XGL_CTX_BACKGROUND_COLOR
-
-
XGL_CTX_NEW_FRAME_ACTION
XGL_CTX_PLANE_MASK
XGL_CTX_RASTER_FILL_STYLE
XGL_CTX_RASTER_FPAT
XGL_CTX_RASTER_FPAT_POSITION
XGL_CTX_RASTER_STIPPLE_COLOR
XGL_CTX_ROP
XGL_CTX_THRESHOLD
Operators Tested: xgl_object_get
xgl_object_set
Output: None
· set_get_ctx18
-
| Test Types: | INDEX, SM |
| Description: | Tests the setting and getting of the 2D graphics context attributes--line rendering (Xgl) |
- Attributes Tested: XGL_CTX_LINE_ALT_COLOR
-
-
XGL_CTX_LINE_CAP
XGL_CTX_LINE_COLOR
XGL_CTX_LINE_COLOR_SELECTOR
XGL_CTX_LINE_JOIN
XGL_CTX_LINE_MITER_LIMIT
-
-
XGL_CTX_LINE_PATTERN
XGL_CTX_LINE_STYLE
XGL_CTX_LINE_WIDTH_SCALE_FACTOR
Operators Tested: xgl_object_get
xgl_object_set
Output: None
· set_get_ctx19
-
| Test Types: | INDEX, SM |
| Description: | Tests the setting and getting of the 2D graphics context attributes: |
-
- Curve and surface maximum tessellation
- Curve rendering (Xgl)
- Attributes Tested: XGL_CTX_MAX_TESSELLATION
-
-
XGL_CTX_MIN_TESSELLATION
XGL_CTX_NURBS_CURVE_APPROX
XGL_CTX_NURBS_CURVE_APPROX_VAL
Operators Tested: xgl_object_get
xgl_object_set
Output: None
· set_get_ctx20
-
| Test Types: | INDEX, SM |
| Description: | Tests the setting and getting of the 2D graphics context attributes--surface rendering (Xgl) |
- Attributes Tested: XGL_CTX_ARC_FILL_STYLE
-
-
XGL_CTX_EDGE_ALT_COLOR
XGL_CTX_EDGE_COLOR
XGL_CTX_EDGE_PATTERN
XGL_CTX_EDGE_STYLE
XGL_CTX_EDGE_WIDTH_SCALE_FACTOR
XGL_CTX_SURF_EDGE_FLAG
XGL_CTX_SURF_FRONT_COLOR
XGL_CTX_SURF_FRONT_COLOR_SELECTOR
XGL_CTX_SURF_FRONT_FILL_STYLE
XGL_CTX_SURF_FRONT_FPAT
XGL_CTX_SURF_FRONT_FPAT_POSITION
XGL_CTX_SURF_INTERIOR_RULE
- Operators Tested: xgl_object_get
-
-
xgl_object_set
Output: None
· set_get_ctx21
-
| Test Types: | INDEX, SM |
| Description: | Tests the setting and getting of the 2D graphics context attributes--marker rendering (Xgl) |
- Attributes Tested: XGL_CTX_MARKER
-
-
XGL_CTX_MARKER_COLOR
XGL_CTX_MARKER_COLOR_SELECTOR
XGL_CTX_MARKER_SCALE_FACTOR
Operators Tested: xgl_object_get
xgl_object_set
Output: None
· set_get_ctx22
-
| Test Types: | INDEX, SM |
| Description: | Tests the setting and getting of the 2D graphics context attributes--stroke fonts |
- Attributes Tested: See Table 23-1 Column C at the end of this chapter.
- Operators Tested: xgl_object_get
-
| Output:· set_get_ctx23 | None |
| Test Types: | INDEX, SM |
| Description: | Tests the setting and getting of the 2D graphics context attributes--picking |
- Attributes Tested: XGL_CTX_PICK_ID_1
-
-
XGL_CTX_PICK_ID_2
Operators Tested: xgl_object_get
xgl_object_set
Output: None
· set_get_ctx24
-
| Test Types: | INDEX, SM |
| Description: | Tests the setting and getting of the 2D graphics context attributes--annotation text |
- Attributes Tested: XGL_CTX_ATEXT_ALIGN_HORIZ
- Operators Tested: xgl_object_get
-
| Output:· set_get_light | None |
| Test Types: | INDEX, SM |
| Description: | Tests the setting and getting of the light source attributes |
- Attributes Tested: XGL_LIGHT_ATTENUATION_1
-
-
XGL_LIGHT_ATTENUATION_2
XGL_LIGHT_COLOR
XGL_LIGHT_DIRECTION
XGL_LIGHT_POSITION
XGL_LIGHT_SPOT_ANGLE
XGL_LIGHT_SPOT_EXPONENT
XGL_LIGHT_TYPE
Operators Tested: xgl_object_get
xgl_object_set
Output: None
· set_get_lpat
-
| Test Types: | INDEX, SM |
| Description: | Tests the setting and getting of the line pattern attributes |
- Attributes Tested: XGL_LPAT_BALANCED_DASH
-
-
XGL_LPAT_DATA_TYPE
XGL_LPAT_OFFSET
XGL_LPAT_STYLE
Operators Tested: xgl_object_get
xgl_object_set
Output: None
· set_get_sfont
-
| Test Types: | INDEX, SM |
| Description: | Tests the setting and getting of the stroke font attributes |
- Attributes Tested: XGL_SFONT_COMMENT
- Operators Tested: xgl_object_get
- Output:.....None
-
Table 23-1
| Column A | Column B | Column C |
| XGL_CTX_ATEXT_ALIGN_HORIZ | XGL_CTX_DEFERRAL_MODE | XGL_CTX_SFONT_0 |
| XGL_CTX_ATEXT_ALIGN_VERT | XGL_CTX_MODEL_TRANS_STACK_ SIZE | XGL_CTX_SFONT_1 |
| XGL_CTX_ATEXT_CHAR_HEIGHT | XGL_CTX_PICK_APERTURE | XGL_CTX_SFONT_2 |
| XGL_CTX_ATEXT_CHAR_SLANT_ ANGLE | XGL_CTX_PICK_BUFFER_SIZE | XGL_CTX_SFONT_3 |
| XGL_CTX_ATEXT_CHAR_UP_ VECTOR | XGL_CTX_PICK_ENABLE | XGL_CTX_STEXT_ALIGN_HORIZ |
| XGL_CTX_ATEXT_PATH | XGL_CTX_PICK_STYLE | XGL_CTX_STEXT_ALIGN_VERT |
| XGL_CTX_ATEXT_STYLE | XGL_CTX_PICK_SURF_STYLE | XGL_CTX_STEXT_CHAR_ ENCODING |
| XGL_CTX_RENDERING | XGL_CTX_STEXT_CHAR_ EXPANSION_FACTOR |
| XGL_CTX_VDC_ORIENTATION | XGL_CTX_STEXT_CHAR_HEIGHT |
| XGL_CTX_VIEW_MODEL_DATA_ TYPE | XGL_CTX_STEXT_CHAR_SLANT_ ANGLE XGL_CTX_STEXT_CHAR_SPACING XGL_CTX_STEXT_CHAR_UP_ VECTOR XGL_CTX_STEXT_COLOR XGL_CTX_STEXT_PATH XGL_CTX_STEXT_PRECISION
|
|
|