![]() |
Coin3D is Free Software, published under the BSD 3-clause license. |
https://bitbucket.org/Coin3D/ http://www.kongsberg.com/kogt/ |
The SoSoundElement is used for optimizing audio rendering and for turning off inactive SoVRMLSound nodes. More...
#include <Inventor/elements/SoSoundElement.h>
Public Member Functions | |
virtual void | init (SoState *state) |
virtual void | push (SoState *state) |
virtual void | pop (SoState *state, const SoElement *prevTopElement) |
virtual void | print (FILE *file) const |
Prints contents of element (not implemented) | |
![]() | |
virtual SbBool | matches (const SoElement *element) const |
virtual SoElement * | copyMatchInfo () const |
SbUniqueId | getNodeId () const |
![]() | |
const SoType | getTypeId (void) const |
int | getStackIndex (void) const |
void | setDepth (const int depth) |
int | getDepth (void) const |
virtual | ~SoElement () |
Protected Member Functions | |
virtual | ~SoSoundElement () |
void | setDefaultValues () |
![]() | |
virtual | ~SoReplacedElement () |
![]() | |
SoElement (void) | |
void | capture (SoState *const state) const |
virtual void | captureThis (SoState *state) const |
void | setTypeId (const SoType typeId) |
void | setStackIndex (const int index) |
SoElement * | getNextInStack (void) const |
SoElement * | getNextFree (void) const |
Protected Attributes | |
SbBool | scenegraphhassoundnode |
SbBool | soundnodeisplaying |
SbBool | ispartofactivescenegraph |
![]() | |
SbUniqueId | nodeId |
![]() | |
SoType | typeId |
int | stackIndex |
int | depth |
Additional Inherited Members | |
![]() | |
static SoElement * | getElement (SoState *const state, const int stackIndex, SoNode *const node) |
![]() | |
static SoElement * | getElement (SoState *const state, const int stackIndex) |
static const SoElement * | getConstElement (SoState *const state, const int stackIndex) |
static int | createStackIndex (const SoType id) |
![]() | |
static int | classStackIndex |
static SoTypeList * | stackToType |
The SoSoundElement is used for optimizing audio rendering and for turning off inactive SoVRMLSound nodes.
|
protectedvirtual |
The destructor.
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
This static method initializes static data for the SoSoundElement class.
Initializes the element to it's default value.
Reimplemented from SoReplacedElement.
|
static |
Sets the flags.
|
static |
Sets the sceneGraphHasSoundNode flag.
The sceneGraphHasSoundNode flag is used to stop the SoAudioRenderAction in SoSeparator and SoVRMLGroup nodes for cases where the sub-graph doesn not contain any SoVRMLSound nodes.
Returns the value of the sceneGraphHasSoundNode flag.
|
static |
Sets the soundNodeIsPlaying flag.
The soundNodeIsPlaying flag is currently unused.
Returns the value of the soundNodeIsPlaying flag.
|
static |
Sets the isPartOfActiveSceneGraph flag.
The isPartOfActiveSceneGraph flag is used to make SoVRMLSound that are below inactive parts of the scenegraph (i.e. below a SoSwitch or SoLOD node) stop playing.
Returns the value of the isPartOfActiveSceneGraph flag.
Calls the superclass' push method. Initializes the element to the default values. Uses previous element's isPartOfActiveSceneGraph flag.
Reimplemented from SoElement.
Calls the superclass' pop method.
Reimplemented from SoElement.
Prints contents of element (not implemented)
Reimplemented from SoReplacedElement.
|
protected |
Initializes the element to the default values. The default values for the sceneGraphHasSoundNode is FALSE. The default value for the isPartOfActiveSceneGraph flag is TRUE. the default value for the soundNodeIsPlaying flag is FALSE.