The SEDRIS Data Representation Model
APPENDIX A - Classes Inline Colour |
---|
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>.
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>.
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.
<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.
SE_Colour_Mapping | colour_mapping; | (notes) |
---|
If present, this component identifies the type of sensor for which the given <Colour> instance is applicable.
The colour_mapping field specifies the set of SE_Colour_Mapping tokens applicable to the given <Colour> instance.
|