The SEDRIS Data Representation Model
APPENDIX A - Classes HSV Colour |
---|
An instance of this DRM class specifies the actual hue, saturation, and value data values for a colour defined within the HSV colour model.
An <HSV Colour> instance representing pure black has an hsv_data field with a value of value = 0.0, where hue and saturation may have any value.
An <HSV Colour> instance representing red has an hsv_data field with a value of hue = 0.0, saturation = 1.0, and value = 1.0).
The specific procedure to be followed depends on the colour model used by the consuming application.
If the data consumer uses a colour model directly supported by the DRM, the Level 0 API can be instructed to change all <Colour Data> instances to the desired colour model before any <Colour Data> instances are retrieved. Otherwise, the Level 0 API can be instructed to change all <Colour Data> instances to an appropriate colour model before any <Colour Data> instances are retrieved, and upon retrieval the consuming application can invoke the appropriate utility function provided in the DRM API to convert to the desired colour model.See P4V8 of the SEDRIS Documentation Set for further information.
SE_HSV_Data | hsv_data; | 1 |
---|
The hsv_data field specifies the HSV colour coordinate. For an <HSV Colour> instance with an <HSV Colour Control Link> component, the value of the hsv_data field is obtained from the control link.
|