51#ifndef _SO_ALARM_SENSOR_
52#define _SO_ALARM_SENSOR_
54#include <Inventor/sensors/SoTimerQueueSensor.h>
Class for representation of a time.
Triggers a delegate once sometime in the future.
SoAlarmSensor()
Constructor.
SoAlarmSensor(SoSensorCB *func, void *data)
This constructor takes the callback function and data to be called when the sensor is triggered.
const SbTime & getTime() const
Returns the time at which the sensor is set to be triggered.
virtual ~SoAlarmSensor()
Destroys the sensor, freeing up any memory associated with it after unscheduling it.
virtual void schedule()
Adds this sensor to the timer queue.
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.
void SoSensorCB(void *data, SoSensor *sensor)
This typedef defines the calling sequence for all callbacks from sensors.
Abstract base class for sensors dependent on time.