SoReplacedTextureElement Class |
Abstract base class for each texture state element.
Namespace: OIV.Inventor.Elements
The SoReplacedTextureElement type exposes the following members.
Name | Description | |
---|---|---|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
GetClassStackIndex | Obsolete. Returns the stack id for this element. | |
GetHashCode |
Overrides GetHashCode().
(Inherited from SoNetBase.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Pop | Pops element. | |
Push | Pushes the element, copying values from previous element in state. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
This is the abstract base class for each texture state element. A node-id is associated to each texture unit.
Subclasses may need to override the OIV.Inventor.Elements.SoReplacedTextureElement.Push(OIV.Inventor.Misc.SoState) method to copy values from the next instance in the stack (using getNextInStack() ), if the new one has to copy values (node-id) on top of the old ones.
This class defines the matches() method to compare lists of node-id's associated to each texture unit. The node-id's represent the states of all nodes that changed the value of the element. OIV.Inventor.Elements.SoReplacedTextureElement provides methods that maintain lists of node-id's of all nodes that affect an instance. Subclasses must call these methods to make sure the id's are up to date, if they plan to use the standard matches() method. Otherwise, they can define matches() differently, if they wish.