man SoIdleSensor () - sensor for one-time only callbacks when the application is idle

NAME

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

INHERITS FROM

SoSensor > SoDelayQueueSensor > SoIdleSensor

SYNOPSIS

#include <Inventor/sensors/SoIdleSensor.h> Methods from class SoIdleSensor: c } c } SoIdleSensor()

c } c } SoIdleSensor(SoSensorCB *func, void *data)

c } c } ~SoIdleSensor() Methods from class SoDelayQueueSensor: c } c } setPriority(uint32_t pri)

c } c } getPriority()

c } c } getDefaultPriority()

c } c } schedule()

c } c } unschedule()

c } c } isScheduled() Methods from class SoSensor: c } c } setFunction(SoSensorCB *callbackFunction)

c } c } getFunction() const

c } c } setData(void *callbackData)

c } c } getData() const

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.

METHODS

c } c } SoIdleSensor()

c } c } SoIdleSensor(SoSensorCB *func, void *data)

Creation methods. The second method takes the callback function and data to be called when the sensor is triggered. c } c } ~SoIdleSensor()

Destroys the sensor, freeing up any memory associated with it after unscheduling it.

SEE ALSO

SoOneShotSensor, SoDelayQueueSensor