SoOneShotSensor(3)

πŸ“¦ version 2.5.0, in fedora 43, fedora 44

πŸ’– SoOneShotSensor(3) πŸ’–

okay bestie, welcome to the Library Functions Manual page for SoOneShotSensor, and no bc this one is genuinely iconic β€” it's the sensor that fires once and then dips. one and done. main character behaviour fr fr.


✨ NAME ✨

SoOneShotSensor β€” the SoOneShotSensor class is a sensor which will trigger once. that's it. that's the whole vibe. πŸŽ€


πŸ¦‹ 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) const
virtual void schedule (void)
virtual void unschedule (void)
virtual SbBool isScheduled (void) const
virtual SbBool isIdleOnly (void) const
virtual 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) const
void setData (void *callbackdata)
void * getData (void) const
void 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 * func
void * 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, like a little overworked queen 😭 β€” it will trigger within a fixed amount of time. that fixed amount is by default 1/12th of a second, and you can peep SoSensorManager::setDelaySensorTimeout() if you wanna mess with it.

lowkey the whole point: it's patient when things are chill, and it's still gonna fire even when everything's chaotic. dependable. we stan. πŸ‘‘

🧚 Constructor & Destructor Documentation 🧚

πŸŽ€ SoOneShotSensor::SoOneShotSensor (void )

Constructor. that's it, that's the whole sentence, she's simple and she's stunning πŸ’…

πŸŽ€ 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()

References SoSensor::func.

πŸŽ€ SoOneShotSensor::~SoOneShotSensor (void ) [virtual]

Destructor. bye bestie, thanks for firing once πŸ¦‹


πŸ’œ Author πŸ’œ

Generated automatically by Doxygen for Coin from the source code. not a human, just a robot doing its little robot thing, and honestly? slay. πŸ€–βœ¨


and that's the page!! Coin, Version 2.5.0, SoOneShotSensor(3) β€” written with love, delivered with flair, periodt. πŸ’–πŸŒΈπŸŽ€

πŸ“¦ where this page comes from