The SEDRIS Data Representation Model
APPENDIX A - Classes
HSV Colour

Class Name: HSV Colour

Superclass - <Colour Data>

Subclasses

This DRM class is concrete and has no subclasses.

Definition

An instance of this DRM class contains the actual Hue, Saturation, and Value data values for a colour defined within the Hue Saturation Value (HSV) colour model.

See SE_HSV Data's documentation for a discussion of the field values of an HSV colour.

Primary Page in DRM Diagram:

Secondary Pages in DRM Diagram:

This class appears on only one page of the DRM class diagram.

Example

  1. A <HSV Colour> for pure black (Value = 0.0, Hue and Saturation values don't matter)

  2. A <HSV Colour> for a bright red (Hue = 0.0, Saturation = 1.0, Value = 1.0)

FAQs

I use RGB, not HSV. How do I get RGB from an HSV transmittal?

This is very easy to do. The mathematical transformation is a bit involved, but the SEDRIS API will do it for you, if you ask nicely. After opening the transmittal, before you retrieve any <Colour Data>, (or, if you want, even before you open the transmittal) call the SE_SetColourModel() function, like so:
"SE_SetColourModel( SE_CLR_MDL_RGB);",
and for the rest of the execution of that program, you will never get back a <HSV Colour> instance. Each <Colour Data> instance you retrieve from that point on will be an <RGB Colour> instance.

Where can I find more information on colour in SEDRIS?

See Part 4, Volume 8 Images and Colour Models Technical Guide of the SEDRIS Documentation Set for further information.

Constraints

None.

Composed of (two-way)

Component of (two-way)(inherited)

Inherited Field Elements

This class has no inherited field elements.

Field Elements

SE_HSV_Data hsv_data;

Prev: Hierarchy Summary Item. Next: HSV Colour Control Link. Up:Index.

Last updated: May 15, 2003 Copyright © 2003 SEDRIS™