1 #ifndef COIN_SOSENSOR_H
2 #define COIN_SOSENSOR_H
27 #include <Inventor/SbBasic.h>
31 typedef void SoSensorCB(
void * data,
SoSensor * sensor);
32 typedef SoSensorCB * SoSensorCBPtr;
37 SoSensor(SoSensorCB * func,
void * data);
40 void setFunction(SoSensorCB * callbackfunction);
41 SoSensorCBPtr getFunction(
void)
const;
42 void setData(
void * callbackdata);
43 void * getData(
void)
const;
45 virtual void schedule(
void) = 0;
46 virtual void unschedule(
void) = 0;
47 virtual SbBool isScheduled(
void)
const = 0;
49 virtual void trigger(
void);
51 virtual SbBool isBefore(
const SoSensor * s)
const = 0;
52 void setNextInQueue(
SoSensor * next);
53 SoSensor * getNextInQueue(
void)
const;
55 static void initClass(
void);
62 #endif // !COIN_SOSENSOR_H
The SoSensor class is the abstract base class for all sensors.Sensors is a mechanism in Coin for sche...
Definition: SoSensor.h:34
SoSensorCB * func
Definition: SoSensor.h:58
void * funcData
Definition: SoSensor.h:59