Main Page   Namespace List   Class Hierarchy   Compound List   Namespace Members   Compound Members   Related Pages  

DirectionalLight Class Reference

DirectionalLight node instances. More...

Inheritance diagram for DirectionalLight:

AbstractLight AbstractChild AbstractBase ChildNode Node Node List of all members.

Public Methods

 DirectionalLight (const NodeType &nodeType, const ScopePtr &scope)
 Constructor.

virtual ~DirectionalLight () throw ()
 Destructor.

virtual void render (Viewer &viewer, VrmlRenderContext context)
 Render the node.


Private Methods

void processSet_direction (const FieldValue &sfvec3f, double timestamp) throw (std::bad_cast)
 set_direction eventIn handler.


Private Attributes

SFVec3f direction

Friends

class DirectionalLightClass

Detailed Description

DirectionalLight node instances.


Constructor & Destructor Documentation

DirectionalLight const NodeType   nodeType,
const ScopePtr   scope
 

Constructor.

Parameters:
nodeType the NodeType associated with the node instance.
scope the Scope to which the node belongs.

~DirectionalLight   throw () [virtual]
 

Destructor.


Member Function Documentation

void processSet_direction const FieldValue   sfvec3f,
double    timestamp
throw (std::bad_cast) [private]
 

set_direction eventIn handler.

Parameters:
sfvec3f an SFVec3f.
timestamp the current time.
Exceptions:
std::bad_cast if sfvec3f is not an SFVec3f.

void render Viewer   viewer,
VrmlRenderContext    context
[virtual]
 

Render the node.

This should be called before rendering any sibling nodes.

Parameters:
viewer a Viewer.
context a rendering context.

Reimplemented from Node.