SoAudioRenderAction(3)
πΈ SoAudioRenderAction β NAME π
okay bestie, welcome to SoAudioRenderAction(3) from the Library Functions Manual π
and literally the whole vibe of this class is: it renders the aural parts of the scene graph. Like, the sound. The audio. The part your ears get. π§β¨
π SYNOPSIS π
#include <Inventor/actions/SoAudioRenderAction.h>
Inherits SoAction. Yes she's a nepo baby of SoAction and she slays anyway. π
β¨ Public Member Functions β¨
virtual SoType getTypeId (void) constβ returns her whole type identity, icon behavior.
π Public Member Functions inherited from SoAction
virtual ~SoAction (void)β destructor, say bye bye πvirtual SbBool isOfType (SoType type) constβ is she that type? vibe check βvirtual void apply (SoNode *root)β run it on a nodevirtual void apply (SoPath *path)β run it on a pathvirtual void apply (const SoPathList &pathlist, SbBool obeysrules=FALSE)β run it on a whole path list,obeysrulesdefaults toFALSEvoid apply (SoAction *beingApplied)β apply from another actionvirtual void invalidateState (void)β state? invalidated. periodtAppliedCode getWhatAppliedTo (void) constβ what did she get applied toSoNode * getNodeAppliedTo (void) constβ gimme the nodeSoPath * getPathAppliedTo (void) constβ gimme the pathconst SoPathList * getPathListAppliedTo (void) constβ gimme the path listconst SoPathList * getOriginalPathListAppliedTo (void) constβ gimme the original path list, the og π«ΆSbBool isLastPathListAppliedTo (void) constβ was that the last path listPathCode getPathCode (int &numindices, const int *&indices)β get the path codevoid traverse (SoNode *const node)β go walk the scene graph, main character energySbBool hasTerminated (void) constβ did she terminateconst SoPath * getCurPath (void)β the current pathSoState * getState (void) constβ the current statePathCode getCurPathCode (void) constβ current path codevirtual SoNode * getCurPathTail (void)β the tail of the current pathvoid usePathCode (int &numindices, const int *&indices)β use that path codevoid pushCurPath (const int childindex, SoNode *node=NULL)β push current path,nodedefaults toNULLvoid popCurPath (const PathCode prevpathcode)β pop it with the previous path codevoid pushCurPath (void)β push, no argsvoid popPushCurPath (const int childindex, SoNode *node=NULL)β pop then push,nodedefaults toNULLvoid popCurPath (void)β pop, no argsvoid switchToPathTraversal (SoPath *path)β switch to path traversal modevoid switchToNodeTraversal (SoNode *node)β switch to node traversal mode
π Static Public Member Functions π
static SoType getClassTypeId (void)β the class type idstatic void addMethod (const SoType type, SoActionMethod method)β add a methodstatic void enableElement (const SoType type, const int stackindex)β enable an elementstatic void initClass (void)β set up the classstatic void callDoAction (SoAction *action, SoNode *node)β call do actionstatic void callAudioRender (SoAction *action, SoNode *node)β call audio render π the whole point, honestly
π Static Public Member Functions inherited from SoAction
static void initClass (void)static void initClasses (void)static SoType getClassTypeId (void)static void nullAction (SoAction *action, SoNode *node)
π¦ Protected Member Functions π¦
virtual const SoEnabledElementsList & getEnabledElements (void) constβ the list of enabled elementsvirtual void beginTraversal (SoNode *node)β kick off the traversal
π§ Protected Member Functions inherited from SoAction
SoAction (void)virtual void endTraversal (SoNode *node)void setTerminated (const SbBool flag)virtual SbBool shouldCompactPathList (void) const
β Static Protected Member Functions β
static SoEnabledElementsList * getClassEnabledElements (void)static SoActionMethodList * getClassActionMethods (void)
πΈ Static Protected Member Functions inherited from SoAction
static SoEnabledElementsList * getClassEnabledElements (void)static SoActionMethodList * getClassActionMethods (void)
π Additional Inherited Members π
π Public Types inherited from SoAction
enum AppliedCode { NODE = 0, PATH = 1, PATH_LIST = 2 }enum PathCode { NO_PATH = 0, IN_PATH = 1, BELOW_PATH = 2, OFF_PATH = 3 }
π Protected Attributes inherited from SoAction
SoState * stateSoActionMethodList * traversalMethods
Detailed Description π«Ά
The SoAudioRenderAction class renders the aural parts of the scene graph. that's the whole job description bestie, and she does it flawlessly. π
Applying this method at a root node for a scene graph, path or pathlist will render all sound-related nodes contained within that instance to the current SoAudioDevice. so like, every sound node hiding in there gets sent straight to the audio device. no cap. πβ¨
Member Function Documentation π
SoType SoAudioRenderAction::getTypeId (void ) const [virtual]
Returns the type identification of an action derived from a class inheriting SoAction. This is used for run-time type checking and "downward" casting.
Usage example:
void bar(SoAction * action)
{
if (action->getTypeId() == SoGLRenderAction::getClassTypeId()) {
// safe downward cast, know the type
SoGLRenderAction * glrender = (SoGLRenderAction *)action;
}
return; // ignore if not renderaction
}
For application programmers wanting to extend the library with new actions: this method needs to be overridden in all subclasses. This is typically done as part of setting up the full type system for extension classes, which is usually accomplished by using the pre-defined macros available through Inventor/nodes/SoSubAction.h: SO_ACTION_SOURCE, SO_ACTION_INIT_CLASS and SO_ACTION_CONSTRUCTOR.
For more information on writing Coin extensions, see the SoAction class documentation.
Returns the actual type id of an object derived from a class inheriting SoAction. Needs to be overridden in all subclasses.
Implements SoAction. π«
bestie if you're writing a subclass you MUST override this one, it's not optional, it's giving mandatory.
void SoAudioRenderAction::addMethod (const SoType type, SoActionMethod method) [static]
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer. π like, not for you, sorry babe, it's private business.
void SoAudioRenderAction::enableElement (const SoType type, const int stackindex) [static]
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer. π same energy as above, internal-only, iykyk.
const SoEnabledElementsList & SoAudioRenderAction::getEnabledElements (void ) const [protected], [virtual]
Returns a list of the elements used by action instances of this class upon traversal operations.
Reimplemented from SoAction. π
void SoAudioRenderAction::beginTraversal (SoNode * node) [protected], [virtual]
This virtual method is called from SoAction::apply(), and is the entry point for the actual scenegraph traversal. β¨
It can be overridden to initialize the action at traversal start, for specific initializations in the action subclasses inheriting SoAction.
Default method just calls traverse(), which any overridden implementation of the method must do too (or call SoAction::beginTraversal()) to trigger the scenegraph traversal.
okay so if you override this, you literally have to calltraverse()(orSoAction::beginTraversal()) or nothing happens. don't skip it, that's the whole assignment. π
Reimplemented from SoAction. π
Author π
Generated automatically by Doxygen for Coin from the source code. yeah, a robot wrote this, she's an icon, she's a legend, and she is the moment. π€β¨
and that's the whole page bestie!! this was Coin, Version 3.1.3, and you were reading SoAudioRenderAction(3). go render some audio and slay π
ππ
π¦ 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