The SEDRIS Data Representation Model
APPENDIX A - Classes Attribute Set |
---|
An instance of this DRM class groups together a set of instances of classes that
An <Attribute Set> instance provides a mechanism for a set of 'attributes' to be explicitly reused by many <Geometry> and / or < Feature> instances.
A number of polygons that are all coloured red and rendered using flat shading each contain the same <Attribute Set Index>, which references an <Attribute Set> containing a <Colour> instance specifying red and a <Rendering Properties> instance specifying flat shading.
A number of polygons that are all coloured green, have grass texture that is modulated and have an EAC_SURFACE_MATERIAL_TYPE specifying EEC_SRF_MATTY_GRASS. A common <Attribute Set Index> specifies an <Attribute Set> containing:
a <Colour> instance specifying green,
an <Image Mapping Function> instance specifying image_mapping_method = SE_IMG_MAPNG_METH_MODULATE, and
a <Property Value> instance specifying an EAC_SURFACE_MATERIAL_TYPE value of EEC_SRF_MATTY_GRASS.
See Part 4, Volume 9 Attribute Inheritance and Context Technical Guide of the SEDRIS Documentation Set for further information.
A <Geometry> or <Feature> instance may contain a number of formal attribute and / or meta data components in addition to an <Attribute Set Index>. If there is a conflict between the two, then the directly attached components of the <Geometry> or <Feature> take precedence over those in the < Attribute Set>. This precedence will behave differently depending on the multiplicity of the relationship that the class of the component in question has with the aggregating <Geometry> or <Feature>. In the event of a clash, the following rules will apply based on this multiplicity:
Zero or one | The direct component of the <Geometry> or <Feature> is used. |
Zero or more | The direct components of the <Geometry> or <Feature> are used, followed by those contained in the <Attribute Set>, if required. |
Zero or more {ordered} |
The direct components of the <Geometry> or <Feature> are used in order, followed by those contained in the <Attribute Set>, in order, as required. |
The relationships between <Geometry> and <Feature> and the <Attribute Set Index> class are ordered, so that precedence can be determined for this case.
In case of a conflict, attribute objects contained in <Attribute Set> instances take precedence according to
Any attribute objects in an <Attribute Set> that have no meaning to the object that references the <Attribute Set> will be ignored.
|