Previous Next Up Title Contents Index Functions Index Top Library

INQUIRE COLOUR REPRESENTATION

PINQ_COLR_REP


CALL SEQUENCE

void pinq_colr_rep(
)

TYPES


typedef enum {
	PINQ_SET, 
	PINQ_REALIZED
} Pinq_type ;

typedef union {
	Prgb	rgb;	/* red, green, blue colour spec.	*/
	Pcieluv	cieluv;	/* CIE L*U*V colour spec.	*/
	Phls	hls;	/* hue, lightness, saturation colour spec.	*/
	Phsv	hsv;	/* hue, saturation, value colour spec.	*/
	Pdata	unsupp;	/* colour in an unsupported colour model	*/
	Pint	impl_dep;	/* implementation defined	*/
} Pcolr_rep;

PHIGS STATE

(PHOP, WSOP, *, *).

EFFECT

Returns the components contained in the index colour representation of the colour list in workstation ws_id's workstation state list. If the data is available, error indicator is returned as 0.

The components are the colour coordinates in the current colour model.

If the value type returned is PINQ_REALIZED, and if the colour associated with the index has never been either predefined or positioned, or if the colour index is greater than the number of colour indexes in the workstation state list, then the colour coordinates are set to the index 1 colour coordinates.

If the value type returned is PINQ_SET and if the colour associated with the index has been predefined or positioned, the components are set to the closest values possible to the components associated with the colour index as it was defined; where the value returned is PINQ_REALIZED they are the same.

If the value type returned is PINQ_SET and if the colour index has never been either predefined or positioned, error 101 is returned in the error indicator.

ERRORS

3
Ignoring function, function requires state (PHOP, WSOP,*,*)
54
Ignoring function, the specified workstation is not open
59
Ignoring function, the specified workstation does not have output capability (i.e. the workstation category is neither OUTPUT, OUTIN, nor MO)
113
Ignoring function, the colour index value is less than zero
101
Ignoring function, the specified representation has not been defined

SEE ALSO

set colour representation, inquire predefined colour representation, inquire colour facilities.


Previous Next Up Title Contents Index Functions Index Top Library