|
Open Inventor Reference
|
Internal class. More...
#include <Inventor/actions/SoAction.h>
Public Member Functions | |
| SoActionMethodList (SoActionMethodList *parentList) | |
| Constructor. Pass in list from parent action. | |
| SoActionMethod & | operator[] (int i) const |
| Operator used to get and set methods. | |
| void | addMethod (SoType nodeType, SoActionMethod method) |
| Add a method to the appropriate place in the list. | |
| void | setUp () |
| This MUST be called before using the list. | |
Public Member Functions inherited from SbPList | |
| SbPList () | |
| Constructor. | |
| SbPList (int initSize) | |
initSize specifies an initial size for the list, which is useful as an optimization if you can estimate the length of the list before you construct it. | |
| SbPList (const SbPList &pl) | |
| Copy constructor. | |
| ~SbPList () | |
| Destructor. | |
| void | append (void *ptr) |
| Adds given pointer to end of list. | |
| int | find (const void *ptr) const |
| Returns index of given pointer in list, or -1 if not found. | |
| void | insert (void *ptr, int addBefore) |
| Inserts given pointer in list before pointer with given index. | |
| void | remove (int which) |
| Removes pointer with given index. | |
| int | getLength () const |
| Returns number of pointers in list. | |
| void | truncate (int start) |
| Removes all pointers after one with given index, inclusive. | |
| void | copy (const SbPList &pl) |
| Copy a list. | |
| SbPList & | operator= (const SbPList &pl) |
| Assignment operator; copies list into this list. | |
| void *& | operator[] (int i) const |
| Returns pointer with given index. | |
| bool | operator== (const SbPList &pl) const |
| Equality and inequality operators. | |
| bool | operator!= (const SbPList &pl) const |
| Equality and inequality operators. | |
| void * | get (int i) const |
| Internal versions of [] that do not check for bounds: | |
| void | set (int i, void *j) |
A list of routines to call, one for each node type.
Definition at line 81 of file SoAction.h.
| SoActionMethodList::SoActionMethodList | ( | SoActionMethodList * | parentList | ) |
| void SoActionMethodList::addMethod | ( | SoType | nodeType, |
| SoActionMethod | method | ||
| ) |
|
inline |
The list will grow dynamically as we access items off the end of the list, and entries will be initialized to NULL.
Definition at line 90 of file SoAction.h.
| void SoActionMethodList::setUp | ( | ) |
It fills in NULL entries with their parents' method.