Abstract base class for each texture state element. More...
#include <Inventor/elements/SoReplacedTextureElement.h>
Public Member Functions | |
virtual void | print (FILE *fp) const |
virtual void | push (SoState *state) |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static int | getClassStackIndex () |
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 push() 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. 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.
static int SoReplacedTextureElement::getClassStackIndex | ( | ) | [static] |
Returns the stack id for this element.
Reimplemented from SoElement.
Reimplemented in SoTexture3EnabledElement, SoTextureCombinerElement, SoTextureCoordinate3Element, SoTextureCoordinateBindingElement, SoTextureCoordinateElement, SoTextureCubeMapEnabledElement, SoTextureEnabledElement, SoTextureImage3Element, SoTextureImageElement, SoTextureImageElementBase, and SoTextureTransformElement.
static SoType SoReplacedTextureElement::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoElement.
Reimplemented in SoTexture3EnabledElement, SoTextureCombinerElement, SoTextureCoordinate3Element, SoTextureCoordinateBindingElement, SoTextureCoordinateElement, SoTextureCubeMapEnabledElement, SoTextureEnabledElement, SoTextureImage3Element, SoTextureImageElement, SoTextureImageElementBase, and SoTextureTransformElement.
virtual void SoReplacedTextureElement::print | ( | FILE * | fp | ) | const [virtual] |
Prints element (for debugging).
Reimplemented from SoElement.
Reimplemented in SoTextureCoordinate3Element, SoTextureCoordinateBindingElement, SoTextureCoordinateElement, and SoTextureImageElementBase.
virtual void SoReplacedTextureElement::push | ( | SoState * | state | ) | [virtual] |
Pushes the element, copying values from previous element in state.
node-ids associated to each texture unit are copied.
Reimplemented from SoElement.
Reimplemented in SoTexture3EnabledElement, SoTextureCombinerElement, SoTextureCoordinate3Element, SoTextureCoordinateBindingElement, SoTextureCoordinateElement, SoTextureCubeMapEnabledElement, SoTextureEnabledElement, SoTextureImageElementBase, and SoTextureTransformElement.