H3D::FogCoordinate Class Reference
[X3D node classes.]

This node defines a set of explicit fog depths on a per-vertex basis. More...

#include <H3D/FogCoordinate.h>

Inheritance diagram for H3D::FogCoordinate:

Inheritance graph

List of all members.

Public Member Functions

 FogCoordinate (Inst< MFFloat > _depth=0, Inst< SFNode > _metadata=0)
 Constructor.
virtual void render (int depth_index)
 Perform the OpenGL commands to render fog until the given index.
virtual void renderArray ()
 Perform the OpenGL commands to render the fog for the whole fog array.
virtual void disableArray ()
 Disable the array state enabled in renderArray().
virtual string defaultXMLContainerField ()
 Returns the default xml containerField attribute value.

Public Attributes

auto_ptr< MFFloatdepth
 Access type: inputOutput


Static Public Attributes

static H3DNodeDatabase database
 The H3DNodeDatabase for this node.


Detailed Description

This node defines a set of explicit fog depths on a per-vertex basis.

This depth value shall be applied per-vertex and used to replace the automatically generated depth. Fog coordinates take precedence over implicitly generated depths; specifying fog coordinates will result in the implicit depth (specified by the visibilityRange field of a node derived from X3DFogObject) being ignored.

Internal routes:
FogCoordinate.dot

Member Function Documentation

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

Returns the default xml containerField attribute value.

For this node it is "fogCoord".

Reimplemented from H3D::Node.

void FogCoordinate::render ( int  depth_index  )  [virtual]

Perform the OpenGL commands to render fog until the given index.

References depth.

void FogCoordinate::renderArray (  )  [virtual]

Perform the OpenGL commands to render the fog for the whole fog array.

References depth.


Member Data Documentation

Access type: inputOutput

FogCoordinate_depth.dot

Referenced by FogCoordinate(), render(), and renderArray().


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

Generated on Fri Nov 7 10:30:07 2008 for H3D API by  doxygen 1.5.7