SoTimerSensor(3)
π SoTimerSensor π
okay bestie, so this is a manual page from the Library Functions Manual, and it's literally all about the SoTimerSensor class β a sensor that goes off at intervals you set. think of it as your little alarm-clock gremlin. β°β¨
πΈ NAME πΈ
SoTimerSensor β the sensor class that triggers at given intervals. no cap, that's the whole vibe.
β¨ SYNOPSIS β¨
#include <Inventor/sensors/SoTimerSensor.h>
Inherits SoTimerQueueSensor. it's giving family tree, and we love an inheritance moment. π³
π Public Member Functions π
SoTimerSensor (void)SoTimerSensor (SoSensorCB *func, void *data)virtual ~SoTimerSensor (void)void setBaseTime (const SbTime &base)const SbTime & getBaseTime (void) constvoid setInterval (const SbTime &interval)const SbTime & getInterval (void) constvirtual void schedule (void)virtual void unschedule (void)void reschedule (const SbTime &schedtime)
π Public Member Functions inherited from SoTimerQueueSensor
SoTimerQueueSensor (void)SoTimerQueueSensor (SoSensorCB *func, void *data)virtual ~SoTimerQueueSensor (void)const SbTime & getTriggerTime (void) constvirtual SbBool isScheduled (void) const
π 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
π¦ Detailed Description π¦
The SoTimerSensor class is a sensor which will trigger at given intervals.
Use sensors of this class when you want a job repeated at a certain interval, without explicitly needing to reschedule the sensor β i.e. SoTimerSensor automatically re-schedules itself after it has been triggered. it's the self-sufficient queen of sensors, it handles its own business, periodt. π
SoTimerSensor instances is commonly used to trigger animation updates at a constant framerate. yes, the framerate bestie. the motion bestie. πΊ
π§ Constructor & Destructor Documentation π§
SoTimerSensor::SoTimerSensor (void )
Default constructor. Sets up an interval of 1/30th of a second. tiny little baby interval, adorable. πΌ
SoTimerSensor::SoTimerSensor (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()
SoTimerSensor::~SoTimerSensor (void ) [virtual]
Destructor. bye bestie, you did amazing, we'll never forget you ππ
β Member Function Documentation β
void SoTimerSensor::setBaseTime (const SbTime & baseref)
Set the base trigger time.
If you use this method, the trigger times will be on intervals from the given value.
Without an explicitly set base time, the next trigger invocation after a trigger has happened will be on the current time plus the interval time. and note that this will of course cause the timer to drift. π« yeah. it drifts. that's just how it is.
See also
getBaseTime()
const SbTime & SoTimerSensor::getBaseTime (void ) const
Returns the base trigger time. the origin story of your triggers π«
See also
setBaseTime()
void SoTimerSensor::setInterval (const SbTime & intervalref)
Sets the time interval between each time the sensor triggers.
See also
getInterval()
const SbTime & SoTimerSensor::getInterval (void ) const
Returns the timer trigger interval. how often the lil alarm goes off π
See also
setInterval()
void SoTimerSensor::schedule (void ) [virtual]
Overrides the virtual schedule() method to be able to set up the base time, if this was not done by the user.
If no base time was set, base time will then equal the current time.
See also
unschedule(),isScheduled()
Reimplemented from SoTimerQueueSensor.
void SoTimerSensor::unschedule (void ) [virtual]
Overrides the virtual unschedule() method to handle unschedule() calls during triggering.
Reimplemented from SoTimerQueueSensor.
void SoTimerSensor::reschedule (const SbTime & schedtime)
Set new trigger time based on the given schedule time, and schedules the sensor for triggering.
π Author π
Generated automatically by Doxygen for Coin from the source code. (not me writing it by hand, the robot did it. iconic of the robot honestly π€β¨)
π and that's the whole page, bestie β every flag, every signature, every see-also, untouched and slaying in its original form.
so anyway, this was page SoTimerSensor(3) from Coin, Version 3.1.3 β mwah, hope this helped, go schedule something cute π«ΆππΈ
π¦ 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