igor::iNodeAudioSource Class Reference

#include <iNodeAudioSource.h>

Inherits igor::iNode.

Public Member Functions

void setSound (iSoundPtr sound)
 
void play ()
 
void stop ()
 
void setPitch (float32 pitch)
 
float32 getPitch () const
 
void setGain (float32 gain)
 
float32 getGain () const
 
void setLoop (bool loop)
 
bool isLooped () const
 
- Public Member Functions inherited from igor::iNode
iNodeKind getKind () const
 
iNodeType getType () const
 
iNodeID getID () const
 
const iaStringgetName () const
 
virtual std::vector< iaStringgetInfo (bool brief=false) const
 
void setName (const iaString &name)
 
void insertNode (iNodePtr node)
 
void insertNodeAsync (iNodePtr node)
 
void setActive (bool active=true)
 
void setActiveAsync (bool active=true)
 
void removeNode (iNodePtr node)
 
void removeNodeAsync (iNodePtr node)
 
bool isChild ()
 
bool isChild (iNodePtr child)
 
bool hasChildren ()
 
const std::vector< iNodePtr > & getChildren () const
 
void getAllChildren (std::vector< iNodePtr > &children) const
 
iNodePtr getChild (const iaString &name)
 
iNodePtr getChild (iNodeID id)
 
const std::vector< iNodePtr > & getInactiveChildren () const
 
iNodePtr getParent ()
 
iScenePtr getScene ()
 
bool isTransformationDirty ()
 
void setTransformationDirty (bool dirty=true)
 
void calcWorldTransformation (iaMatrixd &matrix)
 
bool isActive () const
 
iTransformationChangeEvent & getTransformationChangeEvent ()
 

Protected Member Functions

void onUpdateTransform (iaMatrixd &matrix)
 
- Protected Member Functions inherited from igor::iNode
void setTransformationDirtyDown ()
 
void setTransformationDirtyUp ()
 
void setDataDirty ()
 
bool isDataDirty ()
 
void setParent (iNodePtr parent)
 
void setScene (iScenePtr scene)
 
virtual void onUpdateTransform (iaMatrixd &matrix)
 
virtual void onPreSetScene ()
 
virtual void onPostSetScene ()
 
virtual bool onUpdateData ()
 
virtual void onPostCopyLink (std::map< iNodeID, iNodeID > &nodeIDMap)
 
 iNode ()
 
 iNode (iNodePtr node)
 
virtual ~iNode ()
 

Protected Attributes

iaVector3d _position
 
iaVector3d _velocity
 
- Protected Attributes inherited from igor::iNode
bool _active = true
 
iNodeType _nodeType = iNodeType::iNode
 
iNodeKind _nodeKind = iNodeKind::Node
 
iaString _name = L"iNode"
 
bool _transformationDirty = true
 
iScenePtr _scene = nullptr
 
iNodePtr _parent = nullptr
 
std::vector< iNodePtr_children
 
std::vector< iNodePtr_inactiveChildren
 
iTransformationChangeEvent _transformationChangeEvent
 

Friends

class iNodeManager
 

Additional Inherited Members

- Static Public Member Functions inherited from igor::iNode
static iaString getKindName (iNodeKind kind)
 
static iaString getTypeName (iNodeType nodeType)
 
- Static Public Attributes inherited from igor::iNode
static const iNodeID INVALID_NODE_ID = IGOR_INVALID_ID
 

Detailed Description

audio source node

Member Function Documentation

◆ getGain()

float32 igor::iNodeAudioSource::getGain ( ) const
Returns
audio source gain

◆ getPitch()

float32 igor::iNodeAudioSource::getPitch ( ) const
Returns
audio source pich

◆ isLooped()

bool igor::iNodeAudioSource::isLooped ( ) const

\retruns true if audio source is in loop mode

◆ onUpdateTransform()

void igor::iNodeAudioSource::onUpdateTransform ( iaMatrixd matrix)
protectedvirtual

set the world matrix of the audio listener

Parameters
matrixworld matrix for the audio listener

Reimplemented from igor::iNode.

◆ play()

void igor::iNodeAudioSource::play ( )

play back sound

◆ setGain()

void igor::iNodeAudioSource::setGain ( float32  gain)

sets audio source gain

Parameters
gainthe given gain

◆ setLoop()

void igor::iNodeAudioSource::setLoop ( bool  loop)

sets audio source loop mode

Parameters
loopif true loop mode is on

◆ setPitch()

void igor::iNodeAudioSource::setPitch ( float32  pitch)

sets audio source pitch

Parameters
pitchthe given pitch

◆ setSound()

void igor::iNodeAudioSource::setSound ( iSoundPtr  sound)

sets sound that will be played by this source

◆ stop()

void igor::iNodeAudioSource::stop ( )

stop playing sound

Friends And Related Function Documentation

◆ iNodeManager

friend class iNodeManager
friend

Member Data Documentation

◆ _position

iaVector3d igor::iNodeAudioSource::_position
protected

last position of source

◆ _velocity

iaVector3d igor::iNodeAudioSource::_velocity
protected

last velocity of source


The documentation for this class was generated from the following files: