SOCALLBACKLIST(3iv)
π SoCallbackList β no cap, it's the callback list queen π
okay bestie, welcome to the SoCallbackList(3IV) page β yes that's the manual name, we're fancy like that π
πΈ NAME πΈ
SoCallbackList β manages a list of callback functions and associated data β¨
𧬠INHERITS FROM π§¬
SoCallbackList
like, it inherits from itself, which is very main character of it π
β¨ SYNOPSIS β¨
#include <Inventor/misc/SoCallbackList.h>
typedef void SoCallbackListCB(void *userData, void *callbackData)
Methods from class SoCallbackList:
SoCallbackList()
~SoCallbackList()
void addCallback(SoCallbackListCB *f, void *userData =
NULL)
void removeCallback(SoCallbackListCB *f, void *userData =
NULL)
void clearCallbacks()
int getNumCallbacks() const
void invokeCallbacks(void *callbackData)
π¦ DESCRIPTION π¦
So this class is literally the group chat admin of callback functions π β it manages a whole list of callback functions and user data together.
Here's the vibe: you (the user) can add a callback function to the list, and you bring your own userData along with it. Then when that callback gets invoked, it gets handed your userData β plus some callback data that the invoking routine itself specified. And the type of that callback data? Not SoCallbackList's problem, bestie β that's determined by the invoking routine. iykyk π«Ά
π METHODS π
SoCallbackList()~SoCallbackList()
Constructor and destructor. Birth and farewell, iconic behavior π
void addCallback(SoCallbackListCB *f, void *userData = NULL)void removeCallback(SoCallbackListCB *f, void *userData = NULL)
Adds a function to β or removes a function from β the list of callback functions. In and out, no drama, periodt β¨
void clearCallbacks()
Clears all callback functions from the list. Everything. Gone. Poof π
int getNumCallbacks() const
Returns the number of callback functions in the list. A little headcount, a little roll call π
void invokeCallbacks(void *callbackData)
Invokes each callback function in the list, passing each function the userData supplied when they were registered here, and callbackData, the callback-specific data supplied by the caller. Everybody gets called, everybody gets their data, it's giving democracy π₯
ngl bestie, if you add a callback and forget to remove it, that's on you β the list does not forget π
and that's the whole page, bestie!! π written up in the SoCallbackList(3IV)() manual, source SoCallbackList(3IV)() β same title, no date drama, we keep it timeless β mwah, go slay your callbacks π
π¦ where this page comes from
- debian bookworm: inventor-doc 2.1.5-10+dfsg-2 Β· LGPL-2.0-or-later
- debian trixie: inventor-doc 2.1.6+ds-2 Β· LGPL-2.0-or-later
- ubuntu jammy: inventor-doc 2.1.5-10-24
- ubuntu noble: inventor-doc 2.1.5-10+dfsg-2.1build2 Β· LGPL-2.0-or-later
- ubuntu questing: inventor-doc 2.1.6+ds-2
- ubuntu resolute: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- ubuntu stonking: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms