File: SoTimerQueueSensor.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 (35 lines) | stat: -rw-r--r-- 1,326 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
35
NAME SoTimerQueueSensor SoTimerQSens "" {
abstract base class for sensors dependent on time
}
INCLUDE sensors/SoTimerQueueSensor.h
DESC {
Timer queue sensors are sensors that trigger themselves at specific
times.  The timer queue is normally processed as part of a programs
main loop when the program is not busy doing something else.  Note
that processing the timer queue is not asynchronous \(em the program must
re-enter its main loop for timers to be triggered.  When the timer
queue is processed, all timers scheduled to go off at or before the
current time are triggered once, in order from earliest to latest.
}

METHOD getTrigTime const SbTime &getTriggerTime() {
Returns the time at which this sensor is scheduled to be triggered.
If the sensor is not scheduled the results are undefined.
}

METHOD sched virtual void schedule() {
Adds this sensor to the timer queue.  Subclasses provide methods for
setting when the sensor will be triggered.
}
METHOD unsched virtual void unschedule() {
If this sensor is scheduled, removes it from the timer queue so that
it will not be triggered.
}
METHOD isSched virtual SbBool isScheduled() {
Returns TRUE if this sensor has been scheduled and is waiting in the
timer queue to be triggered.
}

ALSO { SoTimerSensor, SoAlarmSensor, SoIdleSensor, SoOneShotSensor, 
SoDataSensor }