SoListenerGainElement(3)
π SoListenerGainElement(3) π
okay so bestie, we're in the Library Functions Manual today and the star of the show is SoListenerGainElement β the lil' element that holds onto the SoListener gain while your scene graph is out here doing its traversal thing. let's get into it β¨
π NAME π
SoListenerGainElement β the class that stores the SoListener gain during a scene graph traversal. that's it, that's the whole job, and it does it flawlessly π
β¨ SYNOPSIS β¨
#include <Inventor/elements/SoListenerGainElement.h>
Inherits SoFloatElement.
π«Ά Public Member Functions
virtual void init (SoState *state)
π 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 ()
π 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 π
So like, SoListenerGainElement stores the SoListener gain during a scene graph traversal. yes, the same sentence as the NAME section, because that genuinely IS the whole personality of this class. main character with one very specific job β¨
This gain is set by SoListener nodes during audio rendering. and get this β the SoListenerGainElement is what gets used when the SoVRMLSound nodes render themselves. so if you're out here in VRML sound land, this lil' element is doing the heavy lifting behind the scenes π§
β οΈ real talk bestie: 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 go looking for it over thereβ¦ it's not there. no cap. π
Since Coin 2.0 π
π CONSTRUCTOR & DESTRUCTOR DOCUMENTATION π
π SoListenerGainElement::~SoListenerGainElement (void ) β [protected], [virtual]
The destructor. that's it, that's the note. she cleans up, she says bye, she leaves the group chat π«Ά
π₯ MEMBER FUNCTION DOCUMENTATION π₯
β void * SoListenerGainElement::createInstance (void ) β [static]
okay so this API member is considered internal to the library, since it is not likely to be of interest to the application programmer. so likeβ¦ it exists, it's doing its thing, you can simply not worry about it bestie π
π¦ void SoListenerGainElement::init (SoState * state) β [virtual]
This function initializes the element type in the given SoState. It is called for the first element of each enabled element type in SoState objects. lowkey the setup crew that shows up before the party even starts π
Reimplemented from SoFloatElement.
πΈ void SoListenerGainElement::set (SoState *const state, SoNode *const node, const float gain) β [static]
Sets the value of this element. straightforward, iconic, no notes π
π 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 energy, fewer args, still slaying β¨
π float SoListenerGainElement::get (SoState *const state) β [static]
Returns the element value. that's the whole thing. go get your gain, bestie π«Ά
π AUTHOR π
Generated automatically by Doxygen for Coin from the source code. so technically the author is a robot and honestly? the robot ate π
and that's a wrap on the SoListenerGainElement(3) page, bestie β this was Coin, Version 3.1.3, and yeah the footer is literally just that same SoListenerGainElement(3) name waving goodbye at you. mwah, periodt πβ¨π
π¦ where this page comes from
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms