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

Sound Class Reference

Represents Sound node instances. More...

Inheritance diagram for Sound:

AbstractChild AbstractBase ChildNode Node Node List of all members.

Public Methods

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

virtual ~Sound () throw ()
 Destructor.

virtual void updateModified (NodePath &path, int flags=0x003)
 Propagate the bvolume dirty flag from children to parents.

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.

void processSet_intensity (const FieldValue &sffloat, double timestamp) throw (std::bad_cast)
 set_intensity eventIn handler.

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

void processSet_maxBack (const FieldValue &sffloat, double timestamp) throw (std::bad_cast)
 set_maxBack eventIn handler.

void processSet_maxFront (const FieldValue &sffloat, double timestamp) throw (std::bad_cast)
 set_maxFront eventIn handler.

void processSet_minBack (const FieldValue &sffloat, double timestamp) throw (std::bad_cast)
 set_minBack eventIn handler.

void processSet_minFront (const FieldValue &sffloat, double timestamp) throw (std::bad_cast)
 set_minFront eventIn handler.

void processSet_priority (const FieldValue &sffloat, double timestamp) throw (std::bad_cast)
 set_priority eventIn handler.

void processSet_source (const FieldValue &sfnode, 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 SoundClass
 Class object for Sound instances.


Detailed Description

Represents Sound node instances.


Constructor & Destructor Documentation

Sound const NodeType   nodeType,
const ScopePtr   scope
 

Constructor.

Parameters:
nodeType the NodeType associated with the instance.
scope the Scope associated with the instance.

~Sound   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 processSet_intensity const FieldValue   sffloat,
double    timestamp
throw (std::bad_cast) [private]
 

set_intensity eventIn handler.

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

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

set_location eventIn handler.

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

void processSet_maxBack const FieldValue   sffloat,
double    timestamp
throw (std::bad_cast) [private]
 

set_maxBack eventIn handler.

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

void processSet_maxFront const FieldValue   sffloat,
double    timestamp
throw (std::bad_cast) [private]
 

set_maxFront eventIn handler.

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

void processSet_minBack const FieldValue   sffloat,
double    timestamp
throw (std::bad_cast) [private]
 

set_minBack eventIn handler.

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

void processSet_minFront const FieldValue   sffloat,
double    timestamp
throw (std::bad_cast) [private]
 

set_minFront eventIn handler.

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

void processSet_priority const FieldValue   sffloat,
double    timestamp
throw (std::bad_cast) [private]
 

set_priority eventIn handler.

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

void processSet_source const FieldValue   sfnode,
double    timestamp
throw (std::bad_cast, std::bad_alloc) [private]
 

set_source eventIn handler.

Parameters:
sfnode an SFNode.
timestamp the current time.
Exceptions:
std::bad_cast if sfnode is not an SFNode.

void render Viewer   viewer,
VrmlRenderContext    context
[virtual]
 

Render the node.

Parameters:
viewer a Viewer.
context a rendering context.

Reimplemented from Node.

void updateModified NodePath &    path,
int    flags = 0x003
[virtual]
 

Propagate the bvolume dirty flag from children to parents.

Parameters:
path stack of ancestor nodes.
flags 1 indicates normal modified flag, 2 indicates the bvolume dirty flag, 3 indicates both.

Reimplemented from Node.


Friends And Related Function Documentation

SoundClass [friend]
 

Class object for Sound instances.


Member Data Documentation

SFVec3f direction [private]
 

direction exposedField.

SFFloat intensity [private]
 

intensity exposedField.

SFVec3f location [private]
 

location exposedField.

SFFloat maxBack [private]
 

maxBack exposedField.

SFFloat maxFront [private]
 

maxFront exposedField.

SFFloat minBack [private]
 

minBack exposedField.

SFFloat minFront [private]
 

minFront exposedField.

SFFloat priority [private]
 

priority exposedField.

SFNode source [private]
 

source exposedField.

SFBool spatialize [private]
 

spatialize field.