openvrml::vrml97_node::audio_clip_node Class Reference

Inheritance diagram for openvrml::vrml97_node::audio_clip_node:
[legend]
List of all members.

Detailed Description

AudioClip node instances.

Todo:
Implement sound support.


Public Member Functions

 audio_clip_node (const node_type &type, const boost::shared_ptr< openvrml::scope > &scope)
 Construct.
virtual ~audio_clip_node () throw ()
 Destroy.
void update (double time)
 Called to update the AudioClip for the current time.
virtual audio_clip_nodeto_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.

Private Attributes

exposedfield< sfstringdescription_
 description exposedField.
exposedfield< sfboolloop_
 loop exposedField.
exposedfield< sffloatpitch_
 pitch exposedField.
exposedfield< sftimestart_time_
 startTime exposedField.
exposedfield< sftimestop_time_
 stopTime exposedField.
exposedfield< mfstringurl_
 url exposedField.
sftime duration_changed_
 duration_changed eventOut value.
sftime_emitter duration_changed_emitter_
 duration_changed eventOut emitter.
sfbool is_active_
 isActive eventOut value.
sfbool_emitter is_active_emitter_
 isActive eventOut emitter.

Friends

class audio_clip_class
 Class object for AudioClip nodes.

Constructor & Destructor Documentation

openvrml::vrml97_node::audio_clip_node::audio_clip_node ( const node_type type,
const boost::shared_ptr< openvrml::scope > &  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::update ( double  time  ) 

Called to update the AudioClip for the current time.

Parameters:
time the current time.
Todo:
Implement me!

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


Friends And Related Function Documentation

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

Class object for AudioClip nodes.


Member Data Documentation

description exposedField.

loop exposedField.

pitch exposedField.

startTime exposedField.

stopTime exposedField.

url exposedField.

duration_changed eventOut value.

duration_changed eventOut emitter.

isActive eventOut value.

isActive eventOut emitter.