SoOneShotSensor(3)
π SoOneShotSensor(3) β Coin π
okay bestie, gather round, because we're talking about SoOneShotSensor(3) from Coin and honestly? she's a whole vibe. one shot, one trigger, no encore. iconic behavior fr fr. π
β¨ NAME β¨
SoOneShotSensor β the sensor class that triggers once and then minds her own business. π
π¦ 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. that's it, that's the whole personality, and she ate. π
Since SoOneShotSensor is a subclass of SoDelayQueueSensor, it will trigger as soon as either the runtime system is idle, or β if it's continually busy β it will trigger within a fixed amount of time. that fixed amount of time is by default 1/12th of a second, and you can go look at SoSensorManager::setDelaySensorTimeout() if you wanna know more. no cap. π₯
π§ Constructor & Destructor Documentation π§
SoOneShotSensor::SoOneShotSensor (void )
Constructor. she's born. π
SoOneShotSensor::SoOneShotSensor (SoSensorCB * func, void * data)
Constructor taking as parameters the sensor callback function and the userdata which will be passed to the callback. very demure, very mindful, very "here's my function and here's my data". π
See also
setFunction(),setData()
SoOneShotSensor::~SoOneShotSensor (void ) [virtual]
Destructor. she's leaving, and she's taking the one shot with her. π
π Author π
Generated automatically by Doxygen for Coin from the source code. the robots did this one, not me. π
okay bestie that's the whole page, you understood it, you're thriving, you're the main character of Unix rn. π
Version 4.0.10 β dated Thu Jun 25 2026 00:00:00 β and this little SoOneShotSensor(3) era of ours? periodt. β¨ππ¦πΈ
π¦ where this page comes from
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms