.MCALL .MODULE .MODULE GQCR,RELEASE=V00,VERSION=30,COMMENT= .ENABLE LC .NLIST CND .LIST MEB ;+ ;************************************************************************ ;*.ST INQUIRE COLOUR REPRESENTATION * ;*.PAGE * ;*.X COLOUR REPRESENTATION * ;*.X GQCR * ;*.LIT * ;************************************************************************ ;* INQUIRE COLOUR REPRESENTATION GKCL,GKOP,WSOP,WSAC,SGOP Lma * ;* * ;* FORTRAN calling sequence: * ;* SUBROUTINE GQCR (WKID, COLI, TYPE, ERRIND, CR, CG, CB) * ;* * ;* Input parameters: * ;* INTEGER WKID workstation identifier * ;* INTEGER COLI colour index * ;* INTEGER TYPE type of returned values (GSET, GREALI) * ;* * ;* Output parameters: * ;* INTEGER ERRIND error indicator * ;* REAL CR, CG, CB colour (red/green/blue intensities * ;* * ;* Parameters: * ;* In workstation identifier N * ;* In colour index (0..n) I * ;* In type of returned values (SET, REALIZED) E * ;* Out error indicator I * ;* Out colour (red, green, blue intensities) [0, 1] 3xR * ;* * ;* Effect: If the inquired information is available, the error * ;* indicator is returned as 0 and the values are returned * ;* in the output parameters. * ;* * ;* If the inquired information is not available, the * ;* values returned in the output parameters are implement- * ;* ation dependent and the error indicator is set to one * ;* of the following error numbers to indicate the reason * ;* for non-availability: * ;* * ;* 7 GKS not in proper state: GKS shall be in one * ;* of the states WSOP, WSAC or SGOP. * ;* 20 Specified workstation identifier is invalid. * ;* 25 Specified workstation is not open. * ;* 33 Specified workstation is of category MI. * ;* 35 Specified workstation is of category INPUT. * ;* 36 Specified workstation is Workstation Independ- * ;* ent Segment Storage. * ;* 86 Colour index is invalid. * ;* 87 A representation for the specified colour * ;* index has not been defined on this workstation. * ;* * ;* References: * ;* 4.4.9 * ;* 4.11.2 * ;* * ;* Errors: * ;* none * ;************************************************************************ ;*.ELI * ;************************************************************************ ;- ;; .NLIST .INCLUDE /GOPSTA.INC/ .LIST .PSECT G$$COD,RW,I,LCL,REL,CON GQCR:: CLR @2(R5) ; Clear the error indicator. TST G$OPST ; Is GKS in state GKOP, WSOP, WSAC or SGOP? BNE 10$ ; Branch if it is. MOV #8.,@2(R5) ; GKS not in proper state. 10$: ; *** To Be Added *** RTS PC ; Return .END