![]() |
Coin
4.0.3
Coin3D core library
|
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 | pop (SoState *state, const SoElement *prevTopElement) |
virtual void | print (FILE *file) const |
Prints contents of element (not implemented) | |
virtual void | push (SoState *state) |
![]() | |
virtual SoElement * | copyMatchInfo () const |
SbUniqueId | getNodeId () const |
virtual SbBool | matches (const SoElement *element) const |
![]() | |
virtual | ~SoElement () |
int | getDepth (void) const |
int | getStackIndex (void) const |
const SoType | getTypeId (void) const |
void | setDepth (const int depth) |
Protected Member Functions | |
virtual | ~SoSoundElement () |
void | setDefaultValues () |
![]() | |
virtual | ~SoReplacedElement () |
![]() | |
SoElement (void) | |
void | capture (SoState *const state) const |
virtual void | captureThis (SoState *state) const |
SoElement * | getNextFree (void) const |
SoElement * | getNextInStack (void) const |
void | setStackIndex (const int index) |
void | setTypeId (const SoType typeId) |
Protected Attributes | |
SbBool | ispartofactivescenegraph |
SbBool | scenegraphhassoundnode |
SbBool | soundnodeisplaying |
![]() | |
SbUniqueId | nodeId |
![]() | |
int | depth |
int | stackIndex |
SoType | typeId |
Additional Inherited Members | |
![]() | |
static SoElement * | getElement (SoState *const state, const int stackIndex, SoNode *const node) |
![]() | |
static int | createStackIndex (const SoType id) |
static const SoElement * | getConstElement (SoState *const state, const int stackIndex) |
static SoElement * | getElement (SoState *const state, const int stackIndex) |
![]() | |
static int | classStackIndex |
static SoTypeList * | stackToType |
The SoSoundElement is used for optimizing audio rendering and for turning off inactive SoVRMLSound nodes.
|
protectedvirtual |
Destructor.
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
Creates a new instance of the class type corresponding to the SoType object.
|
static |
This static method returns the state stack index for the class.
This static method returns the SoType object associated with objects of this class.
Initializes the element to its default value.
Reimplemented from SoReplacedElement.
Initialize relevant common data for all instances, like the type system.
The isPartOfActiveSceneGraph flag is used to make SoVRMLSound that are below inactive parts of the scene graph (i.e. below a SoSwitch or SoLOD node) stop playing.
Returns the value of the isPartOfActiveSceneGraph flag.
Calls the superclass' pop method.
Reimplemented from SoElement.
Prints contents of element (not implemented)
Reimplemented from SoReplacedElement.
Calls the superclass' push method. Initializes the element to the default values. Uses previous element's isPartOfActiveSceneGraph flag.
Reimplemented from SoElement.
The sceneGraphHasSoundNode flag is used to stop the SoAudioRenderAction in SoSeparator and SoVRMLGroup nodes for cases where the subgraph does not contain any SoVRMLSound nodes.
Returns the value of the sceneGraphHasSoundNode flag.
|
static |
Sets the flags.
|
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.
|
static |
Sets the isPartOfActiveSceneGraph flag.
|
static |
Sets the sceneGraphHasSoundNode flag.
|
static |
Sets the soundNodeIsPlaying flag.
The soundNodeIsPlaying flag is currently unused.
Returns the value of the soundNodeIsPlaying flag.