SoAlarmSensor(3)
π SoAlarmSensor(3) π
okay bestie, welcome to the Library Functions Manual page for SoAlarmSensor β yes, that's the manual name, we're in the Library Functions Manual section 3, and this whole thing is about one lil' class from Coin. sit down, grab a boba, let's go π§β¨
β¨ NAME β¨
SoAlarmSensor β the sensor class that triggers once, at a time you specify. one and done. it's giving one-hit wonder and we love that for it π
πΈ 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) const
virtual void schedule (void)
π Public Member Functions inherited from SoTimerQueueSensor
SoTimerQueueSensor (void)
SoTimerQueueSensor (SoSensorCB *func, void *data)
virtual ~SoTimerQueueSensor (void)
const SbTime & getTriggerTime (void) const
virtual void unschedule (void)
virtual SbBool isScheduled (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 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 * func
void * funcData
π Detailed Description π
The SoAlarmSensor class is a sensor which will trigger once at a specified time. no cap. π
SoAlarmSensor provides a convenient way of setting up triggers for jobs which should be executed only once when they are scheduled. so if your thing is a "do it one time and never speak of it again" kinda job, this is literally the sensor for you, bestie π«Ά
π§ Constructor & Destructor Documentation π§
π SoAlarmSensor::SoAlarmSensor (void )
Default constructor. the blank-slate era, the pre-glow-up moment β¨
π SoAlarmSensor::SoAlarmSensor (SoSensorCB * func, void * data)
Constructor taking as parameters the sensor callback function and the userdata which will be passed the callback. you hand it a function and a lil' bag of data, and it holds onto both for you π
See also: setFunction(), setData()
π SoAlarmSensor::~SoAlarmSensor (void ) [virtual]
Destructor. say bye bye π
π₯ Member Function Documentation π₯
π void SoAlarmSensor::setTime (const SbTime & abstime)
Set the time at which the sensor will trigger. absolute time, iconic, straightforward π
β οΈ Note that you must manually schedule() the sensor after calling this method. setting the time does not schedule it for you, bestie, that's on you π
See also: setTimeFromNow(), getTime()
π void SoAlarmSensor::setTimeFromNow (const SbTime & reltime)
Set the alarm to be at a specified offset from the current time. so like, "in 5 seconds", "in 3 minutes", whatever β relative vibes only π°οΈ
β οΈ Note that you must manuallyschedule()the sensor after calling this method. again. yes. still.schedule()is your problem π€
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. yes we're doing Unix epoch hours, it's giving time traveler energy β³
See also: setTime(), setTimeFromNow()
π void SoAlarmSensor::schedule (void ) [virtual]
Put the sensor in the global timer queue. now it's officially on the clock, main character energy π
See also: unschedule(), isScheduled()
Reimplemented from SoTimerQueueSensor.
π Author π
Generated automatically by Doxygen for Coin from the source code. the robots wrote this one, not me, I just added the sparkle β¨π€
aaaand that's the whole page, bestie!! π this manual page for Coin, Version 3.1.3, on the SoAlarmSensor(3) page β slay, you read the entire thing, obsessed with you fr fr ππ¦πΈ
π¦ 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