The soalarmsensor class is a sensor which will trigger once at a specified time. soalarmsensor provides a convenient way of setting up triggers for jobs which should be executed only once when they are scheduled.
#include <Inventor/sensors/SoAlarmSensor.h>
Inherits SoTimerQueueSensor.
SoAlarmSensor (void)
SoAlarmSensor (SoSensorCB *func, void *data)
virtual ~SoAlarmSensor (void)
void setTime (const SbTime &abstime)
void setTimeFromNow (const SbTime &reltime)
const SbTime & getTime (void) const
virtual void schedule (void)
The SoAlarmSensor class is a sensor which will trigger once at a specified time.
SoAlarmSensor provides a convenient way of setting up triggers for jobs which should be executed only once when they are scheduled.
Default constructor.
Constructor taking as parameters the sensor callback function and the userdata which will be passed the callback.
See also:
setFunction(), setData()
Destructor.
Set the time at which the sensor will trigger.
Note that you must manually schedule() the sensor after calling this method.
See also:
setTimeFromNow(), getTime()
Set the alarm to be at a specified offset from the current time.
Note that you must manually schedule() the sensor after calling this method.
See also:
setTime(), getTime()
Returns the trigger time for the alarm as an absolute value from 1970-01-01 00:00:00.
See also:
setTime(), setTimeFromNow()
Put the sensor in the global timer queue.
See also:
unschedule(), isScheduled()
Reimplemented from SoTimerQueueSensor.
Generated automatically by Doxygen for Coin from the source code.