Open Inventor Reference
SoNotList Class Reference

Holds a list of SoNotRec notification records. More...

#include <Inventor/misc/SoNotification.h>

List of all members.

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.
SoNotRecgetFirstRec () const
 Returns first and last records in list.
SoNotRecgetLastRec () const
SoNotRecgetFirstRecAtNode () const
 Returns first record in list that has a node base in the current chain of node-to-node notification.
SoFieldgetLastField () const
 Returns last field set by notification (or NULL if notification did not originate at or propagate through a field)
uint32_t 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.

Detailed Description

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.


Constructor & Destructor Documentation

SoNotList::SoNotList ( )
SoNotList::SoNotList ( const SoNotList copyFrom) [inline]

Definition at line 160 of file SoNotification.h.


Member Function Documentation

void SoNotList::append ( SoNotRec rec)
void SoNotList::append ( SoNotRec rec,
SoField field 
)

We assume the base in the record is a node.

SoNotRec* SoNotList::getFirstRec ( ) const [inline]

Definition at line 180 of file SoNotification.h.

SoNotRec* SoNotList::getFirstRecAtNode ( ) const [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.

SoField* SoNotList::getLastField ( ) const [inline]

Definition at line 191 of file SoNotification.h.

SoNotRec* SoNotList::getLastRec ( ) const [inline]

Definition at line 181 of file SoNotification.h.

uint32_t SoNotList::getTimeStamp ( ) const [inline]

Definition at line 195 of file SoNotification.h.

void SoNotList::print ( FILE *  fp) const
void SoNotList::setLastType ( SoNotRec::Type  t) [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().


The documentation for this class was generated from the following file: