#define INVENTOR_API
Disable some annoying warnings on MSVC 6.
void SoSensorCB(void *data, SoSensor *sensor)
This typedef defines the calling sequence for all callbacks from sensors.
Base class for all fields.
Base class for all multiple-valued fields.
Abstract base class for Inventor sensors.
void setNextInQueue(SoSensor *next)
Sets/returns the next sensor in whichever queue the sensor is in.
SoSensor(SoSensorCB *f, void *d)
virtual void unschedule()=0
Unschedules sensor to keep it from being triggered.
virtual ~SoSensor()
Virtual destructor so that subclasses are deleted properly.
virtual void schedule()=0
Schedules the sensor for triggering at the appropriate time.
virtual bool isBefore(const SoSensor *s) const =0
This returns TRUE if this sensor should precede sensor s in whichever queue this sensor would be in.
void setFunction(SoSensorCB *f)
Sets the callback function that is called when the sensor is triggered.
void * getData() const
Returns the user-supplied pointer that will be passed to the callback function.
SoSensorCB * func
Callback function.
static void initClass()
Initialize static members, etc.
SoSensorCB * getFunction() const
Returns the callback function that will be called when the sensor is triggered.
SoSensor()
Constructors. The second form takes callback function and data.
void setData(void *d)
Sets the callback data passed to the callback function.
void * funcData
Data to pass to callback.
virtual bool isScheduled() const =0
Returns whether the sensor is scheduled.
SoSensor * getNextInQueue() const
virtual void trigger()
Triggers the sensor, calling its callback function.