[ Previous |
Next |
Contents |
Glossary |
Home |
Search ]
The graPHIGS Programming Interface : Subroutine Reference
GPQAAF - Inquire Advanced Attribute Facilities
GPQAAF
(wstype,
attrib,
start,
number,
errind,
totnum,
enum) |
Note:
This subroutine is a Workstation Description Table (WDT)
inquiry.
For an overview, see
"WDT Inquiries."
Purpose
Use
GPQAAF to inquire the list of enumerations
of an attribute that are supported by a specific
workstation.
If the information is available, then the graPHIGS API sets the
error indicator to zero and returns the values in the output
parameter.
If the error indicator is
543
(the start value exceeds
the extent of the available data), then only the total
number
(totnum) parameter is set.
If the inquired information is unavailable, then the error
indicator
(errind) contains the error
number indicating the reason, and the values returned in the
output parameter are unpredictable.
Parameters
wstype -- specified by user, 8-byte character string
Workstation type.
attrid -- specified by user, fullword integer
Attribute identifier being inquired
(1=EDGE_FLAG, 2=FACE_DISTINGUISH_MODE, 3=LIGHTING_CALCULATION_MODE, 4=POLYGON_CULLING, 5=POLYHEDRON_EDGE_CULLING,
6=POLYLINE_END_TYPE, 8=INTERIOR_SHADING_METHODS, 10=REFLECTANCE_MODES
)
start -- specified by user, fullword integer
Starting member of the list of supported enumerations
for the specified attribute (>=1)
number -- specified by user, fullword integer
Number of supported enumerations requested (>=0)
errind -- returned by the graPHIGS API, fullword integer
Error indicator. If the error indicator is zero, the request has been
completed. Otherwise, one of the following errors exists:
- 23
- SPECIFIED WORKSTATION TYPE DOES NOT EXIST
- 35
- WORKSTATION HAS ONLY INPUT CAPABILITIES
- 314
- AN ATTRIBUTE IDENTIFIER IS INVALID
- 538
- START VALUE < ONE
- 539
- REQUESTED NUMBER < ZERO
- 543
- START EXCEEDS DATA EXTENT. TOTAL NUMBER AVAILABLE RETURNED
- 548
- SPECIFIED WORKSTATION TYPE CANNOT BE LOADED
totnum -- returned by the graPHIGS API, fullword integer
Total number of supported enumerations for the specified attribute.
enum -- returned by the graPHIGS API, array of fullword integers
List of supported enumerations for the specified attribute.
1 - Edge Flag
(1=OFF, 2=ON, 3=GEOMETRY_ONLY
)
2 - Face Distinguish Mode
(1=NONE, 2=COLOR_SURFACE_PROPERTIES
)
3 - Lighting Calculation Mode
(1=NONE, 2=PER_AREA, 3=PER_VERTEX
)
4 - Polygon Culling
(1=NONE, 2=BACK, 3=FRONT
)
5 - Polyhedron Edge Culling
(1=NONE, 2=BOTH_BACK, 3=BOTH_FRONT,
4=BOTH_BACK_BOTH_FRONT, 5=BACK_AND_FRONT,
6=LEAST_ONE_BACK, 7=LEAST_ONE_FRONT
)
6 - Polyline End Type
(1=FLAT, 2=ROUND, 3=SQUARE
)
8 - Interior Shading Methods
(1=SHADING_NONE, 2=SHADING_COLOR, 3=SHADING_DATA
)
10 - Reflectance Mode
(1=REFLECTANCE_NONE, 2=AMB, 3=AMB_DIFF,
4=AMB_DIFF_SPEC
)
Error Codes
None
Related Subroutines
- GPPLET
- Set Polyline End Type
- GPEF
- Set Edge Flag
- GPFDMO
- Set Face Distinguish Mode
- GPLMO
- Set Lighting Calculation Mode
- GPPGC
- Set Polygon Culling
- GPPHEC
- Set Polyhedron Edge Culling
- GPQRCT
- Inquire Realized Connection Type
RCP code
201339411
(X'0C003213')
[ Previous |
Next |
Contents |
Glossary |
Home |
Search ]