H3D::X3DTextureTransformNode Class Reference
[Abstract nodes.]

This abstract node type is the base type for all node types which specify a transformation of texture coordinates. More...

#include <H3D/X3DTextureTransformNode.h>

Inheritance diagram for H3D::X3DTextureTransformNode:

Inheritance graph

List of all members.

Classes

class  DisplayList
 The rendering of texture transformation requires the specifiation of which texture units to render the transformation for. More...

Public Member Functions

 X3DTextureTransformNode (Inst< DisplayList > _displayList=0, Inst< SFNode > _metadata=0)
 Constructor.
virtual void renderForTextureUnits (unsigned int start_unit, unsigned int end_unit)
 Render the texture transform for the texture units between and including start_unit and end_unit.
virtual void renderForTextureUnit (unsigned int texture_unit)
 Render the texture transform for the specified texture unit.
virtual void preRender ()
 This function will be called by the X3DShapeNode before any rendering of geometry and before the call to the render function.
virtual void postRender ()
 This function will be called by the X3DShapeNode after the geometry has been rendered to restore the states to what it was before the call to preRender().
virtual string defaultXMLContainerField ()
 Returns the default xml containerField attribute value.


Detailed Description

This abstract node type is the base type for all node types which specify a transformation of texture coordinates.

Member Function Documentation

virtual string H3D::X3DTextureTransformNode::defaultXMLContainerField (  )  [inline, virtual]

Returns the default xml containerField attribute value.

For this node it is "textureTransform".

Reimplemented from H3D::Node.

void X3DTextureTransformNode::postRender (  )  [virtual]

This function will be called by the X3DShapeNode after the geometry has been rendered to restore the states to what it was before the call to preRender().

This function will be called by the X3DShapeNode after the geometry has been rendered to restore the states to what it was before the call to preRender().

Reimplemented from H3D::X3DAppearanceChildNode.

References H3D::X3DTextureNode::getActiveTexture(), and H3D::MultiTexture::texture.

Referenced by H3D::Appearance::postRender().

void X3DTextureTransformNode::preRender (  )  [virtual]

This function will be called by the X3DShapeNode before any rendering of geometry and before the call to the render function.

This function will be called by the X3DShapeNode before any rendering of geometry and before the call to the render function.

So this is the place to save the states that are going to be changed in render() in order to restore it in postRender().

So this is the place to save the states that are going to be changed in render() in order to restore it in postRender().

Reimplemented from H3D::X3DAppearanceChildNode.

References H3D::X3DTextureNode::getActiveTexture(), and H3D::MultiTexture::texture.

Referenced by H3D::Appearance::preRender().

void X3DTextureTransformNode::renderForTextureUnits ( unsigned int  start_unit,
unsigned int  end_unit 
) [virtual]

Render the texture transform for the texture units between and including start_unit and end_unit.

Reimplemented in H3D::MultiTextureTransform.

References renderForTextureUnit().

Referenced by H3D::Appearance::render(), and H3D::MultiTextureTransform::renderForTextureUnits().


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

Generated on Fri Nov 7 10:31:33 2008 for H3D API by  doxygen 1.5.7