SoAlarmSensor(3)
β¨ SoAlarmSensor β¨ (NAME)
okay so bestie, welcome to SoAlarmSensor π β the Coin sensor that fires exactly once at a time you pick. One and done. It's giving "set it and forget it", no cap. π
πΈ SYNOPSIS πΈ
#include <Inventor/sensors/SoAlarmSensor.h>
Inherits SoTimerQueueSensor.
π Public Member Functions
SoAlarmSensor (void)SoAlarmSensor (SoSensorCB *func, void *data)virtual ~SoAlarmSensor (void)void setTime (const SbTime &abstime)void setTimeFromNow (const SbTime &reltime)const SbTime & getTime (void) constvirtual void schedule (void)
π
Public Member Functions inherited from SoTimerQueueSensor
SoTimerQueueSensor (void)SoTimerQueueSensor (SoSensorCB *func, void *data)virtual ~SoTimerQueueSensor (void)const SbTime & getTriggerTime (void) constvirtual void unschedule (void)virtual SbBool isScheduled (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 SoSensor
static void initClass (void)
β Protected Member Functions inherited from SoTimerQueueSensor
void setTriggerTime (const SbTime &time)
β Protected Attributes inherited from SoTimerQueueSensor
SbBool scheduled
β Protected Attributes inherited from SoSensor
SoSensorCB * funcvoid * funcData
π DESCRIPTION π (Detailed Description)
okay so listen: SoAlarmSensor is the sensor that will trigger once at a specified time. just once. that's the whole vibe. β¨
it's literally the convenient way to set up triggers for jobs that should be executed only once when they are scheduled. one-shot queen behavior, periodt. π
π CONSTRUCTOR & DESTRUCTOR DOCUMENTATION π
πΈ SoAlarmSensor::SoAlarmSensor (void )
Default constructor. classic. nothing fancy, just vibes. π
πΈ SoAlarmSensor::SoAlarmSensor (SoSensorCB * func, void * data)
Constructor taking as parameters the sensor callback function and the userdata which will be passed to the callback. iykyk β you hand it your func and your data and it handles the rest. π«Ά
See also setFunction(), setData()
πΈ SoAlarmSensor::~SoAlarmSensor (void ) [virtual]
Destructor. she's done, she's logging off. π
π₯ MEMBER FUNCTION DOCUMENTATION π₯
π void SoAlarmSensor::setTime (const SbTime & abstime)
Set the time at which the sensor will trigger. pick your moment bestie. β°
note: you must manually schedule() the sensor after calling this method. don't forget or she simply will not go off. no cap.
See also setTimeFromNow(), getTime()
π void SoAlarmSensor::setTimeFromNow (const SbTime & reltime)
Set the alarm to be triggered at a specified offset from the current time. like "in 5 seconds" energy instead of "at 3:47pm" energy. π¦
note: again β you must manually schedule() the sensor after calling this method. that part is not optional fr fr.
See also setTime(), getTime()
π const SbTime & SoAlarmSensor::getTime (void ) const
Returns the trigger time for the alarm as an absolute value from 1970-01-01 00:00:00. that's the epoch, bestie, the origin story, the main character timeline. π
See also setTime(), setTimeFromNow()
π void SoAlarmSensor::schedule (void ) [virtual]
Put the sensor in the global timer queue. she's in the lineup now. π₯
See also unschedule(), isScheduled()
Reimplemented from SoTimerQueueSensor.
π AUTHOR π
Generated automatically by Doxygen for Coin from the source code. the robot wrote it, i just added the sparkle. β¨
and that's the whole page, bestie π«Ά β Coin version 4.0.10, dated Thu Jun 25 2026 00:00:00, signing off like the icon she is. SoAlarmSensor(3) ate and left no crumbs. ππ
π¦ 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