SoActionMethodList(3)

πŸ“¦ version 2.5.0, in fedora 43, fedora 44

πŸ’– 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 thing
  • SoActionMethod & operator[] (const int index) β€” grab a method by index
  • void addMethod (const SoType node, const SoActionMethod method) β€” adds a method
  • void 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) const
  • void insert (void *item, const int insertbefore)
  • void removeItem (void *item)
  • void remove (const int index)
  • void removeFast (const int index)
  • int getLength (void) const
  • void truncate (const int length, const int fit=0)
  • void ** getArrayPtr (const int start=0) const
  • void *& operator[] (const int index) const
  • int operator== (const SbPList &l) const
  • int operator!= (const SbPList &l) const
  • void * get (const int index) const
  • void 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