SoOneShotSensor(3)
π SoOneShotSensor(3) π
okay bestie, welcome to the manual page for SoOneShotSensor β it lives in the Library Functions Manual, section 3, and it is literally the "do the thing exactly one time" sensor. one shot. that's the whole vibe. π―
β¨ NAME β¨
SoOneShotSensor β the SoOneShotSensor class is a sensor which will trigger once. periodt. no repeats, no encores, it does its little callback and it's done. π
πΈ SYNOPSIS πΈ
#include <Inventor/sensors/SoOneShotSensor.h>
Inherits SoDelayQueueSensor.
π¦ Public Member Functions
SoOneShotSensor(void)SoOneShotSensor(SoSensorCB *func, void *data)virtual ~SoOneShotSensor(void)
π Public Member Functions inherited from SoDelayQueueSensor
SoDelayQueueSensor(void)SoDelayQueueSensor(SoSensorCB *func, void *data)virtual ~SoDelayQueueSensor(void)void setPriority(uint32_t pri)uint32_t getPriority(void) constvirtual void schedule(void)virtual void unschedule(void)virtual SbBool isScheduled(void) constvirtual SbBool isIdleOnly(void) constvirtual void trigger(void)
π Public Member Functions inherited from SoSensor
SoSensor(void)SoSensor(SoSensorCB *func, void *data)virtual ~SoSensor(void)void setFunction(SoSensorCB *callbackfunction)SoSensorCBPtr getFunction(void) constvoid setData(void *callbackdata)void * getData(void) constvoid setNextInQueue(SoSensor *next)SoSensor * getNextInQueue(void) const
π 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 * funcvoid * funcData
π Detailed Description π
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 run-time system is idle, or β if it is continually busy β it will trigger within a fixed amount of time. that fixed amount is by default 1/12th of a second, and you can peek at SoSensorManager::setDelaySensorTimeout() for the deets. πβ¨
not me being the sensor that refuses to be ignored β even when the system is drowning in work, bestie still shows up within that fixed window. iconic behaviour fr fr. π₯
π Constructor & Destructor Documentation π
π§ SoOneShotSensor::SoOneShotSensor (void )
Constructor. that's it, that's the whole thing. makes you a fresh little one-shot sensor. β¨
π§ SoOneShotSensor::SoOneShotSensor (SoSensorCB * func, void * data)
Constructor taking as parameters the sensor callback function and the userdata which will be passed the callback.
See also
setFunction(),setData()
π§ SoOneShotSensor::~SoOneShotSensor (void ) [virtual]
Destructor. bye bestie, it was one shot and one shot only. ππ«Ά
π Author π
Generated automatically by Doxygen for Coin from the source code. (not a human author, just doxygen doing its little automatic thing, slay i guess π€β¨)
and that's the whole page, bestie!! this was Coin, Version 3.1.3, and the manual page is SoOneShotSensor(3) β thanks for reading, mwah πππ¦
π¦ where this page comes from
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms