60#ifndef _SO_TIMER_QUEUE_SENSOR_
61#define _SO_TIMER_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.
Class for representation of a time.
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.
Abstract base class for sensors dependent on time.
SoTimerQueueSensor(SoSensorCB *func, void *data)
virtual void schedule()
Adds this sensor to the timer queue.
bool scheduled
Whether sensor is scheduled.
virtual ~SoTimerQueueSensor()
Destructor.
void setTriggerTime(const SbTime &time)
Used by subclasses to set the time at which the sensor is to be triggered.
const SbTime & getTriggerTime() const
Returns the time at which this sensor is scheduled to be triggered.
virtual void trigger()
Triggers the sensor, calling its callback function.
virtual bool isScheduled() const
Returns TRUE if this sensor has been scheduled and is waiting in the timer queue to be triggered.
SoTimerQueueSensor()
Constructors. The second form takes standard callback function and data.
virtual void unschedule()
If this sensor is scheduled, removes it from the timer queue so that it will not be triggered.