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> with both an <Image Mapping Function> and an <Inline Colour>, where the <Inline Colour>'s colour_mapping = { SE_CLR_MAPNG_FRONT_IMAGE_BLEND }. This indicates that the colour is to be applied to the 'front' of the <Polygon>, and to be combined with the texture mapping information provided by the <Image Mapping Function>.

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

FAQs

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

<Colour Tables> used to be composed of <Inline Colours>, but problems arose since both <Colour Index> and <Inline Colour> instances can have <Translucency>. When a <Colour Index> that has a <Translucency> component refers to an entry in a <Colour Table>, the interpretation is clearer if the <Colour Table>'s entry cannot have any additional <Translucency>. Consequently, <Primitive Colour> exists so that we can put 'just the colour' into a <Colour Table>'s entry.

Constraints

Composed of (two-way)(inherited)

Composed of (two-way)

Component of (two-way)(inherited)

Inherited Field Elements

SE_Token_Set 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 set of SE_Colour_Mapping tokens applicable to the given
 <Colour> instance.

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

Last updated: May 15, 2003 Copyright © 2003 SEDRIS™