58#ifndef _SO_ALARM_SENSOR_
59#define _SO_ALARM_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.
Triggers a callback once sometime in the future.
SoAlarmSensor()
Creation methods.
SoAlarmSensor(SoSensorCB *func, void *data)
Creation methods.
const SbTime & getTime() const
Returns the time the sensor is scheduled to be triggered.
virtual ~SoAlarmSensor()
Destroys the sensor, freeing up any memory associated with it after unscheduling it.
virtual void schedule()
Overrides the regular schedule() method because we have to set up the trigger time first.
void setTimeFromNow(const SbTime &relTime)
Sets the sensor to go off the given amount of time from now.
void setTime(const SbTime &absTime)
Sets the sensor to go off at the specified time.
Abstract base class for sensors dependent on time.