Coin
4.0.3
Coin3D core library
|
The SoOneShotSensor class is a sensor which will trigger once. More...
#include <Inventor/sensors/SoOneShotSensor.h>
Public Member Functions | |
SoOneShotSensor (SoSensorCB *func, void *data) | |
SoOneShotSensor (void) | |
virtual | ~SoOneShotSensor (void) |
Public Member Functions inherited from SoDelayQueueSensor | |
SoDelayQueueSensor (SoSensorCB *func, void *data) | |
SoDelayQueueSensor (void) | |
virtual | ~SoDelayQueueSensor (void) |
uint32_t | getPriority (void) const |
virtual SbBool | isIdleOnly (void) const |
virtual SbBool | isScheduled (void) const |
virtual void | schedule (void) |
void | setPriority (uint32_t pri) |
virtual void | trigger (void) |
virtual void | unschedule (void) |
Public Member Functions inherited from SoSensor | |
SoSensor (SoSensorCB *func, void *data) | |
SoSensor (void) | |
virtual | ~SoSensor (void) |
void * | getData (void) const |
SoSensorCBPtr | getFunction (void) const |
SoSensor * | getNextInQueue (void) const |
void | setData (void *callbackdata) |
void | setFunction (SoSensorCB *callbackfunction) |
void | setNextInQueue (SoSensor *next) |
Additional Inherited Members | |
Static Public Member Functions inherited from SoDelayQueueSensor | |
static uint32_t | getDefaultPriority (void) |
Static Public Member Functions inherited from SoSensor | |
static void | initClass (void) |
Protected Attributes inherited from SoDelayQueueSensor | |
SbBool | scheduled |
Protected Attributes inherited from SoSensor | |
SoSensorCB * | func |
void * | funcData |
The SoOneShotSensor class is a sensor which will trigger once.
Since SoOneShotSensor is a subclass of SoDelayQueueSensor, it will trigger as soon as either the runtime system is idle, or if it is continually busy it will trigger within a fixed amount of time (this is by default 1/12th of a second, see SoSensorManager::setDelaySensorTimeout()).
SoOneShotSensor::SoOneShotSensor | ( | void | ) |
Constructor.
SoOneShotSensor::SoOneShotSensor | ( | SoSensorCB * | func, |
void * | data ) |
Constructor taking as parameters the sensor callback function and the userdata which will be passed to the callback.
|
virtual |
Destructor.