Open Inventor Reference
|
Holds a list of SoNotRec notification records. More...
#include <Inventor/misc/SoNotification.h>
Public Member Functions | |
SoNotList () | |
Constructor. | |
SoNotList (const SoNotList *copyFrom) | |
Copy constructor. | |
void | append (SoNotRec *rec) |
Appends given non-field record to end of list. | |
void | append (SoNotRec *rec, SoField *field) |
Appends given (container) field record to end of list. | |
void | setLastType (SoNotRec::Type t) |
Sets the type of the last (current) record in the list. | |
SoNotRec * | getFirstRec () const |
Returns first and last records in list. | |
SoNotRec * | getLastRec () const |
SoNotRec * | getFirstRecAtNode () const |
Returns first record in list that has a node base in the current chain of node-to-node notification. | |
SoField * | getLastField () const |
Returns last field set by notification (or NULL if notification did not originate at or propagate through a field) | |
SbNodeIdType | getTimeStamp () const |
Returns the time stamp so nodes can check if notification has already been handled. | |
void | print (FILE *fp) const |
Prints a notification list for debugging. | |
Points to the first and last records in the list. The records are linked backwards by "previous" pointers.
The list also points to the first notification record that involves a node. This info is used to determine which node actually notified sensors. There is also a pointer to the last field that changed, which is needed by field-specific sensors.
Definition at line 153 of file SoNotification.h.
SoNotList::SoNotList | ( | ) |
|
inline |
Definition at line 160 of file SoNotification.h.
void SoNotList::append | ( | SoNotRec * | rec | ) |
We assume the base in the record is a node.
|
inline |
Definition at line 180 of file SoNotification.h.
|
inline |
This information is passed to sensor callbacks to indicate which node initiated notification in the graph.
Definition at line 187 of file SoNotification.h.
|
inline |
Definition at line 191 of file SoNotification.h.
|
inline |
Definition at line 181 of file SoNotification.h.
|
inline |
Definition at line 195 of file SoNotification.h.
void SoNotList::print | ( | FILE * | fp | ) | const |
|
inline |
Reset firstAtNode pointer if we're going through field-to-field or engine-to-field connections.
Definition at line 170 of file SoNotification.h.
References SoNotRec::ENGINE, SoNotRec::FIELD, and SoNotRec::setType().