SoAlarmSensor(3)
β¨ SoAlarmSensor β¨
okay bestie, gather round β this is the manual page for SoAlarmSensor(3) from the Library Functions Manual, and yes it is giving main character energy for a class that just... waits. π
π NAME π
SoAlarmSensor β the SoAlarmSensor class is a sensor which will trigger once at a specified time. That's it. One shot. No repeats. Periodt. π
π¦ SYNOPSIS π¦
#include <Inventor/sensors/SoAlarmSensor.h>
Inherits SoTimerQueueSensor. So it's literally part of the family tree, bestie. π³
π 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. (Yes, we're saying it again, because it's the whole personality.)
SoAlarmSensor provides a convenient way of setting up triggers for jobs which should be executed only once when they are scheduled. It's the "set it and forget it" girlie of the sensor world. Not me setting an alarm and then never scheduling it π
π₯ Constructor & Destructor Documentation π₯
π SoAlarmSensor::SoAlarmSensor (void )
Default constructor. The blank-slate era. β¨
π SoAlarmSensor::SoAlarmSensor (SoSensorCB * func, void * data)
Constructor taking as parameters the sensor callback function and the userdata which will be passed the callback. So you hand it a func and some data and it's like, "got it, love that for us." π
See also
setFunction(),setData()
References SoSensor::func.
π SoAlarmSensor::~SoAlarmSensor (void ) [virtual]
Destructor. Say bye bestie. π¦
π Member Function Documentation π
πΈ void SoAlarmSensor::setTime (const SbTime & abstime)
Set the time at which the sensor will trigger. You're literally telling it when, in absolute terms.
Note that you must manually schedule() the sensor after calling this method. It is not gonna do that part for you, bestie β no cap.
See also
setTimeFromNow(),getTime()
πΈ void SoAlarmSensor::setTimeFromNow (const SbTime & reltime)
Set the alarm to be at a specified offset from the current time. Like "wake me up in 20 minutes" energy instead of "wake me up at 7:45". β°
Note that you must manually schedule() the sensor after calling this method. Same rule, different day.
See also
setTime(),getTime()
References SbTime::setToTimeOfDay().
πΈ 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, the epoch. It's giving very Unix of it. π§
See also
setTime(),setTimeFromNow()
πΈ void SoAlarmSensor::schedule (void ) [virtual]
Put the sensor in the global timer queue. This is the step everyone forgets and then wonders why nothing triggers π (it's me, I forgot).
See also
unschedule(),isScheduled()
Reimplemented from SoTimerQueueSensor.
References SoTimerQueueSensor::schedule(), and SoTimerQueueSensor::setTriggerTime().
π Author π
Generated automatically by Doxygen for Coin from the source code. The robots wrote it, I just made it cute. π€β¨
okay that's the whole page, bestie β this was Coin, Version 2.5.0, and the page is SoAlarmSensor(3). Go schedule your sensor. For real this time. π«Άππ
π¦ where this page comes from
- fedora 43: Coin2-devel 2.5.0-52.fc43 Β· GPL-2.0-only
- fedora 43: Coin2-devel 2.5.0-52.fc43 Β· GPL-2.0-only
- fedora 44: Coin2-devel 2.5.0-54.fc44 Β· GPL-2.0-only
- fedora 44: Coin2-devel 2.5.0-54.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