SoNodeSensor(3)
๐ SoNodeSensor ๐
okay bestie, welcome to the Coin manual page for SoNodeSensor(3) โ she's a sensor, she watches nodes, she's iconic, and by the end of this you're gonna be obsessed with her. no cap. โจ
๐ธ NAME ๐ธ
SoNodeSensor โ the class that detects changes to nodes. that's it. that's the whole job. she's nosy (affectionate) ๐
๐ฆ SYNOPSIS ๐ฆ
#include <Inventor/sensors/SoNodeSensor.h>
Inherits SoDataSensor.
โจ Public Member Functions โจ
SoNodeSensor (void)
SoNodeSensor (SoSensorCB *func, void *data)
virtual ~SoNodeSensor (void)
void attach (SoNode *node)
void detach (void)
SoNode * getAttachedNode (void) const
๐ Public Member Functions inherited from SoDataSensor ๐
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
SoNotRec::OperationType getTriggerOperationType (void) const
int getTriggerIndex (void) const
int getTriggerFieldNumIndices (void) const
SoNode * getTriggerGroupChild (void) const
SoNode * getTriggerReplacedGroupChild (void) const
virtual void trigger (void)
virtual void notify (SoNotList *l)
๐ Public Member Functions inherited from SoDelayQueueSensor ๐
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
๐ Public Member Functions inherited from SoSensor ๐
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 Public Member Functions inherited from SoDelayQueueSensor:
static uint32_t getDefaultPriority (void)
Static Public Member Functions inherited from SoSensor:
static void initClass (void)
Protected Member Functions inherited from SoDataSensor:
void invokeDeleteCallback (void)
Protected Attributes inherited from SoDelayQueueSensor:
SbBool scheduled
Protected Attributes inherited from SoSensor:
SoSensorCB * func
void * funcData
๐ซ Detailed Description ๐ซ
so. The SoNodeSensor class detects changes to nodes. yes, we said it twice, it's that important, periodt. ๐
Attach a node to a sensor of this type to put it under surveillance โ like, full main character stalker energy, but legal and also the whole point of the API โ so you can act upon changes to the node. ๐ต๏ธโโ๏ธ
Any modification to the node's fields will trigger the sensor. Also changes to the node's children (if any) will trigger it, including if nodes are added or removed as children below the node in the subgraph. so she's watching the whole family tree, not just the one node. fr fr. ๐ณ
An SoNodeSensor can also act for delete-callback purposes alone and does not need a regular notification-based callback. lowkey flexible of her. ๐ซถ
๐ฅ Constructor & Destructor Documentation ๐ฅ
๐ SoNodeSensor::SoNodeSensor (void )
Default constructor. the "no thoughts, head empty, just vibes" starting point. โจ
๐ SoNodeSensor::SoNodeSensor (SoSensorCB * func, void * data)
Constructor taking as parameters the sensor callback function and the userdata which will be passed to the callback. you hand her the function, you hand her the data, she does the rest. slay. ๐
See also
setFunction()setData()
๐ SoNodeSensor::~SoNodeSensor (void ) [virtual]
Destructor. she's leaving the group chat. ๐ญ
๐ฆ Member Function Documentation ๐ฆ
๐ธ void SoNodeSensor::attach (SoNode * node)
Attach sensor to a node. Whenever any data in the node (or its children, if it is an SoGroup or SoGroup derived node) changes, the sensor will be triggered and call the callback function. every little change, she's on it. ๐
important detail bestie, don't skip it: 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. no surprise math happening behind your back, okay? ๐งฎ
When the attached node is deleted, the sensor will be automatically detach()ed. she knows when to let go. ๐
See also
detach()
๐ธ void SoNodeSensor::detach (void )
Detach sensor from node. As long as an SoNodeSensor is detached, it will never call its callback function. she's off the clock, do not text her. ๐
See also
attach()
๐ธ SoNode * SoNodeSensor::getAttachedNode (void ) const
Returns a pointer to the node connected to the sensor. "who you watching?" she'll tell you. ๐
See also
attach()detach()
๐ Author ๐
Generated automatically by Doxygen for Coin from the source code. so like, don't blame a human for the formatting, blame the robot. ๐คโจ
okay that's the whole page, you made it, I'm so proud of you ๐ฅน
this little beauty is from Coin version 4.0.10, dated Thu Jun 25 2026 00:00:00, and yes she's filed under SoNodeSensor(3) โ go forth and attach responsibly, bestie. mwah. ๐๐๐ฆ๐
๐ฆ where this page comes from
- fedora 43: Coin4-devel 4.0.10-1.fc43 ยท BSD-3-Clause AND GPL-3.0-or-later
- fedora 43: Coin4-devel 4.0.10-1.fc43 ยท BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 ยท BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 ยท BSD-3-Clause AND GPL-3.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms