![]() |
http://www.sim.no http://www.coin3d.org |
The SoNodeSensor class detects changes to nodes.Attach a node to a sensor of this type to put it under surveillance, so you can act upon changes to the node. More...
#include <Inventor/sensors/SoNodeSensor.h>
Public Member Functions | |
SoNodeSensor (void) | |
SoNodeSensor (SoSensorCB *func, void *data) | |
virtual | ~SoNodeSensor (void) |
void | attach (SoNode *node) |
void | detach (void) |
SoNode * | getAttachedNode (void) const |
![]() | |
SoDataSensor (void) | |
SoDataSensor (SoSensorCB *func, void *data) | |
virtual | ~SoDataSensor (void) |
void | setDeleteCallback (SoSensorCB *function, void *data=NULL) |
SoNode * | getTriggerNode (void) const |
SoField * | getTriggerField (void) const |
SoPath * | getTriggerPath (void) const |
void | setTriggerPathFlag (SbBool flag) |
SbBool | getTriggerPathFlag (void) const |
virtual void | trigger (void) |
virtual void | notify (SoNotList *l) |
![]() | |
SoDelayQueueSensor (void) | |
SoDelayQueueSensor (SoSensorCB *func, void *data) | |
virtual | ~SoDelayQueueSensor (void) |
void | setPriority (uint32_t pri) |
uint32_t | getPriority (void) const |
virtual void | schedule (void) |
virtual void | unschedule (void) |
virtual SbBool | isScheduled (void) const |
virtual SbBool | isIdleOnly (void) const |
![]() | |
SoSensor (void) | |
SoSensor (SoSensorCB *func, void *data) | |
virtual | ~SoSensor (void) |
void | setFunction (SoSensorCB *callbackfunction) |
SoSensorCBPtr | getFunction (void) const |
void | setData (void *callbackdata) |
void * | getData (void) const |
void | setNextInQueue (SoSensor *next) |
SoSensor * | getNextInQueue (void) const |
Additional Inherited Members | |
![]() | |
static uint32_t | getDefaultPriority (void) |
![]() | |
static void | initClass (void) |
![]() | |
void | invokeDeleteCallback (void) |
![]() | |
SbBool | scheduled |
![]() | |
SoSensorCB * | func |
void * | funcData |
The SoNodeSensor class detects changes to nodes.
Attach a node to a sensor of this type to put it under surveillance, so you can act upon changes to the node.
Any modification to the node's fields will trigger the sensor, as will changes to node's children (if any), including if nodes are added or removed as children below the node in the subgraph.
SoNodeSensor::SoNodeSensor | ( | void | ) |
Default constructor.
SoNodeSensor::SoNodeSensor | ( | SoSensorCB * | func, |
void * | data | ||
) |
Constructor taking as parameters the sensor callback function and the userdata which will be passed the callback.
|
virtual |
Destructor.
References detach().
void SoNodeSensor::attach | ( | SoNode * | node | ) |
Attach sensor to a node. Whenever any data in the node (or its children, if it's an SoGroup or SoGroup derived node) changes, the sensor will be triggered and call the callback function.
Attaching a node sensor to a node will not increase the node's reference count (and conversely, detach()'ing the node sensor will not decrease the reference count, either).
References SoBase::addAuditor(), detach(), and SoDebugError::postWarning().
Referenced by SoWriteAction::beginTraversal().
void SoNodeSensor::detach | ( | void | ) |
Detach sensor from node. As long as an SoNodeSensor is detached, it will never call its callback function.
References SoBase::removeAuditor().
Referenced by attach(), getAttachedNode(), and ~SoNodeSensor().
SoNode * SoNodeSensor::getAttachedNode | ( | void | ) | const |
Returns a pointer to the node connected to the sensor.
References detach(), and SoDataSensor::invokeDeleteCallback().
Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.
Generated on Fri Feb 17 2017 for Coin by Doxygen. 1.8.13