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

SoIdleSensor — sensor for one-time only callbacks when the application is idle

Description

       An idle sensor is almost exactly like an SoOneShotSensor, except that it is only triggered when there are
       no  timer queue sensors waiting to be triggered and there are no events waiting to be processed; that is,
       idle sensors will not be triggered if the delay queue  is  processed  because  the  delay  queue  timeout
       expires.  If  the delay queue timeout is disabled (see SoDB::setDelaySensorTimeout().), idle and one-shot
       sensors are exactly the same.

       Note that idle sensors do not reschedule themselves. Inventor 1 idle sensors were always scheduled;  call
       schedule() in the callback function to duplicate that behavior.

       See the SoOneShotSensor manual page for more information.

Inherits From

       SoSensor > SoDelayQueueSensor > SoIdleSensor

Methods

SoIdleSensor()SoIdleSensor(SoSensorCB*func,void*data)
          Creation  methods. The second method takes the callback function and data to be called when the sensor
          is triggered.

                         ~SoIdleSensor()
          Destroys the sensor, freeing up any memory associated with it after unscheduling it.

Name

       SoIdleSensor — sensor for one-time only callbacks when the application is idle

See Also

SoOneShotSensor,SoDelayQueueSensorSoIdleSensor(3IV)()

Synopsis

#include<Inventor/sensors/SoIdleSensor.h>

          Methods from class SoIdleSensor:

                         SoIdleSensor()SoIdleSensor(SoSensorCB*func,void*data)~SoIdleSensor()

          Methods from class SoDelayQueueSensor:

     voidsetPriority(uint32_tpri)uint32_tgetPriority()staticuint32_tgetDefaultPriority()virtualvoidschedule()virtualvoidunschedule()virtualSbBoolisScheduled()

          Methods from class SoSensor:

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

See Also