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

The DirectionalLight node defines a directional light source that illuminates along rays parallel to a given 3-dimensional vector. More...

#include <H3D/DirectionalLight.h>

Inheritance diagram for H3D::DirectionalLight:

Inheritance graph

List of all members.

Public Member Functions

 DirectionalLight (Inst< SFNode > _metadata=0, Inst< SFFloat > _ambientIntensity=0, Inst< SFColor > _color=0, Inst< SFFloat > _intensity=0, Inst< SFBool > _on=0, Inst< SFBool > _global=0, Inst< SFVec3f > _direction=0)
 Constructor.
virtual void enableGraphicsState ()
 Turn the light on.

Public Attributes

auto_ptr< SFVec3fdirection
 The direction field specifies the direction vector of the illumination emanating from the light source in the local coordinate system.

Static Public Attributes

static H3DNodeDatabase database
 The H3DNodeDatabase for this node.


Detailed Description

The DirectionalLight node defines a directional light source that illuminates along rays parallel to a given 3-dimensional vector.

The direction field specifies the direction vector of the illumination emanating from the light source in the local coordinate system. Light is emitted along parallel rays from an infinite distance away. A directional light source illuminates only the objects in its enclosing parent group. The light may illuminate everything within this coordinate system, including all children and descendants of its parent group. The accumulated transformations of the parent nodes affect the light.

DirectionalLight nodes do not attenuate with distance.

Internal routes:
DirectionalLight.dot

Member Data Documentation

The direction field specifies the direction vector of the illumination emanating from the light source in the local coordinate system.

Access type: inputOutput
Default value: Vec3f( 0, 0, -1 )

DirectionalLight_direction.dot

Referenced by DirectionalLight(), and enableGraphicsState().


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

Generated on Fri Nov 7 10:29:48 2008 for H3D API by  doxygen 1.5.7