SoState Class |
Traversal state.
Namespace: OIV.Inventor.Misc
The SoState type exposes the following members.
Name | Description | |
---|---|---|
EnableSendToGL | ||
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
GetAction | Returns the action instance the state is part of. | |
GetConstElement(Int32) | Obsolete. Returns the top (read-only) instance of the given element stack. | |
GetConstElement(Type, Int32) | Returns the top (read-only) instance of the given element stack. | |
GetElement(Int32) | Obsolete. Returns a writable instance of the element on the top of the stack with the given stack index. | |
GetElement(Type, Int32) | Returns a writable instance of the element on the top of the stack with the given index and type. | |
GetHashCode |
Overrides GetHashCode().
(Inherited from SoNetBase.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsSendToGLEnabled | Gets sendToGL activation flag. | |
Pop | Pops the state, restoring the state to just before the last OIV.Inventor.Misc.SoState.Push(). | |
Push | Pushes (saves) the current state until a OIV.Inventor.Misc.SoState.Pop() restores it. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
An OIV.Inventor.Misc.SoState collects and holds state while traversing a scene graph. A state is composed of a variety of elements, each of which holds some specific information, such as coordinates or diffuse color of the surface material.
Each element is stored in its own stack so that save and restore can be implemented as push and pop. These stack operations are performed lazily, so that pushing of a value occurs only when the value would be overwritten, for efficiency.