next up previous contents index
Next: Segment Attributes Up: Segments Previous: Segment Names

Segment Association, Copying, and Insertion,

To view the contents of segments stored in WISS it is necessary to transfer them to a real device. This can be accomplished in three ways:

Association
Associate SeGment to WorKstation retrieves a segment stored in WISS and sends it to the designated workstation as if this workstation had been activated when the segment was first created. It is thus stored in the WDSS of the designated workstation. Nothing may be added to the segment. There must be no open segment when this function is called.

CALL GASGWK(WKID, SGNA)
Copying
Copy SeGment to WorKstation transforms the contents of the designated WISS segment using the segment transformation (described below), and then sends the result to the workstation specified. The clipping volume of the copied segment is also sent to the workstation. Note that the copied segment itself is not transferred; its contents are just drawn on the output device without being stored in WDSS. Thus, there must be no open segment when this function is called.

CALL GCSGWK(WKID, SGNA)
Insertion
INsert SeGment transforms the contents of the designated WIS segment using both the transformation stored in the segment header and then the matrix provided in the call (MTX), before inserting the results into the output stream as if they had come directly from the application. Thus, the output of Insert Segment goes to all activated workstations, including the WISS, and will be stored in a segment if one is open. All clipping rectangles and indicators, etc. are ignored. The transformation matrix, MTX, may be produced using the routine GEVTM as described below.

CALL GINSG(SGNA, MTX)
The flow of graphics data between WISS, WDSS and the application is shown in gif.

 

 


Figure: Data Flow for GKS



next up previous contents index
Next: Segment Attributes Up: Segments Previous: Segment Names


Janne Saarela
Mon Apr 3 17:00:12 METDST 1995