63#ifndef _SO_DELAY_QUEUE_SENSOR_
64#define _SO_DELAY_QUEUE_SENSOR_
#define INVENTOR_API
Disable some annoying warnings on MSVC 6.
void SoSensorCB(void *data, SoSensor *sensor)
This typedef defines the calling sequence for all callbacks from sensors.
Abstract base class for sensors not dependent on time.
virtual void trigger()
Triggers the sensor, calling its callback function.
SoDelayQueueSensor()
Constructors. The second form takes standard callback function and data.
virtual ~SoDelayQueueSensor()
Destructor.
bool scheduled
Whether sensor is scheduled.
virtual void schedule()
If this sensor's priority is non-zero, adds this sensor to the list of delay queue sensors ready to b...
uint32_t getPriority() const
Gets the priority of the sensor.
static uint32_t getDefaultPriority()
Returns the default delay queue sensor priority, which is 100.
void setCounter(uint32_t c)
Set/inquire counter when sensor was last triggered.
virtual bool isScheduled() const
Returns TRUE if this sensor has been scheduled and is waiting in the delay queue to be triggered.
virtual bool isIdleOnly() const
This method is overriden by IdleSensors to tell sensor manager that they should only be processed whe...
void setPriority(uint32_t pri)
Sets the priority of the sensor.
uint32_t getCounter() const
virtual void unschedule()
If this sensor is scheduled, removes it from the delay queue so that it will not be triggered.
SoDelayQueueSensor(SoSensorCB *func, void *data)
Abstract base class for Inventor sensors.
virtual bool isBefore(const SoSensor *s) const =0
This returns TRUE if this sensor should precede sensor s in whichever queue this sensor would be in.