The SEDRIS Data Representation Model
APPENDIX A - Classes
CMY Colour

Class Name: CMY Colour

Superclass - <Colour Data>

Subclasses

This DRM class is concrete and has no subclasses.

Definition

An instance of this DRM class specifies the actual cyan, magenta, and yellow data values for a colour defined within the CMY colour model. These values shall be in the range [0.0, 1.0].

NOTE  The CMY colour model is closely related to the RGB colour 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)

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 <CMY Colour> instance representing pure black has a cmy_data field with a value of cyan = 1.0, magenta = 1.0, yellow = 1.0.

  2. A <CMY Colour> instance representing red has a cmy_data field with a value of cyan = 0.0, magenta = 1.0, yellow = 1.0.

FAQs

How can a data consumer who does not use the CMY 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_CMY_Data cmy_data; 1

Notes

Fields Notes

cmy_data

The cmy_data field specifies the CMY colour coordinate. For a <CMY Colour> instance with a <CMY Colour Control Link> component, the value of the cmy_data field is obtained from the control link.


Prev: CM 3D Location. Next: CMY Colour Control Link. Up:Index.

Last updated: July 26, 2006 Copyright © 2006 SEDRIS