SoIdleSensor Class |
Sensor for one-time only callbacks when the application is idle.
Namespace: OIV.Inventor.Sensors
The SoIdleSensor type exposes the following members.
Name | Description | |
---|---|---|
SoIdleSensor | Default constructor. |
Name | Description | |
---|---|---|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
GetHashCode |
Overrides GetHashCode().
(Inherited from SoNetBase.) | |
GetPriority | Gets the priority of the sensor. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsIdleOnly | (Inherited from SoDelayQueueSensor.) | |
IsScheduled | Returns true if this sensor has been scheduled and is waiting in a sensor queue to be triggered. | |
Schedule | (Inherited from SoSensor.) | |
SetPriority | Sets the priority of the sensor. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Unschedule | (Inherited from SoSensor.) |
An idle sensor is almost exactly like an OIV.Inventor.Sensors.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 OIV.Inventor.SoDB.SetDelaySensorTimeout(OIV.Inventor.SbTime).), 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 () in the delegateto duplicate that behavior.
See the OIV.Inventor.Sensors.SoOneShotSensor manual page for more information.