GDDM-GKS V1R1 Programming Guide and Reference
|
Previous topic |
Next topic |
Contents |
Index |
Contact z/OS |
Library |
PDF |
BOOK
GCA GDDM-GKS V1R1 Programming Guide and Reference SC33-0334-00 |
|||||||||||||
Purpose
Function: To cell array. Output function. Generates a cell array primitive. Parameters px (specified by user) (short floating point) py (specified by user) (short floating point) qx (specified by user) (short floating point) qy (specified by user) (short floating point)
dimx (specified by user) (fullword integer) dimy (specified by user) (fullword integer)
isc (specified by user) (fullword integer) isr (specified by user) (fullword integer)
dx (specified by user) (fullword integer) dy (specified by user) (fullword integer)
colia (specified by user) (an array of fullword integers)
Operating states WSAC, SGOP Related functions None Description A cell array is a primitive generated by associating a color index array with a rectangle, called the cell rectangle, which is aligned with the world coordinate axes. The cell rectangle is defined by two corners, P and Q, with world coordinates (px, py) and (qx, qy). The rectangle is divided into a grid, dxdy, of equal-sized cells. The width of each cell is orpx-qxordx, and the height is orpy-qyordy. (The symbol "or" signifies that the absolute value is used; this is the value irrespective of the sign.) To generate the cell array output primitive, the color of each cell is specified by the index of the associated element of the color index array colia. The color index array elements correspond to the cells in the cell rectangle as follows:
An entire color index array can be used by setting isc=1, isr=1, dx=dimx, and dy=dimy. Alternatively, a portion of the color index array can be used by setting isc and isr to indicate the start column and row in colia, and dx and dy to the number of columns and number of rows to be used. If a color index is not present in the color table at a workstation, GDDM-GKS will substitute a workstation-dependent index at that workstation. The cell array is subject to all transformations, potentially transforming the rectangular cells into rhomboids (diamond-shaped parallelograms). The following example shows a function call to create a simple 10-by-10 cell array:
INTEGER COLIA(10,10)/4,4,4,4,5,5,4,4,4,4,
$ 4,4,4,4,1,1,4,4,4,4,
$ 2,4,4,4,1,1,4,4,4,2,
$ 2,2,1,2,2,2,2,1,2,2,
$ 2,4,1,1,3,3,1,1,4,2,
$ 4,4,4,4,3,3,4,4,4,4,
$ 4,4,4,1,3,3,1,4,4,4,
$ 4,4,4,1,4,4,1,4,4,4,
$ 4,4,4,5,4,4,5,4,4,4,
$ 4,4,5,5,4,4,5,5,4,4/
This is the cell array that is created:
The cell array function is not fully supported on plotter workstations.
On these workstations, cell arrays are simulated by drawing the outline of
the transformed cells in the color associated with color index 1, and
using solid line style and normal line width.
Principal errors
|
Copyright IBM Corporation 1990, 2012 |