openvrml::vrml97_node::sound_node Class Reference
Represents Sound node instances.
More...
Inheritance diagram for openvrml::vrml97_node::sound_node:
[legend]Collaboration diagram for openvrml::vrml97_node::sound_node:
[legend]List of all members.
|
Public Member Functions |
| | sound_node (const node_type &type, const scope_ptr &scope) |
| | Construct.
|
|
virtual | ~sound_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.
|
| void | process_set_intensity (const field_value &value, double timestamp) throw (std::bad_cast) |
| | set_intensity eventIn handler.
|
| void | process_set_location (const field_value &value, double timestamp) throw (std::bad_cast) |
| | set_location eventIn handler.
|
| void | process_set_maxBack (const field_value &value, double timestamp) throw (std::bad_cast) |
| | set_maxBack eventIn handler.
|
| void | process_set_maxFront (const field_value &value, double timestamp) throw (std::bad_cast) |
| | set_maxFront eventIn handler.
|
| void | process_set_minBack (const field_value &value, double timestamp) throw (std::bad_cast) |
| | set_minBack eventIn handler.
|
| void | process_set_minFront (const field_value &value, double timestamp) throw (std::bad_cast) |
| | set_minFront eventIn handler.
|
| void | process_set_priority (const field_value &value, double timestamp) throw (std::bad_cast) |
| | set_priority eventIn handler.
|
| void | process_set_source (const field_value &value, double timestamp) throw (std::bad_cast, std::bad_alloc) |
| | set_source eventIn handler.
|
Private Attributes |
|
sfvec3f | direction |
| | direction exposedField.
|
|
sffloat | intensity |
| | intensity exposedField.
|
|
sfvec3f | location |
| | location exposedField.
|
|
sffloat | maxBack |
| | maxBack exposedField.
|
|
sffloat | maxFront |
| | maxFront exposedField.
|
|
sffloat | minBack |
| | minBack exposedField.
|
|
sffloat | minFront |
| | minFront exposedField.
|
|
sffloat | priority |
| | priority exposedField.
|
|
sfnode | source |
| | source exposedField.
|
|
sfbool | spatialize |
| | spatialize field.
|
Friends |
|
class | sound_class |
| | Class object for Sound instances.
|
Detailed Description
Represents Sound node instances.
Constructor & Destructor Documentation
| openvrml::vrml97_node::sound_node::sound_node |
( |
const node_type & |
type, |
|
|
const scope_ptr & |
scope |
|
) |
|
|
|
|
Construct.
- Parameters:
-
| type | the node_type associated with the instance. |
| scope | the scope associated with the instance. |
|
Member Function Documentation
| void openvrml::vrml97_node::sound_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::sound_node::process_set_intensity |
( |
const field_value & |
value, |
|
|
double |
timestamp |
|
) |
throw (std::bad_cast) [private] |
|
|
|
set_intensity eventIn handler.
- Parameters:
-
| value | an sffloat. |
| timestamp | the current time. |
- Exceptions:
-
| std::bad_cast | if value is not an sffloat. |
|
| void openvrml::vrml97_node::sound_node::process_set_location |
( |
const field_value & |
value, |
|
|
double |
timestamp |
|
) |
throw (std::bad_cast) [private] |
|
|
|
set_location eventIn handler.
- Parameters:
-
| value | an sfvec3f. |
| timestamp | the current time. |
- Exceptions:
-
| std::bad_cast | if value is not an sfvec3f. |
|
| void openvrml::vrml97_node::sound_node::process_set_maxBack |
( |
const field_value & |
value, |
|
|
double |
timestamp |
|
) |
throw (std::bad_cast) [private] |
|
|
|
set_maxBack eventIn handler.
- Parameters:
-
| value | an sffloat. |
| timestamp | the current time. |
- Exceptions:
-
| std::bad_cast | if value is not an sffloat. |
|
| void openvrml::vrml97_node::sound_node::process_set_maxFront |
( |
const field_value & |
value, |
|
|
double |
timestamp |
|
) |
throw (std::bad_cast) [private] |
|
|
|
set_maxFront eventIn handler.
- Parameters:
-
| value | an sffloat. |
| timestamp | the current time. |
- Exceptions:
-
| std::bad_cast | if value is not an sffloat. |
|
| void openvrml::vrml97_node::sound_node::process_set_minBack |
( |
const field_value & |
value, |
|
|
double |
timestamp |
|
) |
throw (std::bad_cast) [private] |
|
|
|
set_minBack eventIn handler.
- Parameters:
-
| value | an sffloat. |
| timestamp | the current time. |
- Exceptions:
-
| std::bad_cast | if value is not an sffloat. |
|
| void openvrml::vrml97_node::sound_node::process_set_minFront |
( |
const field_value & |
value, |
|
|
double |
timestamp |
|
) |
throw (std::bad_cast) [private] |
|
|
|
set_minFront eventIn handler.
- Parameters:
-
| value | an sffloat. |
| timestamp | the current time. |
- Exceptions:
-
| std::bad_cast | if value is not an sffloat. |
|
| void openvrml::vrml97_node::sound_node::process_set_priority |
( |
const field_value & |
value, |
|
|
double |
timestamp |
|
) |
throw (std::bad_cast) [private] |
|
|
|
set_priority eventIn handler.
- Parameters:
-
| value | an sffloat. |
| timestamp | the current time. |
- Exceptions:
-
| std::bad_cast | if value is not an sffloat. |
|
| void openvrml::vrml97_node::sound_node::process_set_source |
( |
const field_value & |
value, |
|
|
double |
timestamp |
|
) |
throw (std::bad_cast, std::bad_alloc) [private] |
|
|
|
set_source eventIn handler.
- Parameters:
-
| value | an sfnode. |
| timestamp | the current time. |
- Exceptions:
-
| std::bad_cast | if value is not an sfnode. |
|
|
|
Render the node.
- Parameters:
-
| viewer | a Viewer. |
| context | a rendering context. |
Reimplemented from openvrml::node. |