SoDelayQueueSensor(3)
π NAME π
okay bestie, welcome to SoDelayQueueSensor(3) from the Library Functions Manual π this is the page for the SoDelayQueueSensor class, and she is the abstract base class for priority scheduled sensors. that's the whole main-character intro. periodt. β¨
β¨ SYNOPSIS β¨
#include <Inventor/sensors/SoDelayQueueSensor.h>
Inherits SoSensor.
Inherited by SoDataSensor, SoIdleSensor, and SoOneShotSensor.
π Public Member Functions
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
virtual void trigger (void)
π«Ά 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
π Static Public Member Functions
static uint32_t getDefaultPriority (void)
π Static Public Member Functions inherited from SoSensor
static void initClass (void)
π‘οΈ Protected Attributes
SbBool scheduled
π Protected Attributes inherited from SoSensor
SoSensorCB * func
void * funcData
π¦ Detailed Description π¦
SoDelayQueueSensor is the abstract base class for priority scheduled sensors. that's her whole identity, and she's serving it. π
Delay queue sensors are invoked upon various events not related to time occurrences. wanna know which types of events the builtin sensor types can surveil? go read the subclass docs, bestie. π
The priority values can be used to queue events by their importance, so the sensors are triggered in the sequence you want. it's giving scheduling with intention. β¨
The queue of delay sensors β aka instances of subclasses of SoDelayQueueSensor β will be processed as soon as either the run-time system is idle, or if it is continually busy they will be processed within a fixed amount of time. no cap. π¦
This time interval is 1/12th of a second by default, but can be controlled with the SoSensorManager::setDelaySensorTimeout() interface. π
π Constructor & Destructor Documentation π
SoDelayQueueSensor::SoDelayQueueSensor (void )
Default constructor. she's born. β¨
SoDelayQueueSensor::SoDelayQueueSensor (SoSensorCB * func, void * data)
Constructor taking as arguments the sensor callback function and the userdata which will be passed the callback. setup era. π«Ά
See also:setFunction(),setData()
SoDelayQueueSensor::~SoDelayQueueSensor (void ) [virtual]
Destructor. bye bestie. π
π Member Function Documentation π
void SoDelayQueueSensor::setPriority (uint32_t pri)
Set this sensor's priority in the scheduling queue. When sensors are processed, high priority sensors will trigger before low priority sensors. periodt.
Please note that a low number means a high priority. A sensor with priority 5 will trigger before a sensor with priority 6. yes, it's giving backwards but that's the vibe. π
Sensors with priority 0 have a special meaning in Coin/Inventor. They are called immediate sensors, and will trigger immediately after the current notification chain has finished. Priority 0 sensors should be used with care, since they might lead to bad performance if you do some processing in the sensor callback. π
This setting does not affect SoDataSensor delete-callback invocations, which always are immediate. fr fr.
See also:getPriority(),getDefaultPriority()
uint32_t SoDelayQueueSensor::getPriority (void ) const
Returns sensor scheduling priority. simple as that. β¨
See also:setPriority(),getDefaultPriority()
uint32_t SoDelayQueueSensor::getDefaultPriority (void ) [static]
Returns the default scheduling priority value. The default sensor priority is 100. β
See also: getPriority()
void SoDelayQueueSensor::schedule (void ) [virtual]
Put the sensor in the global delay queue. This means it will be triggered either when the CPU is idle, or when the specified delay queue time-out is reached. she's waiting for her moment. π¦
See also:SoDB::setDelaySensorTimeout(),unschedule(),isScheduled()
Implements SoSensor.
void SoDelayQueueSensor::unschedule (void ) [virtual]
Remove sensor from the delay queue, without triggering it first. ghosted. π
See also:schedule(),isScheduled()
Implements SoSensor.
SbBool SoDelayQueueSensor::isScheduled (void ) const [virtual]
Check if this sensor is scheduled for triggering. vibe check. πΈ
See also:schedule(),unschedule()
Implements SoSensor.
SbBool SoDelayQueueSensor::isIdleOnly (void ) const [virtual]
Returns a flag indicating whether or not the sensor should only be triggered if the application is truly idle, and not when the delay queue is processed because of the delay queue timeout. no fake-idle energy allowed. π€
See also: SoDB::setDelaySensorTimeout()
void SoDelayQueueSensor::trigger (void ) [virtual]
Trigger the sensor's callback function. do it. π₯
Reimplemented from SoSensor.
Reimplemented in SoDataSensor, and SoFieldSensor.
π Member Data Documentation π
SbBool SoDelayQueueSensor::scheduled [protected]
TRUE if the sensor is currently scheduled. yes queen, she's on the books. π
πΈ Author πΈ
Generated automatically by Doxygen for Coin from the source code. that's the origin story. β¨
Coin β’ Version 3.1.3 β’ SoDelayQueueSensor(3) β that's the footer energy, bestie. ππ¦
π¦ where this page comes from
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms