1 #ifndef COIN_SOSENSORMANAGER_H
2 #define COIN_SOSENSORMANAGER_H
27 #include <Inventor/SbBasic.h>
44 void setChangedCallback(
void (*sensorQueueChangedCB)(
void *),
void * data);
49 void processDelayQueue(SbBool isidle);
50 void processImmediateQueue(
void);
51 void processTimerQueue(
void);
53 SbBool isDelaySensorPending(
void);
54 SbBool isTimerSensorPending(
SbTime & tm);
56 void setDelaySensorTimeout(
const SbTime & t);
57 const SbTime & getDelaySensorTimeout(
void);
59 int doSelect(
int nfds,
void * readfds,
void * writefds,
60 void * exceptfds,
struct timeval * userTimeOut);
63 void notifyChanged(
void);
65 int mergeTimerQueues(
void);
66 int mergeDelayQueues(
void);
68 class SoSensorManagerP * pimpl;
69 friend class SoSensorManagerP;
72 #endif // !COIN_SOSENSORMANAGER_H
static void post(const char *const source, const char *const format,...)
Definition: SoDebugError.cpp:314
The SoSensor class is the abstract base class for all sensors.
Definition: SoSensor.h:34
SbBool isTimerSensorPending(SbTime &tm)
Definition: SoSensorManager.cpp:713
void setChangedCallback(void(*sensorQueueChangedCB)(void *), void *data)
Definition: SoSensorManager.cpp:789
const SbTime & getDelaySensorTimeout(void)
Definition: SoSensorManager.cpp:774
const SbTime & getTriggerTime(void) const
Definition: SoTimerQueueSensor.cpp:138
static void postWarning(const char *const source, const char *const format,...)
Definition: SoDebugError.cpp:324
The SoDelayQueueSensor class is the abstract base class for priority scheduled sensors.
Definition: SoDelayQueueSensor.h:31
void processTimerQueue(void)
Definition: SoSensorManager.cpp:435
SoSensorManager(void)
Definition: SoSensorManager.cpp:241
void insert(const Type item, const int insertbefore)
Definition: SbList.h:109
int doSelect(int nfds, void *readfds, void *writefds, void *exceptfds, struct timeval *userTimeOut)
Definition: SoSensorManager.cpp:824
static void postInfo(const char *const source, const char *const format,...)
Definition: SoDebugError.cpp:334
virtual void trigger(void)
Definition: SoSensor.cpp:181
void insertDelaySensor(SoDelayQueueSensor *s)
Definition: SoSensorManager.cpp:276
int getLength(void) const
Definition: SbList.h:145
The SoAlarmSensor class is a sensor which will trigger once at a specified time.
Definition: SoAlarmSensor.h:29
The SoTimerSensor class is a sensor which will trigger at given intervals.
Definition: SoTimerSensor.h:29
void removeDelaySensor(SoDelayQueueSensor *s)
Definition: SoSensorManager.cpp:373
void processDelayQueue(SbBool isidle)
Definition: SoSensorManager.cpp:526
~SoSensorManager()
Definition: SoSensorManager.cpp:259
double getValue(void) const
Definition: SbTime.cpp:259
The SoSensorManager class handles the sensor queues.
Definition: SoSensorManager.h:34
void rescheduleTimer(SoTimerSensor *s)
Definition: SoSensorManager.cpp:663
A basic class for managing a mutex.
Definition: SbMutex.h:30
The SoTimerQueueSensor class is the abstract base class for sensors triggering on certain timer event...
Definition: SoTimerQueueSensor.h:30
void removeTimerSensor(SoTimerQueueSensor *s)
Definition: SoSensorManager.cpp:411
uint32_t getPriority(void) const
Definition: SoDelayQueueSensor.cpp:125
The SbTime class instances represents time values.
Definition: SbTime.h:41
void setDelaySensorTimeout(const SbTime &t)
Definition: SoSensorManager.cpp:745
static SbTime getTimeOfDay(void)
Definition: SbTime.cpp:139
static SbTime zero(void)
Definition: SbTime.cpp:164
virtual SbBool isIdleOnly(void) const
Definition: SoDelayQueueSensor.cpp:209
virtual void trigger(void)
Definition: SoDelayQueueSensor.cpp:144
void removeRescheduledTimer(SoTimerQueueSensor *s)
Definition: SoSensorManager.cpp:676
SbBool isDelaySensorPending(void)
Definition: SoSensorManager.cpp:697
void processImmediateQueue(void)
Definition: SoSensorManager.cpp:612
void insertTimerSensor(SoTimerQueueSensor *s)
Definition: SoSensorManager.cpp:330
Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.
Generated on Mon Jul 27 2020 for Coin by Doxygen. 1.8.18