Debian Codegraph @

doc/man/man3/ivm/sensors/SoAlarmSensor.ivm

raw
1 NAME SoAlarmSensor SoAlarmSens "" {
2 triggers a callback once sometime in the future
3 }
4 INCLUDE sensors/SoAlarmSensor.h
5 DESC {
6 This type of sensor can be used to schedule a one-time callback for
7 some time in the future. The sensor is not guaranteed to be called at
8 exactly that time, but will be called sometime after the specified
9 time.
10 }
11
12 METHOD "" SoAlarmSensor() {}
13 METHOD CreateCB SoAlarmSensor(SoSensorCB *func, void *data) {
14 Creation methods. The second method takes the callback function and
15 data to be called when the sensor is triggered.
16 }
17 METHOD "" ~SoAlarmSensor() {
18 Destroys the sensor, freeing up any memory associated with it after
19 unscheduling it.
20 }
21 METHOD "" void setTime(const SbTime &absTime) {
22 Sets the sensor to go off at the specified time. You \emust\. also
23 call \m\+schedule()\.\-SoAlarmSensSched()\.\. for the sensor to be
24 triggered. If the sensor is already scheduled, it must be unscheduled
25 and then rescheduled for the change in the trigger time to take
26 effect.
27 }
28 METHOD "" void setTimeFromNow(const SbTime &relTime) {
29 Sets the sensor to go off the given amount of time from now. You
30 \emust\. also call \m\+schedule()\.\-SoAlarmSensSched()\.\. for the
31 sensor to be
32 triggered. If the sensor is already scheduled, it must be unscheduled
33 and then rescheduled for the change in the trigger time to take
34 effect.
35 }
36 METHOD "" const SbTime &getTime() const {
37 Returns the time at which the sensor is set to be triggered. This is
38 similar to the \m\+getTriggerTime\.\-SoAlarmSensGetTrigTime\.\.
39 method, but
40 returns the time even if the sensor has not yet been scheduled.
41 }
42
43 ALSO { SoOneShotSensor, SoTimerSensor, SoTimerQueueSensor, SbTime }
44