Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members | Related Pages

openvrml::vrml97_node::directional_light_node Class Reference

DirectionalLight node instances. More...

Inheritance diagram for openvrml::vrml97_node::directional_light_node:

Inheritance graph
[legend]
Collaboration diagram for openvrml::vrml97_node::directional_light_node:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 directional_light_node (const node_type &type, const scope_ptr &scope)
 Construct.

virtual ~directional_light_node () throw ()
 Destroy.

virtual void render (openvrml::viewer &viewer, rendering_context context)
 Render the node.


Private Member Functions

void process_set_direction (const field_value &value, double timestamp) throw (std::bad_cast)
 set_direction eventIn handler.


Private Attributes

sfvec3f direction
 direction exposedField.


Friends

class directional_light_class
 Class object for DirectionalLight nodes.


Detailed Description

DirectionalLight node instances.


Constructor & Destructor Documentation

openvrml::vrml97_node::directional_light_node::directional_light_node const node_type type,
const scope_ptr scope
 

Construct.

Parameters:
type the node_type associated with the node instance.
scope the scope to which the node belongs.

Member Function Documentation

void openvrml::vrml97_node::directional_light_node::process_set_direction const field_value value,
double  timestamp
throw (std::bad_cast) [private]
 

set_direction eventIn handler.

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

void openvrml::vrml97_node::directional_light_node::render openvrml::viewer viewer,
rendering_context  context
[virtual]
 

Render the node.

This should be called before rendering any sibling nodes.

Parameters:
viewer a viewer.
context a rendering context.

Reimplemented from openvrml::node.