Table 6.53—DRM_Colour_Data

Property

Description

Superclass

·         <DRM SEDRIS Abstract Base>

Class

·         <DRM Colour Data>

Subclass

·         <DRM CMY Colour

·         <DRM HSV Colour>

·         <DRM RGB Colour>

Definition

An abstract DRM class that specifies a 3-tuple containing the color value. If the <DRM Colour> is an <DRM RGB Colour>, the 3 data values will be values for Red, Green, and Blue; for an <DRM HSV Colour>, values for Hue, Saturation, and Value; and for a <DRM CMY Colour, values for Cyan, Magenta, and Yellow.

If the color model is RGB, <DRM Colour Data> contains the actual Red, Green, and Blue data values for a color defined within the Red Green Blue color model. These values are expected to be values between 0.0 and 1.0, inclusive. RGB colors are commonly used by color monitors. The RGB color model is probably the best known color model, and is often visualized as a cube, where the Red, Green, and Blue values define coordinates within the cube.

If the color model is HSV, <DRM Colour Data> contains the actual Hue, Saturation, and Value data values for a color defined within the Hue Saturation Value color model. The Saturation and Value values are expected to be between 0 and 1. If Value has a value of 0, the values of Hue and Saturation are meaningless, because the color will be black. If Saturation has a value of 0, the value of Hue is meaningless, and the value of Value will determine the shade of a grey color, somewhere between white and black. Hue is expected to have a value between 0.0 and 360.0 (not including 360.0). If the value of Hue is 'undefined' (because the value of Value or Saturation is 0), the value of Hue can be represented as POSITIVE_INFINITY, but this is not required. Basically, if Value == 0.0, the values of Hue and Saturation should be ignored, and if Saturation == 0.0, the value of Hue should be ignored. The Hue Saturation Value color model represents the color space as a hexagonal cone. The Hue of the color determines the 'color' of the color. The Saturation of the color determines the 'intensity' of the color, differentiating a 'strong' red from a 'weak' red, for example. And the Value of the color is the difference between a light color and a dark color. Decreasing the Value of a color adds black to the color.

If the color Model is CMY, DRM_Color_Data contains the actual cyan, magenta, and yellow data values for a color defined within the Cyan Magenta Yellow color model. These values are expected to be values between 0.0 and 1.0, inclusive. CMY (and CMYK) colors are commonly used by hardcopy devices, such as printers. The CMY color model is closely related to the RGB color model. Cyan is the complement of Red (Cyan = 1.0 - Red); Magenta, of Green (Magenta = 1.0 - Green); and Yellow, of Blue (Yellow = 1.0 - Blue).

Example(s)

·         An <DRM RGB colour> for pure black. (Red = 0.0, Green = 0.0, Blue = 0.0).

·         An <DRM RGB colour> for bright red. (Red = 1.0, Green = 0.0, Blue = 0.0).

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

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

·         A <CMY Colour> for pure black (Cyan=1.0, Magenta=1.0, Yellow = 1.0).

·         A <CMY Colour> for bright red (Cyan=0. Magenta=1.0, Yellow = 1.0).

Inherited field elements

field_name

range

Field_Data_Type

none

 

 

Field elements

field_name

range

Field_Data_Type

none

 

 

Associated to (one-way) (inherited)

·         none

Associated to (one-way)

·         none

Associated by (one-way) (inherited)

·         none

Associated by (one-way)

·         none

Associated with (two-way) (inherited)

·         none

Associated with (two-way)

·         none

Composed of (two-way) (inherited)

·         none

Composed of (two-way)

·         none

Composed of (two-way metadata) (inherited)

·         none

Composed of (two-way metadata)

·         none

Component of (two-way) (inherited)

·         none

Component of (two-way)

·         zero or more <DRM Ambient Colour>s

·         zero or more <DRM Diffuse Colour>s

·         zero or more <DRM Emissive Colour>s

·         zero or more <DRM Specular Colour>s

Constraints

·         none

Notes

none

Class diagram

<DRM Colour Data>