The SEDRIS Data Representation Model
APPENDIX A - Classes
RGB Colour

Class Name: RGB Colour

Superclass - <Colour Data>

Subclasses

This DRM class is concrete and has no subclasses.

Definition

An instance of this DRM class specifies the actual red, green, and blue data values for a colour defined within the Red Green Blue colour model. These values shall be in the range [0.0, 1.0].

NOTE  The RGB colour model is often visualized as a cube where the red, green, and blue values define coordinates within the cube.

Primary Page in DRM Diagram:

Secondary Pages in DRM Diagram:

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

Example

  1. An <RGB Colour> instance representing pure black has an rgb_data field with a value of red = 0.0, green = 0.0, blue = 0.0.

  2. An <RGB Colour> instance representing red has an rgb_data field with a value of red = 1.0, green = 0.0, blue = 0.0.

FAQs

How can a data consumer who does not use the RGB colour model retrieve the colour values in the colour model he or she does use?

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.

Where can users go for further information on colour in the DRM?

See P4V8 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_RGB_Data rgb_data; 1

Notes

Fields Notes

rgb_data

The rgb_data field specifies the RGB colour coordinate. For an <RGB Colour> instance with an <RGB Colour Control Link> component X, the value of the rgb_data field is obtained from X.


Prev: Responsible Party. Next: RGB Colour Control Link. Up:Index.

Last updated: July 26, 2006 Copyright © 2006 SEDRIS