SoAlarmSensor(3) | Coin | SoAlarmSensor(3) |
NAME
SoAlarmSensor - The SoAlarmSensor class is a sensor which will trigger once at a specified time.
SYNOPSIS
#include <Inventor/sensors/SoAlarmSensor.h>
Inherits SoTimerQueueSensor.
Public Member Functions
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)
Public Member Functions inherited from SoTimerQueueSensor
SoTimerQueueSensor (void)
SoTimerQueueSensor (SoSensorCB *func, void *data)
virtual ~SoTimerQueueSensor (void)
const SbTime & getTriggerTime (void) const
virtual void unschedule (void)
virtual SbBool isScheduled (void) const
virtual void trigger (void)
Public Member Functions inherited from SoSensor
SoSensor (void)
SoSensor (SoSensorCB *func, void *data)
virtual ~SoSensor (void)
void setFunction (SoSensorCB *callbackfunction)
SoSensorCBPtr getFunction (void) const
void setData (void *callbackdata)
void * getData (void) const
void setNextInQueue (SoSensor *next)
SoSensor * getNextInQueue (void) const
Additional Inherited Members
Static Public Member Functions inherited from SoSensor
static void initClass (void)
Protected Member Functions inherited from
SoTimerQueueSensor
void setTriggerTime (const SbTime &time)
Protected Attributes inherited from SoTimerQueueSensor
SbBool scheduled
Protected Attributes inherited from SoSensor
SoSensorCB * func
void * funcData
Detailed Description
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.
Constructor & Destructor Documentation
SoAlarmSensor::SoAlarmSensor (void )
Default constructor.
SoAlarmSensor::SoAlarmSensor (SoSensorCB * func, void * data)
Constructor taking as parameters the sensor callback function and the userdata which will be passed to the callback.
See also
SoAlarmSensor::~SoAlarmSensor (void ) [virtual]
Destructor.
Member Function Documentation
void SoAlarmSensor::setTime (const SbTime & abstime)
Set the time at which the sensor will trigger.
Note that you must manually schedule() the sensor after calling this method.
See also
void SoAlarmSensor::setTimeFromNow (const SbTime & reltime)
Set the alarm to be triggered at a specified offset from the current time.
Note that you must manually schedule() the sensor after calling this method.
See also
const SbTime & SoAlarmSensor::getTime (void ) const
Returns the trigger time for the alarm as an absolute value from 1970-01-01 00:00:00.
See also
void SoAlarmSensor::schedule (void ) [virtual]
Put the sensor in the global timer queue.
See also
Reimplemented from SoTimerQueueSensor.
Author
Generated automatically by Doxygen for Coin from the source code.
Fri Sep 6 2024 15:32:06 | Version 4.0.3 |