SoDelayQueueSensor - Online Linux Manual PageSection : 3
Updated : Mon Jan 25 2021
Source : Version 4.0.0
Note : Coin
NAMESoDelayQueueSensor − The SoDelayQueueSensor class is the abstract base class for priority scheduled sensors.
SYNOPSIS
#include <Inventor/sensors/SoDelayQueueSensor.h> Inherits SoSensor. Inherited by SoDataSensor, SoIdleSensor, and SoOneShotSensor.
Public Member FunctionsSoDelayQueueSensor (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)
Static Public Member Functionsstatic uint32_t getDefaultPriority (void)
Protected AttributesSbBool scheduled
Detailed DescriptionThe SoDelayQueueSensor class is the abstract base class for priority scheduled sensors. Delay queue sensors are invoked upon various events not related to time occurrences. See documentation of subclasses to see which types of events can be surveilled by the builtin sensor types. The priority values can be used to queue events by their importance, so the sensors are triggered in the sequence you want. The queue of delay sensors (i.e. 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. This time interval is by default 1/12th of a second, but can be controlled with the SoSensorManager::setDelaySensorTimeout() interface.
Constructor & Destructor Documentation
SoDelayQueueSensor::SoDelayQueueSensor (void)Default constructor.
SoDelayQueueSensor::SoDelayQueueSensor (SoSensorCB * func, void * data)Constructor taking as arguments the sensor callback function and the userdata which will be passed the callback. See also setFunction(), setData()
SoDelayQueueSensor::~SoDelayQueueSensor (void) [virtual]Destructor.
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. Please note that a low number means a high priority. A sensor with priority 5 will trigger before a sensor with priority 6. 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. See also getPriority(), getDefaultPriority()
uint32_t SoDelayQueueSensor::getPriority (void) constReturns sensor scheduling priority. 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. See also SoDB::setDelaySensorTimeout(), unschedule(), isScheduled() Implements SoSensor.
void SoDelayQueueSensor::unschedule (void) [virtual]Remove sensor from the delay queue, without triggering it first. See also schedule(), isScheduled() Implements SoSensor.
SbBool SoDelayQueueSensor::isScheduled (void) const [virtual]Check if this sensor is scheduled for triggering. 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. See also SoDB::setDelaySensorTimeout()
void SoDelayQueueSensor::trigger (void) [virtual]Trigger the sensor's callback function. Reimplemented from SoSensor. Reimplemented in SoFieldSensor, and SoDataSensor.
Member Data Documentation
SbBool SoDelayQueueSensor::scheduled [protected]TRUE if the sensor is currently scheduled.
AuthorGenerated automatically by Doxygen for Coin from the source code. 0
Johanes Gumabo
Data Size : 25,176 byte
man-SoDelayQueueSensor.3coin4Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 3 / 183,172
Visitor ID : :
Visitor IP : 3.144.37.178 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.