SoReplacedTextureElement Class Reference
[Elements]

VSG extension Abstract base class for each texture state element. More...

#include <Inventor/elements/SoReplacedTextureElement.h>

Inheritance diagram for SoReplacedTextureElement:
SoElement SoTypedObject SoTexture3EnabledElement SoTextureCombinerElement SoTextureCoordinate3Element SoTextureCoordinateBindingElement SoTextureCoordinateElement SoTextureCubeMapEnabledElement SoTextureEnabledElement SoTextureImageElementBase SoTextureTransformElement

List of all members.

Public Member Functions

virtual void print (FILE *fp) const
virtual void push (SoState *state)

Static Public Member Functions

static SoType getClassTypeId ()
static int getClassStackIndex ()

Detailed Description

VSG extension Abstract base class for each texture state element.

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.

SEE ALSO


Member Function Documentation

static int SoReplacedTextureElement::getClassStackIndex (  )  [static]
static SoType SoReplacedTextureElement::getClassTypeId (  )  [static]
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.


The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 28 Oct 2019
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/