SoOneShotSensor(3)

πŸ“¦
version 4.0.10 Β· 4 versions
, in fedora 43, fedora 44

πŸ’– 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) 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. 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