SOLISTENERDOPPLERELEMENT(3coin3)
π SoListenerDopplerElement π
okay so bestie, welcome to the Library Functions Manual page for SoListenerDopplerElement. yes it's a whole mouthful, no we're not renaming it, it's iconic and it knows it. π
β¨ NAME β¨
SoListenerDopplerElement β the element that holds the doppler velocity and doppler factor of the current listener. that's the whole job. it does it beautifully. π
π¦ SYNOPSIS π¦
#include <Inventor/elements/SoListenerDopplerElement.h>
Inherits SoReplacedElement. yes she has a family tree, we'll get to that.
πΈ Public Member Functions πΈ
virtual void init (SoState *state)virtual void print (FILE *file) constβ Prints the contents of the element (unimplemented)
Public Member Functions inherited from SoReplacedElement
virtual SbBool matches (const SoElement *element) constvirtual SoElement * copyMatchInfo () constuint32_t getNodeId () const
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 setDopplerVelocity (SoState *const state, SoNode *const node, const SbVec3f &velocity)static void setDopplerFactor (SoState *const state, SoNode *const node, float factor)static const SbVec3f & getDopplerVelocity (SoState *const state)β Returns the current listener's doppler velocity.static float getDopplerFactor (SoState *const state)β Returns the current listener's doppler factor.
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 ~SoListenerDopplerElement ()
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 π
SbVec3f dopplerVelocityfloat dopplerFactor
Protected Attributes inherited from SoReplacedElement
uint32_t 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 SoListenerDopplerElement holds the doppler velocity and factor of the current listener. (yes, the NAME section already said this, she's just reiterating because she's thorough and she loves you.)
The dopplerVelocity and dopplerFactor is set by SoListener nodes during audio rendering. The SoListenerDopplerElement is used when the SoVRMLSound nodes render themselves. so like, this is the little messenger that carries the doppler info between them. teamwork. π«Ά
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 back to the OG v2.1, she simply does not exist. don't go looking. π
Since
Coin 2.0 β she's been here a minute, lowkey a legend.
π₯ Constructor & Destructor Documentation π₯
SoListenerDopplerElement::~SoListenerDopplerElement (void ) [protected], [virtual]
The destructor. that's it. she's leaving, say bye. π
β Member Function Documentation β
void * SoListenerDopplerElement::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. iykyk β it's for the library's own business, bestie, not yours. π
void SoListenerDopplerElement::initClass (void ) [static]
This static method initializes static data for the SoListenerDopplerElement class. setting the whole thing up, getting her ready for the group chat. β¨
void SoListenerDopplerElement::init (SoState * state) [virtual]
Initializes the element to it's default value. The default value for the velocity is (0.0f, 0.0f, 0.0f), in other words, the listener is not moving. The default value for the dopplerFactor is 0.0f, in other words, doppler effect is disabled.
so out of the box: nobody's moving and nothing's dopplering. the calm before the slay. π
Reimplemented from SoReplacedElement.
void SoListenerDopplerElement::setDopplerVelocity (SoState *const state, SoNode *const node, const SbVec3f & velocity) [static]
Sets the current listener's doppler velocity.
void SoListenerDopplerElement::setDopplerFactor (SoState *const state, SoNode *const node, float factor) [static]
Sets the current listener's doppler factor.
void SoListenerDopplerElement::print (FILE * file) const [virtual]
Prints the contents of the element (unimplemented)
fr fr, it is unimplemented. it will not print you anything. don't be surprised, she told you. π
Reimplemented from SoReplacedElement.
πΈ Member Data Documentation πΈ
SbVec3f SoListenerDopplerElement::dopplerVelocity [protected]
The doppler velocity of the listener. It is the application programmer's responsibility to set this value. Coin does not update this value automatically based on changes in a listener's position.
so like, if the listener moves and you expect this to just... know? no. that's on you, bestie. Coin is not your mom. π
float SoListenerDopplerElement::dopplerFactor [protected]
The amount of doppler effect applied to the listener. The normal range would be [0.0f to 1.0f], where 0.0f is default and disable all doppler effects.
π Author π
Generated automatically by Doxygen for Coin from the source code. (not a human, not a bestie, just a documentation generator doing her little thing. we stan anyway. π)
and that's the whole page!! you understood all of it, obviously, you're the main character of this manpage read. π
Coin β Version 3.1.3 β SoListenerDopplerElement(3) πβ¨ that's the source, the version and the manual tag, mwah, bye bestie π«Άπ
π¦ 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
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms