SoElement Class |
Abstract base class for all state elements.
Namespace: OIV.Inventor.Elements
The SoElement type exposes the following members.
Name | Description | |
---|---|---|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
GetClassStackIndexE |
Returns the stack id for the element type.
| |
GetHashCode |
Overrides GetHashCode().
(Inherited from SoNetBase.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Pop | Pops element. | |
Push | Pushes element. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
This is the abstract base class for all state elements. This class defines the following features for all of its derived classes:
Type identifiers: Each class of element has a unique (static) SoType identifier. The correct type id is also stored in each instance for easy access.
Copying: Elements are copied into the list of elements used in an OIV.Inventor.Caches.SoCache. Performing any operation other than matches() on a copied element is not guaranteed to work (and will not work for things like Coordinates, if the coordinate they were pointing to has been deleted).
Stack indices: Since a subclass of an element class needs to be in the same state stack as the class from which it is derived, stack indices are inherited.
Capturing: Each time an element's value is accessed, that element is added to the elements-used list of all currently open caches.