logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SoTimerQueueSensor — abstract base class for sensors dependent on time

Description

       Timer  queue  sensors  are sensors that trigger themselves at specific times. The timer queue is normally
       processed as part of a programs main loop when the program is not busy doing something  else.  Note  that
       processing the timer queue is not asynchronous — the program must re-enter its main loop for timers to be
       triggered.  When  the  timer  queue is processed, all timers scheduled to go off at or before the current
       time are triggered once, in order from earliest to latest.

Inherits From

       SoSensor > SoTimerQueueSensor

Methods

constSbTime&getTriggerTime()
          Returns the time at which this sensor is scheduled to be triggered. If the sensor is not scheduled the
          results are undefined.

     virtualvoidschedule()
          Adds this sensor to the timer queue. Subclasses provide methods for setting when the  sensor  will  be
          triggered.

     virtualvoidunschedule()
          If this sensor is scheduled, removes it from the timer queue so that it will not be triggered.

     virtualSbBoolisScheduled()
          Returns TRUE if this sensor has been scheduled and is waiting in the timer queue to be triggered.

Name

       SoTimerQueueSensor — abstract base class for sensors dependent on time

See Also

SoTimerSensor,SoAlarmSensor,SoIdleSensor,SoOneShotSensor,SoDataSensorSoTimerQueueSensor(3IV)()

Synopsis

#include<Inventor/sensors/SoTimerQueueSensor.h>

          Methods from class SoTimerQueueSensor:

     constSbTime&getTriggerTime()virtualvoidschedule()virtualvoidunschedule()virtualSbBoolisScheduled()

          Methods from class SoSensor:

     voidsetFunction(SoSensorCB*callbackFunction)SoSensorCB*getFunction()constvoidsetData(void*callbackData)void*getData()const

See Also