The SEDRIS Data Representation Model
APPENDIX A - Classes
Model Library

Class Name: Model Library

Superclass - <Library>

Subclasses

This DRM class is concrete and has no subclasses.

Definition

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.

Primary Page in DRM Diagram:

Secondary Pages in DRM Diagram:

Example

No Example supplied.

FAQs

As a consumer, I would like to pre-process all <Model> components of a particular <Model Library> instance for efficiency reasons. Is there a way to uniquely identify <Model> objects, so that I can detect whether a given <Model> has already been processed?

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.

  1. 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.

  2. 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 or <Geometry Model > or <Feature Model >, then retrieve the array index using the level 0 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.

Constraints

Composed of (two-way)

Composed of (two-way metadata) (inherited)

Component of (two-way)

Inherited Field Elements

This class has no inherited field elements.
Prev: Model Instance Template Index. Next: Moving Light Behaviour. Up:Index.

Last updated: July 16, 2004 Copyright © 2004 SEDRIS