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 specifies the actual Hue, Saturation, and Value data values for a colour defined within the HSV colour model.

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

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; (notes)

Notes

Fields Notes


hsv_data

 The hsv_data field specifies the HSV colour coordinate.

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

Last updated: July 16, 2004 Copyright © 2004 SEDRIS