SoTimerSensor(3)

πŸ“¦ version 3.1.3, in fedora 43, fedora 44

πŸ’– 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) const
  • void setInterval (const SbTime &interval)
  • const SbTime & getInterval (void) const
  • virtual 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) const
  • virtual 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) 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 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