The SEDRIS Data Representation Model
APPENDIX A - Classes Model Library |
---|
An instance of this DRM class specifies the complete list of the unique <Model> instance(s) that are stored in the transmittal. By traversing this library the user can retrieve the generic instances of all <Model> instances.
A <Model Library> instance might contain a set of <Model> instances representing different kinds of ground vehicles.
Yes. The <Model> instances can be placed in a lookup table in the consuming application, then referenced by the model instances. There are at least two ways to do this via the API.
If the API implementation being used supports the DRM object ID capability, the DRM object ID of the <Model> instance can be used as a lookup. The <Model> instances can be stored in a sorted table or hash table with the index based on the string value of the DRM object ID.
Alternately, retrieve all the <Geometry Model> instances and <Feature Model> instances within the given <Model Library> instance and place them in an array while assigning each the index into the array entry through the use of the API function SE_SetUserData(). When a <Geometry Model Instance> or <Feature Model Instance> is encountered, retrieve the associated <Geometry Model> or <Feature Model>, then retrieve the array index using the API function SE_GetUserData(). The user data will be valid as long as the <Geometry Model> (or <Feature Model>, as the case may be) has not been freed.
|