SoActionMethodList(3)
π NAME π
SoActionMethodList β bestie, this class is literally a whole list of function pointers for action methods. That's the vibe. That's the job. π
β¨ SYNOPSIS β¨
#include <Inventor/lists/SoActionMethodList.h>
It Inherits SbPList. Yes, it's giving nepo baby, but in a cute way. π«Ά
πΈ Public Member Functions
SoActionMethodList (SoActionMethodList *const parentlist)β builds the thing~SoActionMethodList ()β destroys the thingSoActionMethod & operator[] (const int index)β grab a method by indexvoid addMethod (const SoType node, const SoActionMethod method)β adds a methodvoid setUp (void)β the final glow-up step, detailed below
π¦ Public Member Functions inherited from SbPList
SbPList (const int sizehint=DEFAULTSIZE)SbPList (const SbPList &l)~SbPList ()void copy (const SbPList &l)SbPList & operator= (const SbPList &l)void fit (void)void append (void *item)int find (void *item) constvoid insert (void *item, const int insertbefore)void removeItem (void *item)void remove (const int index)void removeFast (const int index)int getLength (void) constvoid truncate (const int length, const int fit=0)void ** getArrayPtr (const int start=0) constvoid *& operator[] (const int index) constint operator== (const SbPList &l) constint operator!= (const SbPList &l) constvoid * get (const int index) constvoid set (const int index, void *item)
π Additional Inherited Members
Protected Member Functions inherited from SbPList
void expand (const int size)int getArraySize (void) const
π Detailed Description π
The SoActionMethodList class contains function pointers for action methods. Lowkey iconic of it.
An SoActionMethodList contains one function pointer per node type. Every action carries an SoActioMethodList around so it knows which functions to call while it's traversing the scene graph. No cap, that's literally its whole personality. β¨
π Constructor & Destructor Documentation π
SoActionMethodList::SoActionMethodList (SoActionMethodList *const parentlist)
The constructor, bestie. The parentlist argument is the parent action's action method list. It can be NULL for action method lists that are not based on inheriting from a parent action. Choose your own adventure. π¦
References SoActionMethodList().
Referenced by SoActionMethodList().
SoActionMethodList::~SoActionMethodList ()
Destructor. It's over, it's done, it's giving closure. π
π Member Function Documentation π
void SoActionMethodList::addMethod (const SoType node, const SoActionMethod method)
Add a function pointer to a node type's action method. Slay.
References SoType::badType().
void SoActionMethodList::setUp (void )
This method must be called as the last initialization step before using the list. Like, the actual last one. It fills in the NULL entries with the parent's method. Don't skip it, don't do it early, just do it right. π
References SoNode::getActionMethodIndex(), SoType::getAllDerivedFrom(), SbPList::getLength(), SoType::getNumTypes(), SoType::getParent(), SoAction::nullAction(), and SbPList::truncate().
β Author β
Generated automatically by Doxygen for Coin from the source code. Not a human, just a little robot doing its best. π«Ά
That's the whole page, bestie! This was SoActionMethodList(3) from the Library Functions Manual, part of Coin Version 2.5.0 β mwah, periodt. π
π
π¦ where this page comes from
- fedora 43: Coin2-devel 2.5.0-52.fc43 Β· GPL-2.0-only
- fedora 43: Coin2-devel 2.5.0-52.fc43 Β· GPL-2.0-only
- fedora 44: Coin2-devel 2.5.0-54.fc44 Β· GPL-2.0-only
- fedora 44: Coin2-devel 2.5.0-54.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