Public Member Functions | Protected Member Functions

osgAL::SoundRoot Class Reference

A node that updates the transformation of the listener. Should traversed before any SoundNode nodes. More...

List of all members.

Public Member Functions

 SoundRoot ()
 Default constructor.
 META_Node (osgAL, SoundRoot)
void traverse (osg::NodeVisitor &nv)
void setUpdateEnable (bool flag)
bool getUpdateEnable () const

Protected Member Functions

virtual ~SoundRoot ()
 Destructor.
 SoundRoot (const SoundRoot &copy, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 Copy constructor.
SoundRootoperator= (const SoundRoot &node)
 Assignment operator.

Detailed Description

A node that updates the transformation of the listener. Should traversed before any SoundNode nodes.

This class updates the internal state of the osgAL::SoundManager during cull traversal from the current modelView matrix. The cull traversal for this node should be called after any changes are made to the SoundManager (added SoundState events or such).


Constructor & Destructor Documentation

osgAL::SoundRoot::SoundRoot (  ) 

Default constructor.

virtual osgAL::SoundRoot::~SoundRoot (  )  [inline, protected, virtual]

Destructor.

osgAL::SoundRoot::SoundRoot ( const SoundRoot copy,
const osg::CopyOp &  copyop = osg::CopyOp::SHALLOW_COPY 
) [protected]

Copy constructor.


Member Function Documentation

bool osgAL::SoundRoot::getUpdateEnable (  )  const [inline]
osgAL::SoundRoot::META_Node ( osgAL  ,
SoundRoot   
)
SoundRoot& osgAL::SoundRoot::operator= ( const SoundRoot node  )  [protected]

Assignment operator.

void osgAL::SoundRoot::setUpdateEnable ( bool  flag  )  [inline]
void osgAL::SoundRoot::traverse ( osg::NodeVisitor &  nv  ) 

Executed during traversal of the scenegraph. If the NodeVisitor is a CullVisitor the orientation/position and velocity of the listener is updated.


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