The SEDRIS Data Representation Model
APPENDIX A - Classes Inline Colour |
---|
An instance of this DRM class is a <Colour> instance 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> instance.
Consider a <Polygon> instance with both an <Image Mapping Function> component and an <Inline Colour> component where the <Inline Colour> component's colour_mapping = { Front_Image_Blend }. This indicates that the colour is to be applied to the front of the <Polygon> instance and is to be combined with the texture mapping information provided by the <Image Mapping Function> instance.
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) |
---|
The colour_mapping field specifies the set of SE_Colour_Mapping members applicable to the <Colour> instance.
|