SoActionMethodList(3)

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

πŸŽ€ NAME πŸŽ€

SoActionMethodList β€” bestie, it's the class that holds function pointers for action methods, and that's the whole vibe πŸ’…


✨ SYNOPSIS ✨

#include <Inventor/lists/SoActionMethodList.h>

It inherits SbPList. So like, everything SbPList can do? It can do too. Nepo baby behavior but make it C++ 🫢

🌸 Public Member Functions 🌸

  • SoActionMethodList (SoActionMethodList *const parentlist)
  • ~SoActionMethodList ()
  • SoActionMethod & operator[] (const int index)
  • void addMethod (const SoType node, const SoActionMethod method)
  • void setUp (void)

🌈 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 πŸ’–

SoActionMethodList contains function pointers for action methods. That's the assignment, and it ate πŸ”₯

An SoActionMethodList holds one function pointer per node type. Each action has its own SoActioMethodList so it knows which functions to call while it's walking the scene graph, fr fr.


πŸ¦‹ Constructor & Destructor Documentation πŸ¦‹

SoActionMethodList::SoActionMethodList (SoActionMethodList *const parentlist)

The constructor, bestie. The parentlist argument is the parent action's action method list. And plot twist: it can be NULL for action method lists that aren't based on inheriting from a parent action. Iconic flexibility ✨

SoActionMethodList::~SoActionMethodList ()

Destructor. She's done, she's leaving, she said what she said πŸ’…


πŸ‘‘ Member Function Documentation πŸ‘‘

void SoActionMethodList::addMethod (const SoType node, const SoActionMethod method)

Add a function pointer to a node type's action method. Slay 🌟

void SoActionMethodList::setUp (void )

Okay so this one is important: setUp() must be called as the last initialization step before you actually use the list. What does it do? It fills in the NULL entries with the parent's method. No cap. Don't skip her πŸ™ˆ

🌸 Author 🌸

Generated automatically by Doxygen for Coin from the source code. (Not me writing a novel, it's the robots 🧚)


and that's the whole page, bestie β€” SoActionMethodList(3), sitting pretty in the Library Functions Manual, brought to you by Coin, Version 3.1.3. Go forth and traverse those scene graphs, you absolute main character πŸ‘‘πŸ’–

πŸ“¦ where this page comes from