SoSoundElement(3)
π SoSoundElement(3) β Coin, bestie edition π
okay so. this is SoSoundElement(3), a page from the Coin manual (that's section 3, the library-calls girlies π), and it's genuinely so good. grab a snack, we're doing this. β¨
πΈ NAME πΈ
SoSoundElement β the element that optimizes audio rendering and also turns off inactive SoVRMLSound nodes. that's the whole job description. slay. π
β¨ SYNOPSIS β¨
#include <Inventor/elements/SoSoundElement.h>
Inherits SoReplacedElement. (yes bestie, it's giving inherited. it's giving family tree. π³)
π«Ά 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) so like. it's a vibe. it's aspirational. π«
π«Ά Public Member Functions inherited from SoReplacedElement
virtual SbBool matches (const SoElement *element) constvirtual SoElement * copyMatchInfo () constSbUniqueId getNodeId () const
π«Ά Public Member Functions inherited from SoElement
const SoType getTypeId (void) constint getStackIndex (void) constvoid setDepth (const int depth)int getDepth (void) constvirtual ~SoElement ()
π Static Public Member Functions
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 Public Member Functions inherited from SoReplacedElement
static SoType getClassTypeId (void)static int getClassStackIndex (void)static void initClass (void)
π Static Public Member Functions inherited from SoElement
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)
π Protected Member Functions
virtual ~SoSoundElement ()void setDefaultValues ()
π Protected Member Functions inherited from SoReplacedElement
virtual ~SoReplacedElement ()
π Protected Member Functions inherited from SoElement
SoElement (void)void capture (SoState *const state) constvirtual void captureThis (SoState *state) constvoid setTypeId (const SoType typeId)void setStackIndex (const int index)SoElement * getNextInStack (void) constSoElement * getNextFree (void) const
π¦ Protected Attributes
SbBool scenegraphhassoundnodeSbBool soundnodeisplayingSbBool ispartofactivescenegraph
π¦ Protected Attributes inherited from SoReplacedElement
SbUniqueId nodeId
π¦ Protected Attributes inherited from SoElement
SoType typeIdint stackIndexint depth
β Additional Inherited Members
Static Protected Member Functions inherited from SoReplacedElement
static SoElement * getElement (SoState *const state, const int stackIndex, SoNode *const node)
Static Protected Member Functions inherited from SoElement
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 Protected Attributes inherited from SoElement
static int classStackIndexstatic SoTypeList * stackToType
π Detailed Description π
The SoSoundElement is used for optimizing audio rendering and for turning off inactive SoVRMLSound nodes. that's it, that's the girl. π
Since: Coin 2.0 β an icon from the start, no cap. π
π Constructor & Destructor Documentation π
SoSoundElement::~SoSoundElement (void ) [protected], [virtual]
Destructor. it's the goodbye girlie. she cleans up. π§Ήβ¨
π₯ Member Function Documentation π₯
SoType SoSoundElement::getClassTypeId (void ) [static]
This static method returns the SoType object associated with objects of this class. like a little name tag but for types. π·οΈ
int SoSoundElement::getClassStackIndex (void ) [static]
This static method returns the state stack index for the class. π’
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. (so like, not your business bestie, and that's okay π«Ά)
Creates a new instance of the class type corresponding to the SoType object. β¨
void SoSoundElement::initClass (void ) [static]
Initialize relevant common data for all instances, like the type system. setting up the whole squad. π
void SoSoundElement::init (SoState * state) [virtual]
Initializes the element to its default value. defaults, the moment. β¨
Reimplemented from SoReplacedElement.
void SoSoundElement::set (SoState *const state, SoNode *const node, SbBool scenegraphhassoundnode, SbBool soundnodeisplaying, SbBool ispartofactivescenegraph) [static]
Sets the flags. all of them. the whole flag situation. π©π©π©
SbBool SoSoundElement::setSceneGraphHasSoundNode (SoState *const state, SoNode *const node, SbBool flag) [static]
Sets the sceneGraphHasSoundNode flag. π―
SbBool SoSoundElement::sceneGraphHasSoundNode (SoState *const state) [static]
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. (it's like, if there's no sound down there, why are we even walking down there? exactly. efficiency queen. π
)
Returns the value of the sceneGraphHasSoundNode flag. π
SbBool SoSoundElement::setSoundNodeIsPlaying (SoState *const state, SoNode *const node, SbBool flag) [static]
Sets the soundNodeIsPlaying flag. π§
SbBool SoSoundElement::soundNodeIsPlaying (SoState *const state) [static]
The soundNodeIsPlaying flag is currently unused. she's there, she's just... not doing anything rn. living her life. π
Returns the value of the soundNodeIsPlaying flag. π
SbBool SoSoundElement::setIsPartOfActiveSceneGraph (SoState *const state, SoNode *const node, SbBool flag) [static]
Sets the isPartOfActiveSceneGraph flag. π
SbBool SoSoundElement::isPartOfActiveSceneGraph (SoState *const state) [static]
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. (if you're switched off, you're switched off. silent. muted. periodt. π)
Returns the value of the isPartOfActiveSceneGraph flag. π
void SoSoundElement::push (SoState * state) [virtual]
Calls the superclass' push method. Initializes the element to the default values. Uses previous element's isPartOfActiveSceneGraph flag. (respecting her elders, as she should π«‘)
Reimplemented from SoElement.
void SoSoundElement::pop (SoState * state, const SoElement * prevTopElement) [virtual]
Calls the superclass' pop method.
Reimplemented from SoElement.
void SoSoundElement::print (FILE * file) const [virtual]
Prints contents of element (not implemented). the idea of printing, the concept of it. π«
Reimplemented from SoReplacedElement.
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. write these down, there will be a quiz. πβ¨
π§ Author π§
Generated automatically by Doxygen for Coin from the source code. (doxygen really said "I got this" and honestly? she did. π )
Version 4.0.10 πΈ Thu Jun 25 2026 00:00:00 β that's the source, that's the version, that's the date, and that's a wrap bestie. go optimize some audio and turn off some inactive nodes. you're the main character now. ππβ¨
π¦ where this page comes from
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms