109 dwThreadId=GetCurrentThreadId();
122 dwThreadId=GetCurrentThreadId();
128#ifndef HIDDEN_FROM_DOC
135 inline void setFunction(
SoSensorCB *f,
void *userData);
148 dwThreadId=GetCurrentThreadId();
183 {
return m_schedule; }
199 inline void setScheduleFlag(
SbBool flag)
200 { m_schedule = flag; };
203 DWORD getThreadId() {
return dwThreadId;};
204 void setThreadId(
DWORD id) { dwThreadId=id;};
208 static void initClass();
211 virtual void trigger();
218 void setNextInQueue(
SoSensor *next) { nextInQueue = next; }
219 SoSensor * getNextInQueue()
const {
return nextInQueue; }
#define FALSE
Possible value of SbBool.
void SoSensorCB(void *data, SoSensor *sensor)
This typedef defines the calling sequence for all callbacks from sensors.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Portable spinloc...
void lock()
Request exclusive access for this spinlock.
void unlock()
Release exclusive access.
Base class for all fields.
Base class for all multiple-valued fields.
Abstract base class for Open Inventor sensors.
SoSensor(SoSensorCB *f, void *d)
Constructor that takes standard callback function and data.
virtual void unschedule()=0
virtual void schedule()=0
void setFunction(SoSensorCB *f)
Sets the callback function that is called when the sensor is triggered.
virtual SbBool isScheduled() const
Returns TRUE if this sensor has been scheduled and is waiting in a sensor queue to be triggered.
void * getData() const
Returns the user-supplied pointer that will be passed to the callback function.
void setFunction(SoSensorCB *f, void *userData)
SoSensorCB * getFunction() const
Returns the callback that will be called when the sensor is triggered.
void setData(void *d)
Sets the callback data passed to the callback function.