GPXVR (wsid, view, id, value) |
Purpose
Use GPXVR to set one field in the entry of the specified workstation's view table.
The values specified are stored in the requested view table entry. When the application updates the workstation, the graPHIGS API sets the corresponding current values in the view table entry to the requested values. You can set only one field at a time with each subroutine call. Issue multiple invocations of GPXVR to set multiple fields.
The clipping indicators determine to which boundaries the contents of the view are clipped. The shielding indicator determines if the content of lower priority views may be displayed within the boundaries of the specified viewport. The border indicator specifies if a border is to be drawn around the viewport.
When set to 2=ON , the temporary view indicator indicates that the corresponding view will have its view activity changed frequently. Where possible the device support saves the current underlying screen image. This allows deactivation consist of restoring the underlying screen image without requiring structure traversal. A typical use of the temporary view capability is the "pop-up menu" found in many applications today.
Application developers should be aware of the following points:
When setting a view's projection type to perspective, any image mappings currently defined to the view are cancelled.
The view active flag for output determines if the view and its contents are displayed. The view active flag for input considers the view for transformation of locator and stroke input from Device Coordinate (DC) to World Coordinates (WC)
The antialiasing mode defines the algorithm that the graPHIGS API uses when rendering primitives within the specified view. It improves the quality of the image and reduces the jagged appearance of the objects. The highest quality image results when you set the antialiasing mode to 2=SUBPIXEL_ON_THE_FLY However, for better performance, set the antialiasing mode to 3=NON_SUBPIXEL_ON_THE_FLY Issuing the Set Antialiasing Mode (GPAID) structure element specifies whether the antialiasing algorithm is to be applied to the primitives within the view.
The shield alpha value defines the initial alpha value for the view shield. The value is used to initialize the destination alpha values when alpha planes are present and shielding indicator is on. The initial shield alpha value does not affect the initial shield color, but is used to blend subsequent primitives with the view shield when blending is in effect.
Other viewing parameters can also be controlled, such as Hidden Line/Hidden Surface Removal (HLHSR) mode, transparency processing, initial color processing, and initial frame buffer mask. Color processing mode and frame buffer protect mask are traversal defaults and are applied to images as well as to structure content.
The workstation's view table is 0 based, however, view entry 0 cannot be changed. (See The graPHIGS Programming Interface: Technical Reference for the default values for view entry 0)
Note:
The following functions are treated as other forms of this generic subroutine:
- GPVCH - Set View Characteristics
- GPXVCH - Set Extended View Characteristics
- GPVMT2 - Set View Matrix 2
- GPVMT3 - Set View Matrix 3
- GPVMP2 - Set View Mapping 2
- GPVMP3 - Set View Mapping 3
Parameters
indexed format direct format ------------- ------------- 0 | 1| fullword integer 0 | 2| fullword integer |-----------| |-----------| 4 |color index| fullword integer 4 |component 1| short floating-point number |-----------| |-----------| 8 | ignored| fullword integer 8 |component 2| short floating-point number |-----------| |-----------| 12 | ignored| fullword integer 12 |component 3| short floating-point number ------------- -------------
indexed format direct format ------------- ------------- 0 | 1| fullword integer 0 | 2| fullword integer |-----------| |-----------| 4 |color index| fullword integer 4 |component 1| short floating-point number |-----------| |-----------| 8 | ignored| fullword integer 8 |component 2| short floating-point number |-----------| |-----------| 12 | ignored| fullword integer 12 |component 3| short floating-point number ------------- -------------
Note: This color processing index is not applied to shielding or border color.
Note: The frame buffer mask is not applied to shielding or border color.
----------------------- | Umin | short floating-point number |---------------------| | Umax | short floating-point number |---------------------| | Vmin | short floating-point number |---------------------| | Vmax | short floating-point number |---------------------| | near plane distance | short floating-point number |---------------------| | far plane distance | short floating-point number (=> near plane) |---------------------| | U projection- | short floating-point number | reference point | |---------------------| | V projection- | short floating-point number | reference point | |---------------------| | N projection- | short floating-point number | reference point | |---------------------| | view plane distance | short floating-point number |---------------------| | projection type | fullword integer -----------------------
|m11 m12 m13| |m21 m22 m23|-->(m11,m12,m13,m21.....m33) |m31 m32 m33|The 3[default]3 matrix is expanded by the graPHIGS API into a 4[default]4 matrix as follows:
|a b c| |a b 0 c| |d e f| -----> |d e 0 f| |g h i| |0 0 1 0| |g h 0 i|When inquired, the matrix returned is the expanded 4[default]4 matrix. For the set subroutine call, other elements are set to their default values.
| m11 m12 m13 m14 | | m21 m22 m23 m24 |---> (m11,m12,m13,m14,m21,m22,.....m44) | m31 m32 m33 m34 | | m41 m42 m43 m44 |
|m11 m12 m13| |m21 m22 m23| --->(m11,m12,m13,m21.....m33) |m31 m32 m33|
|m11 m12 m13 m14| |m21 m22 m23 m24| --->(m11,m12,m13,m14,m21,m22,.....m44) |m31 m32 m33 m34| |m41 m42 m43 m44|
Error Codes
Related Subroutines
RCP code
201330435 (X'0C000F03')