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

openvrml::vrml97_node::fog_node Class Reference

Fog node instances. More...

Inheritance diagram for openvrml::vrml97_node::fog_node:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

virtual ~fog_node () throw ()
 Destroy.


Private Member Functions

virtual void do_initialize (double timestamp) throw ()
 Initialize.

virtual void do_shutdown (double timestamp) throw ()
 Shut down.

void process_set_bind (const field_value &value, double timestamp) throw (std::bad_cast, std::bad_alloc)
 set_bind eventIn handler.

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

void process_set_fogType (const field_value &value, double timestamp) throw (std::bad_cast, std::bad_alloc)
 set_fogType eventIn handler.

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


Private Attributes

sfcolor color
 color exposedField.

sfstring fogType
 fogType exposedField.

sffloat visibilityRange
 visibilityRange exposedField.

sfbool bound
 isBound eventOut.


Friends

class fog_class
 Class object for Fog nodes.


Detailed Description

Fog node instances.


Constructor & Destructor Documentation

openvrml::vrml97_node::fog_node::fog_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::fog_node::do_initialize double  timestamp  )  throw () [private, virtual]
 

Initialize.

Parameters:
timestamp the current time.

Reimplemented from openvrml::node.

void openvrml::vrml97_node::fog_node::do_shutdown double  timestamp  )  throw () [private, virtual]
 

Shut down.

Calls fog_class::unbind to unbind the node if it is bound.

Parameters:
timestamp the current time.

Reimplemented from openvrml::node.

void openvrml::vrml97_node::fog_node::process_set_bind const field_value value,
double  timestamp
throw (std::bad_cast, std::bad_alloc) [private]
 

set_bind eventIn handler.

Parameters:
value an sfbool value.
timestamp the current time.
Exceptions:
std::bad_cast if value is not an sfbool value.
std::bad_alloc if memory allocation fails.

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

set_color eventIn handler.

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

void openvrml::vrml97_node::fog_node::process_set_fogType const field_value value,
double  timestamp
throw (std::bad_cast, std::bad_alloc) [private]
 

set_fogType eventIn handler.

Parameters:
value an sfstring value.
timestamp the current time.
Exceptions:
std::bad_cast if value is not an sfstring value.
std::bad_alloc if memory allocation fails.

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

set_visibilityRange eventIn handler.

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