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

openvrml::vrml97_node::background_node Class Reference

Background node instances. More...

Inheritance diagram for openvrml::vrml97_node::background_node:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

virtual ~background_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_groundAngle (const field_value &value, double timestamp) throw (std::bad_cast, std::bad_alloc)
 set_groundAngle eventIn handler.

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

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

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

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

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

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

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

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

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


Private Attributes

mffloat groundAngle
 groundAngle exposedField.

mfcolor groundColor
 groundColor exposedField.

mfstring backUrl
 backUrl exposedField.

mfstring bottomUrl
 bottomUrl exposedField.

mfstring frontUrl
 frontUrl exposedField.

mfstring leftUrl
 leftUrl exposedField.

mfstring rightUrl
 rightUrl exposedField.

mfstring topUrl
 topUrl exposedField.

mffloat skyAngle
 skyAngle exposedField.

mfcolor skyColor
 skyColor exposedField.

sfbool bound
 isBound eventOut.

imgtexPtr [6]
 Pointers to the imgs in tex.

img tex [6]
 Texture data.

viewer::object_t viewerObject
 Handle for the renderer.


Friends

class background_class
 Class object for Background nodes.


Detailed Description

Background node instances.


Constructor & Destructor Documentation

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

Initialize.

Parameters:
timestamp the current time.

Reimplemented from openvrml::node.

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

Shut down.

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

Parameters:
timestamp the current time.

Reimplemented from openvrml::node.

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

set_backUrl eventIn handler.

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

void openvrml::vrml97_node::background_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.
std::bad_alloc if memory allocation fails.

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

set_bottomUrl eventIn handler.

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

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

set_frontUrl eventIn handler.

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

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

set_groundAngle eventIn handler.

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

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

set_groundColor eventIn handler.

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

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

set_leftUrl eventIn handler.

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

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

set_rightUrl eventIn handler.

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

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

set_skyAngle eventIn handler.

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

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

set_skyColor eventIn handler.

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

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

set_topUrl eventIn handler.

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

Member Data Documentation

img * openvrml::vrml97_node::background_node::texPtr[6] [private]
 

Pointers to the imgs in tex.

The pointers are initialized to zero, and become non-null once the textures are loaded and, if necessary, resized.