00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
#ifndef COIN_SOTIMERQUEUESENSOR_H
00021
#define COIN_SOTIMERQUEUESENSOR_H
00022
00023
#include <Inventor/sensors/SoSensor.h>
00024
#include <Inventor/SbTime.h>
00025
00026
00027 class COIN_DLL_API SoTimerQueueSensor :
public SoSensor {
00028
typedef SoSensor inherited;
00029
00030
public:
00031 SoTimerQueueSensor(
void);
00032 SoTimerQueueSensor(SoSensorCB * func,
void * data);
00033
virtual ~SoTimerQueueSensor(
void);
00034
00035
const SbTime & getTriggerTime(
void)
const;
00036
virtual void schedule(
void);
00037
virtual void unschedule(
void);
00038
virtual SbBool
isScheduled(
void)
const;
00039
virtual void trigger(
void);
00040
00041
protected:
00042
void setTriggerTime(
const SbTime & time);
00043 SbBool scheduled;
00044
00045
private:
00046
virtual SbBool isBefore(
const SoSensor * s)
const;
00047
SbTime triggertime;
00048 };
00049
00050
#endif // !COIN_SOTIMERQUEUESENSOR_H