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 given transmittal. By traversing this library the user can retrieve the generic instances of all <Model> instances.
No Example supplied.
Yes. The <Model> objects 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 SE_Object_ID capability, the SE_Object_ID of the <Model> can be used as a lookup. The A CLASS="Model">Model objects can be stored in a sorted table or hash table with the index based on the string value of the SE_Object_ID.
Alternately, retrieve all the
<Geometry Model> and
<Feature Model> instances within the
given <Model Library> and place them in an
array while assigning each the index into the array entry through the use
of the SE_SetUserData() function in the level 0 API. When a
<Geometry Model Instance> or
<Feature Model Instance> is
encountered, retrieve the associated
|