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

openvrml::vrml97_node::audio_clip_node Class Reference

AudioClip node instances. More...

Inheritance diagram for openvrml::vrml97_node::audio_clip_node:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

virtual ~audio_clip_node () throw ()
 Destroy.

void update (double time)
 Called to update the AudioClip for the current time.

virtual audio_clip_node * to_audio_clip () const
 Cast to an audio_clip_node node.


Private Member Functions

virtual void do_initialize (double timestamp) throw (std::bad_alloc)
 Initialize.

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

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

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

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

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

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

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


Private Attributes

sfstring description
 description exposedField.

sfbool loop
 loop exposedField.

sffloat pitch
 pitch exposedField.

sftime startTime
 startTime exposedField.

sftime stopTime
 stopTime exposedField.

mfstring url
 url exposedField.

sftime duration
 duration_changed eventOut.

sfbool active
 isActive eventOut.


Friends

class audio_clip_class
 Class object for AudioClip nodes.


Detailed Description

AudioClip node instances.

Todo:
Implement sound support.


Constructor & Destructor Documentation

openvrml::vrml97_node::audio_clip_node::audio_clip_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.

openvrml::vrml97_node::audio_clip_node::~audio_clip_node  )  throw () [virtual]
 

Destroy.


Member Function Documentation

void openvrml::vrml97_node::audio_clip_node::do_initialize double  timestamp  )  throw (std::bad_alloc) [private, virtual]
 

Initialize.

Parameters:
timestamp the current time.
Exceptions:
std::bad_alloc if memory allocation fails.

Reimplemented from openvrml::node.

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

Shut down.

Parameters:
timestamp the current time.

Reimplemented from openvrml::node.

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

set_description eventIn handler.

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

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

set_loop eventIn handler.

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

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

set_pitch eventIn handler.

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

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

set_startTime eventIn handler.

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

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

set_stopTime eventIn handler.

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

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

set_url 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.

audio_clip_node * openvrml::vrml97_node::audio_clip_node::to_audio_clip  )  const [virtual]
 

Cast to an audio_clip_node node.

Returns:
a pointer to this node.

Reimplemented from openvrml::node.

void openvrml::vrml97_node::audio_clip_node::update double  time  ) 
 

Called to update the AudioClip for the current time.

Parameters:
time the current time.

Todo:
Implement me!

Friends And Related Function Documentation

openvrml::vrml97_node::audio_clip_node::audio_clip_class [friend]
 

Class object for AudioClip nodes.


Member Data Documentation

sfbool openvrml::vrml97_node::audio_clip_node::active [private]
 

isActive eventOut.

sfstring openvrml::vrml97_node::audio_clip_node::description [private]
 

description exposedField.

sftime openvrml::vrml97_node::audio_clip_node::duration [private]
 

duration_changed eventOut.

sfbool openvrml::vrml97_node::audio_clip_node::loop [private]
 

loop exposedField.

sffloat openvrml::vrml97_node::audio_clip_node::pitch [private]
 

pitch exposedField.

sftime openvrml::vrml97_node::audio_clip_node::startTime [private]
 

startTime exposedField.

sftime openvrml::vrml97_node::audio_clip_node::stopTime [private]
 

stopTime exposedField.

mfstring openvrml::vrml97_node::audio_clip_node::url [private]
 

url exposedField.