The SEDRIS Data Representation Model
APPENDIX A - Classes
Inline Colour

Class Name: Inline Colour

Superclass - <Colour>

Subclasses

This DRM class is concrete and has no subclasses.

Definition

An instance of this DRM class is a <Colour> that is specified "inline", in the sense that it is completely specified as a component of the coloured object without referring to any <Colour Table>.

Primary Page in DRM Diagram:

Secondary Pages in DRM Diagram:

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

Example

  1. Consider a <Polygon> instance with both an <Image Mapping Function> and an <Inline Colour> component, where the <Inline Colour> instance's colour_mapping = { Front_Image_Blend }. This indicates that the colour is to be applied to the "front" of the <Polygon> instance, and to be combined with the texture mapping information provided by the <Image Mapping Function>.

  2. Consider a <Polygon> instance with an <Inline Colour> component, where the <Inline Colour> instance has colour_mapping = { Back_Primary }. This colour is used for the back face of the <Polygon> instance.

FAQs

Why do <Colour Table> instances have <Primitive Colour> components rather than <Inline Colour> components?

<Colour Table> instances used to be composed of <Inline Colour> instances, but problems arose since both <Colour Index> and <Inline Colour> instances can have <Translucency> components. When a <Colour Index> instance that has a <Translucency> component refers to an entry in a <Colour Table> instance, the interpretation is clearer if the <Colour Table> instance's entry cannot specify any additional <Translucency> instance.

Consequently, <Primitive Colour> exists so that 'just the colour' can be put into a <Colour Table> instance's entry.

Constraints

Composed of (two-way) (inherited)

Composed of (two-way)

Component of (two-way) (inherited)

Inherited Field Elements

SE_Colour_Mapping colour_mapping; (notes)

Notes

Composed of Notes


Presentation_Domain

 If present, this component identifies the type of sensor for which
 the given <Colour> instance is applicable.

Fields Notes


colour_mapping

 The colour_mapping field specifies the set of SE_Colour_Mapping
 tokens applicable to the given <Colour> instance.

Prev: Infinite Light. Next: Interface Template. Up:Index.

Last updated: July 16, 2004 Copyright © 2004 SEDRIS