52#ifndef _SO_TIMER_SENSOR_
53#define _SO_TIMER_SENSOR_
143 void reschedule(
const SbTime &);
149 virtual void trigger();
#define TRUE
Possible value of SbBool.
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 sensors dependent on time.
Sensor that triggers repeatedly at regular intervals.
void setBaseTime(const SbTime &base)
Sets the base time.
virtual void schedule()
Adds this sensor to the timer queue.
const SbTime & getBaseTime() const
Gets the base time.
virtual void unschedule()
If this sensor is scheduled, removes it from the timer queue so that it will not be triggered.
virtual ~SoTimerSensor()
Destroys the sensor, freeing up any memory associated with it after unscheduling it.
SoTimerSensor(SoSensorCB *func, void *data)
Constructor that takes the function and data to be called when the sensor is triggered.
void setInterval(const SbTime &intvl)
Sets the interval.
const SbTime & getInterval() const
Gets the interval.
SoTimerSensor()
Default constructor.