File: SoIdleSensor.ivm

package info (click to toggle)
inventor 2.1.5-10-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 32,884 kB
  • ctags: 21,728
  • sloc: ansic: 33,861; lisp: 7,361; cpp: 3,874; yacc: 369; sh: 358; perl: 234; awk: 141; makefile: 74; csh: 35; sed: 11
file content (34 lines) | stat: -rw-r--r-- 1,242 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
NAME SoIdleSensor SoIdleSens "" {
sensor for one-time only callbacks when the application is idle
}

INCLUDE sensors/SoIdleSensor.h

DESC {
An idle sensor is almost exactly like an \cSoOneShotSensor\., 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
\m\+SoDB::setDelaySensorTimeout()\.\-SoDBSetDelaySensorTimeout()\.\..),
idle and one-shot sensors are exactly the same.
\p
Note that idle sensors do not reschedule themselves.  Inventor 1 idle
sensors were always scheduled; call \mschedule()\. in the callback
function to duplicate that behavior.
\p
See the \mSoOneShotSensor\. manual page for more information.
}

METHOD "" SoIdleSensor() {}
METHOD CreateCB SoIdleSensor(SoSensorCB *func, void *data) {
Creation methods.  The second method takes the callback function and
data to be called when the sensor is triggered.
}
METHOD "" ~SoIdleSensor() {
Destroys the sensor, freeing up any memory associated with it after
unscheduling it.
}

ALSO { SoOneShotSensor, SoDelayQueueSensor }