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

AudioClip Class Reference

AudioClip node instances. More...

Inheritance diagram for AudioClip:

AbstractBase Node List of all members.

Public Methods

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

virtual ~AudioClip () throw ()
 Destructor.

void update (double time)
virtual AudioClip * toAudioClip () const
 Cast to an AudioClip node.


Private Methods

virtual void initializeImpl (double timestamp) throw ()
 Initialize.

void processSet_description (const FieldValue &sfstring, double timestamp) throw (std::bad_cast, std::bad_alloc)
 set_description eventIn handler.

void processSet_loop (const FieldValue &sfbool, double timestamp) throw (std::bad_cast)
 set_loop eventIn handler.

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

void processSet_startTime (const FieldValue &sftime, double timestamp) throw (std::bad_cast)
 set_startTime eventIn handler.

void processSet_stopTime (const FieldValue &sftime, double timestamp) throw (std::bad_cast)
 set_stopTime eventIn handler.

void processSet_url (const FieldValue &mfstring, double timestamp) throw (std::bad_cast, std::bad_alloc)
 set_url eventIn handler.


Private Attributes

SFString description
SFBool loop
SFFloat pitch
SFTime startTime
SFTime stopTime
MFString url
SFTime duration
SFBool active
SFString relativeUrl
Audioaudio
bool url_modified
int audio_index
double audio_intensity
int audio_fd

Friends

class AudioClipClass

Detailed Description

AudioClip node instances.


Constructor & Destructor Documentation

AudioClip const NodeType   nodeType,
const ScopePtr   scope
 

Constructor.

Parameters:
nodeType the NodeType associated with the node instance.
scope the Scope to which the node belongs.

~AudioClip   throw () [virtual]
 

Destructor.


Member Function Documentation

void initializeImpl double    timestamp throw () [private, virtual]
 

Initialize.

Parameters:
timestamp the current time.

Reimplemented from Node.

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

set_description eventIn handler.

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

void processSet_loop const FieldValue   sfbool,
double    timestamp
throw (std::bad_cast) [private]
 

set_loop eventIn handler.

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

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

set_pitch eventIn handler.

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

void processSet_startTime const FieldValue   sftime,
double    timestamp
throw (std::bad_cast) [private]
 

set_startTime eventIn handler.

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

void processSet_stopTime const FieldValue   sftime,
double    timestamp
throw (std::bad_cast) [private]
 

set_stopTime eventIn handler.

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

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

set_url eventIn handler.

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

AudioClip * toAudioClip   const [virtual]
 

Cast to an AudioClip node.

Returns:
a pointer to this node.

Reimplemented from Node.