The SoSoundElement is used for optimizing audio rendering and for turning off inactive SoVRMLSound nodes.
More...
#include <Inventor/elements/SoSoundElement.h>
|
static SoType | getClassTypeId (void) |
|
static int | getClassStackIndex (void) |
|
static void * | createInstance (void) |
|
static void | initClass (void) |
|
static void | set (SoState *const state, SoNode *const node, SbBool scenegraphhassoundnode, SbBool soundnodeisplaying, SbBool ispartofactivescenegraph) |
|
static SbBool | setSceneGraphHasSoundNode (SoState *const state, SoNode *const node, SbBool flag) |
|
static SbBool | sceneGraphHasSoundNode (SoState *const state) |
|
static SbBool | setSoundNodeIsPlaying (SoState *const state, SoNode *const node, SbBool flag) |
|
static SbBool | soundNodeIsPlaying (SoState *const state) |
|
static SbBool | setIsPartOfActiveSceneGraph (SoState *const state, SoNode *const node, SbBool flag) |
|
static SbBool | isPartOfActiveSceneGraph (SoState *const state) |
|
static SoType | getClassTypeId (void) |
|
static int | getClassStackIndex (void) |
|
static void | initClass (void) |
|
static void | initClass (void) |
|
static SoType | getClassTypeId (void) |
|
static int | getClassStackIndex (void) |
|
static void | initElements (void) |
|
static int | getNumStackIndices (void) |
|
static SoType | getIdFromStackIndex (const int stackIndex) |
|
The SoSoundElement is used for optimizing audio rendering and for turning off inactive SoVRMLSound nodes.
- Since
- Coin 2.0
◆ ~SoSoundElement()
SoSoundElement::~SoSoundElement |
( |
void |
| ) |
|
|
protectedvirtual |
◆ createInstance()
void * SoSoundElement::createInstance |
( |
void |
| ) |
|
|
static |
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
◆ initClass()
void SoSoundElement::initClass |
( |
void |
| ) |
|
|
static |
This static method initializes static data for the SoSoundElement class.
◆ init()
void SoSoundElement::init |
( |
SoState * |
state | ) |
|
|
virtual |
◆ set()
void SoSoundElement::set |
( |
SoState *const |
state, |
|
|
SoNode *const |
node, |
|
|
SbBool |
scenegraphhassoundnode, |
|
|
SbBool |
soundnodeisplaying, |
|
|
SbBool |
ispartofactivescenegraph |
|
) |
| |
|
static |
◆ setSceneGraphHasSoundNode()
SbBool SoSoundElement::setSceneGraphHasSoundNode |
( |
SoState *const |
state, |
|
|
SoNode *const |
node, |
|
|
SbBool |
flag |
|
) |
| |
|
static |
Sets the sceneGraphHasSoundNode flag.
◆ sceneGraphHasSoundNode()
SbBool SoSoundElement::sceneGraphHasSoundNode |
( |
SoState *const |
state | ) |
|
|
static |
◆ setSoundNodeIsPlaying()
SbBool SoSoundElement::setSoundNodeIsPlaying |
( |
SoState *const |
state, |
|
|
SoNode *const |
node, |
|
|
SbBool |
flag |
|
) |
| |
|
static |
Sets the soundNodeIsPlaying flag.
◆ soundNodeIsPlaying()
SbBool SoSoundElement::soundNodeIsPlaying |
( |
SoState *const |
state | ) |
|
|
static |
The soundNodeIsPlaying flag is currently unused.
Returns the value of the soundNodeIsPlaying flag.
◆ setIsPartOfActiveSceneGraph()
SbBool SoSoundElement::setIsPartOfActiveSceneGraph |
( |
SoState *const |
state, |
|
|
SoNode *const |
node, |
|
|
SbBool |
flag |
|
) |
| |
|
static |
Sets the isPartOfActiveSceneGraph flag.
◆ isPartOfActiveSceneGraph()
SbBool SoSoundElement::isPartOfActiveSceneGraph |
( |
SoState *const |
state | ) |
|
|
static |
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.
◆ push()
void SoSoundElement::push |
( |
SoState * |
state | ) |
|
|
virtual |
Calls the superclass' push method. Initializes the element to the default values. Uses previous element's isPartOfActiveSceneGraph flag.
Reimplemented from SoElement.
◆ pop()
Calls the superclass' pop method.
Reimplemented from SoElement.
◆ setDefaultValues()
void SoSoundElement::setDefaultValues |
( |
| ) |
|
|
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.
The documentation for this class was generated from the following files: