actions(3)
π actions(3) β Action Classes π
okay bestie, welcome to the actions(3) page from the Coin Library Functions Manual β¨ this is the whole glow-up tour of every Action Class in Coin, and yes, we're doing all of them, no skips, no shortcuts, periodt. grab a strawberry π and let's go.
πΈ NAME πΈ
actions β Action Classes π
π¦ SYNOPSIS π¦
β¨ Classes β¨
SoActionβ the mother of them all, fr. This is the base class for literally every traversal action πSoAudioRenderActionβ handles the aural parts of the scene graph, like the sound stuff π§SoBoxHighlightRenderActionβ renders the scene and puts cute highlighted boxes around your selections πSoCallbackActionβ invokes callbacks at specific nodes, it's the flexible bestie πSoGLRenderActionβ renders the scene graph using OpenGL calls, the main character of rendering πSoGetBoundingBoxActionβ calculates bounding boxes for nodes and subgraphs, measuring vibes πSoGetMatrixActionβ the action for accumulating the transformation matrix of a subgraph πSoGetPrimitiveCountActionβ counts the primitives in a scene, she's doing inventory π’SoHandleEventActionβ distributes user events to the scene, the social butterfly π¦SoLineHighlightRenderActionβ renders selections with line highlighting βοΈSoPickActionβ the base class for picking actions, the blueprint π§SoRayPickActionβ does ray intersection with scene graphs, she's aiming π―SoReorganizeActionβ reorganizes your scene graph to optimize traversal/rendering, a lil makeover β¨SoSearchActionβ provides methods for searching through scene graphs πSoToVRML2Actionβ builds a whole new scene graph, using only VRML97/VRML2 nodes πSoToVRMLActionβ builds a new scene graph using only VRML 1.0 nodes πΌSoWriteActionβ writes a scene graph to file, she's documenting everything πSoIntersectionDetectionActionβ for detecting intersecting primitives in a scene π₯SoActionMethodListβ contains function pointers for action methods π§·SoEnabledElementsListβ a container for type info for element types that are enabled in actions π¦
π Detailed Description π
So, actions are objects that traverse a scene graph to drive some scene-related process. Two examples, bestie: one is OpenGL rendering, and the other is ray picking. iconic range honestly.
At the most basic level, most action management will be done for you behind the scenes in an SoSceneManager object π so the only actions you might even need to get acquainted with are SoSearchAction and SoWriteAction. lowkey chill.
But for more advanced usage of Coin, you might want (or need π) to take full control over driving all the actions yourself. If that's the vibe, then you also need to know about SoGLRenderAction, SoHandleEventAction, SoGetBoundingBoxAction, and SoRayPickAction. those four are the it-girls of advanced traversal.
The remaining actions are mostly more special-purpose actions of various kinds β except for SoCallbackAction, who is not like the others π«Ά.
and listen, before you go off and implement your own extension action, please take a good long look at theSoCallbackActionclass first. she's a general-purpose action that can be used as the framework for implementing almost any traversal-based process, with callback-hooks for all kinds of events that happen during traversal. In most cases you can avoid the whole hassle of writing a new action and just useSoCallbackActioninstead. no cap, save yourself the pain π
π Author π
Generated automatically by Doxygen for Coin from the source code. (not a human, just a robot doing her thing π€π)
and that's the whole page, bestie!! πβ¨ this was Coin, Version 3.1.3, and the page is actions(3) β mwah, go slay some scene graphs ππ¦π
π¦ 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