SoListenerGainElement(3)
π SoListenerGainElement(3) π
okay bestie, pull up a chair π«Ά you're in the Coin section of the manual, and today's main character is SoListenerGainElement β yes she's a 3-page manual girlie and yes she's iconic.
β¨ NAME β¨
SoListenerGainElement β the class that stores the SoListener gain while a scene graph traversal is happening. no cap, that's literally her whole job π
π¦ SYNOPSIS π¦
#include <Inventor/elements/SoListenerGainElement.h>
Inherits SoFloatElement. so she's a float element, she's got the family tree, she's got the inheritance, she's serving π
πΈ Public Member Functions πΈ
virtual void init (SoState *state)β the one public member function she brings to the table herself.
π Public Member Functions inherited from SoFloatElement π
virtual SbBool matches (const SoElement *element) constvirtual SoElement * copyMatchInfo (void) constvirtual void print (FILE *file) constvirtual void setElt (float value)
π Public Member Functions inherited from SoElement π
const SoType getTypeId (void) constint getStackIndex (void) constvirtual void push (SoState *state)virtual void pop (SoState *state, const SoElement *prevTopElement)void 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, const float gain)static void set (SoState *const state, const float gain)static float get (SoState *const state)
π« Static Public Member Functions inherited from SoFloatElement π«
static SoType getClassTypeId (void)static int getClassStackIndex (void)static void initClass (void)static void set (const int stackIndex, SoState *const state, SoNode *const node, const float value)static void set (const int stackIndex, SoState *const state, const float value)static float get (const int stackIndex, SoState *const state)
π 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 ~SoListenerGainElement ()β the destructor, she's protected, she's private about her business π
π Protected Member Functions inherited from SoFloatElement π
virtual ~SoFloatElement ()
π 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
π§ Additional Inherited Members π§
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)
Protected Attributes inherited from SoFloatElement
float data
Protected Attributes inherited from SoElement
SoType typeIdint stackIndexint depth
Static Protected Attributes inherited from SoElement
static int classStackIndexstatic SoTypeList * stackToType
π Detailed Description π
The SoListenerGainElement class stores the SoListener gain during a scene graph traversal. she's the little keeper of the gain value, holding onto it while the traversal does its thing π
This gain is set by SoListener nodes during audio rendering. The SoListenerGainElement is used when the SoVRMLSound nodes render themselves. so when the VRML sound nodes show up and render, she's the one they lean on. slay.
β οΈ bestie, heads up: be aware that this class is an extension for Coin, and it is not available in the original SGI Open Inventor v2.1 API. so if you're kicking it old-school with the SGI original, she's simply not there. don't come for her π
Since
Coin 2.0 β she's been around since then, an OG π
π Constructor & Destructor Documentation π
SoListenerGainElement::~SoListenerGainElement (void ) [protected], [virtual]
Destructor. she's saying her goodbyes, protected style π
π Member Function Documentation π
SoType SoListenerGainElement::getClassTypeId (void ) [static]
This static method returns the SoType object associated with objects of this class. you want to know her type? this is the girl who tells you π
int SoListenerGainElement::getClassStackIndex (void ) [static]
This static method returns the state stack index for the class. where she sits on the state stack, fr fr.
void * SoListenerGainElement::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.
Creates a new instance of the class type corresponding to the SoType object. lowkey internal business, ngl π
void SoListenerGainElement::initClass (void ) [static]
Initialize relevant common data for all instances, like the type system. setting up the whole squad's shared lore β¨
void SoListenerGainElement::init (SoState * state) [virtual]
Initializes the element to its default value. The default value is 1.0.
Reimplemented from SoFloatElement. so she's doing her own version of the family init, and she starts at 1.0 β the default, no cap π
void SoListenerGainElement::set (SoState *const state, SoNode *const node, const float gain) [static]
Sets the value of this element. setting the gain, that's the whole move π₯
void SoListenerGainElement::set (SoState *const state, const float gain) [static]
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. same girl, different arguments β she's flexible like that π
float SoListenerGainElement::get (SoState *const state) [static]
Returns the element value. give her a state, she gives you the value back. reciprocal queen π«Ά
π Author π
Generated automatically by Doxygen for Coin from the source code. the robot wrote it, not me, I just gave it the vibe check β¨
okay that's the whole page bestie, you ate it up π and for the cute sign-off: this was Version 4.0.10, dated Thu Jun 25 2026 00:00:00, and it's the SoListenerGainElement(3) manual page β love her, stan her, periodt πππ¦
π¦ 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
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· 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