SoIdleSensor Class Reference
[Sensors]

Sensor for one-time only callbacks when the application is idle. More...

#include <Inventor/sensors/SoIdleSensor.h>

Inheritance diagram for SoIdleSensor:
SoDelayQueueSensor SoSensor

List of all members.

Public Member Functions

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

Detailed Description

Sensor for one-time only callbacks when the application is idle.

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 to duplicate that behavior.

See the SoOneShotSensor manual page for more information.

SEE ALSO

SoOneShotSensor, SoDelayQueueSensor

See related examples:

RenderToTexture, TouchInertia


Constructor & Destructor Documentation

SoIdleSensor::SoIdleSensor (  ) 

Default constructor.

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

Constructor that takes the callback function and data to be called when the sensor is triggered.

virtual SoIdleSensor::~SoIdleSensor (  )  [virtual]

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


The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 15 Mar 2023
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/