SoElapsedTime(3)
β¨ SoElapsedTime β¨
okay bestie, welcome to the SoElapsedTime(3) page from the Coin manual π this is part 1 of 2 so don't go anywhere, we're only getting started π«Ά
πΈ NAME πΈ
SoElapsedTime β the SoElapsedTime class is a controllable time source engine. no cap, that's literally its whole job π
π¦ SYNOPSIS π¦
#include <Inventor/engines/SoElapsedTime.h>
Inherits SoEngine.
π Public Member Functions π
virtual SoType getTypeId (void) constvirtual const SoFieldData * getFieldData (void) constvirtual const SoEngineOutputData * getOutputData (void) constSoElapsedTime (void)
π Public Member Functions inherited from SoEngine π
void evaluateWrapper (void)virtual int getOutputs (SoEngineOutputList &l) constSoEngineOutput * getOutput (const SbName &outputname) constSbBool getOutputName (const SoEngineOutput *output, SbName &outputname) constSbBool isNotifying (void) constvirtual void notify (SoNotList *nl)SoEngine * copy (void) constvirtual SoFieldContainer * copyThroughConnection (void) constSbBool shouldCopy (void) const
π Public Member Functions inherited from SoFieldContainer π
void setToDefaults (void)SbBool hasDefaultValues (void) constSbBool fieldsAreEqual (const SoFieldContainer *container) constvoid copyFieldValues (const SoFieldContainer *container, SbBool copyconnections=FALSE)SbBool set (const char *const fielddata)void get (SbString &fielddata)virtual int getFields (SoFieldList &l) constvirtual int getAllFields (SoFieldList &l) constvirtual SoField * getField (const SbName &name) constvirtual SoField * getEventIn (const SbName &name) constvirtual SoField * getEventOut (const SbName &name) constSbBool getFieldName (const SoField *const field, SbName &name) constSbBool enableNotify (const SbBool flag)SbBool isNotifyEnabled (void) constSbBool set (const char *fielddata, SoInput *input)void get (SbString &fielddata, SoOutput *out)virtual SbBool validateNewFieldValue (SoField *field, void *newval)virtual void addWriteReference (SoOutput *out, SbBool isfromfield=FALSE)SbBool getIsBuiltIn (void) constvirtual void copyContents (const SoFieldContainer *from, SbBool copyconnections)virtual void getFieldsMemorySize (size_t &managed, size_t &unmanaged) constvoid setUserData (void *userdata) constvoid * getUserData (void) const
π« Public Member Functions inherited from SoBase π«
void ref (void) constvoid unref (void) constvoid unrefNoDelete (void) constint32_t getRefCount (void) constvoid touch (void)SbBool isOfType (SoType type) constβ ReturnsTRUEif the type of this object is either of the same type or inherited from type. slay π―virtual SbName getName (void) constvirtual void setName (const SbName &newname)virtual void startNotify (void)void addAuditor (void *const auditor, const SoNotRec::Type type)void removeAuditor (void *const auditor, const SoNotRec::Type type)const SoAuditorList & getAuditors (void) constSbBool shouldWrite (void)void assertAlive (void) const
β Static Public Member Functions β
static SoType getClassTypeId (void)static void * createInstance (void)static void initClass (void)β Sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system. π
πΈ Static Public Member Functions inherited from SoEngine πΈ
static void initClass (void)β Sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system.static void initClasses (void)static SoType getClassTypeId (void)β This static method returns the SoType object associated with objects of this class.static SoEngine * getByName (const SbName &name)static int getByName (const SbName &name, SoEngineList &el)
π¦ Static Public Member Functions inherited from SoFieldContainer π¦
static void initClass (void)β Sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system.static SoType getClassTypeId (void)β This static method returns the SoType object associated with objects of this class.static void cleanupClass (void)static void initCopyDict (void)static void addCopy (const SoFieldContainer *orig, const SoFieldContainer *copy)static SoFieldContainer * checkCopy (const SoFieldContainer *orig)static SoFieldContainer * findCopy (const SoFieldContainer *orig, const SbBool copyconnections)static void copyDone (void)
π Static Public Member Functions inherited from SoBase π
static void initClass (void)β Sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system.static SoType getClassTypeId (void)β This static method returns the SoType object associated with objects of this class.static void addName (SoBase *const base, const char *const name)static void removeName (SoBase *const base, const char *const name)static void incrementCurrentWriteCounter (void)static void decrementCurrentWriteCounter (void)static SoBase * getNamedBase (const SbName &name, SoType type)static int getNamedBases (const SbName &name, SoBaseList &baselist, SoType type)static SbBool read (SoInput *input, SoBase *&base, SoType expectedtype)static void setInstancePrefix (const SbString &c)static void setTraceRefs (SbBool trace)static SbBool getTraceRefs (void)static SbBool connectRoute (SoInput *input, const SbName &fromnodename, const SbName &fromfieldname, const SbName &tonodename, const SbName &tofieldname)static SbBool readRoute (SoInput *input)
π Public Attributes π
SoSFTime timeInSoSFFloat speedSoSFBool onSoSFBool pauseSoSFTrigger resetSoEngineOutput timeOut
π Protected Member Functions π
virtual ~SoElapsedTime (void)virtual void writeInstance (SoOutput *out)
π Protected Member Functions inherited from SoEngine π
SoEngine (void)virtual ~SoEngine (void)virtual SbBool readInstance (SoInput *in, unsigned short flags)void writeOutputTypes (SoOutput *out)
π Protected Member Functions inherited from SoFieldContainer π
SoFieldContainer (void)virtual ~SoFieldContainer ()
π Protected Member Functions inherited from SoBase π
SoBase (void)virtual ~SoBase ()SbBool hasMultipleWriteRefs (void) constSbBool writeHeader (SoOutput *out, SbBool isgroup, SbBool isengine) constvoid writeFooter (SoOutput *out) constvirtual const char * getFileFormatName (void) constvirtual SoNotRec createNotRec (void)
π§ Static Protected Member Functions π§
static const SoFieldData ** getInputDataPtr (void)static const SoEngineOutputData ** getOutputDataPtr (void)
β¨ Static Protected Member Functions inherited from SoEngine β¨
static const SoFieldData ** getInputDataPtr (void)static const SoEngineOutputData ** getOutputDataPtr (void)
β Static Protected Member Functions inherited from SoBase β
static uint32_t getCurrentWriteCounter (void)static void staticDataLock (void)static void staticDataUnlock (void)
π«Ά Additional Inherited Members π«Ά
- Protected Types inherited from SoBase:
enum BaseFlags { IS_ENGINE = 0x01, IS_GROUP = 0x02 }
- Protected Attributes inherited from SoFieldContainer:
SbBool isBuiltIn
π Detailed Description π
The SoElapsedTime class is a controllable time source engine.
The additional functionality provided by this engine versus just connecting to the realTime global field is the ability to control the speed of the time source plus logic to reset, stop and restart it. likeβ¦ it's giving main character energy for timers, fr fr β±οΈβ¨
Simple usage example, combined with SoComposeRotation:
#Inventor V2.1 ascii
Separator {
Transform {
rotation =
ComposeRotation { axis 0 1 0 angle =
ElapsedTime { }.timeOut
}.rotation
}
Cube { }
}
πΈ See also πΈ
- SoTimeCounter
π Constructor & Destructor Documentation π
π SoElapsedTime::SoElapsedTime (void ) π
Default constructor. the classic "hi bestie, I exist now" move π
π¦ SoElapsedTime::~SoElapsedTime (void ) [protected], [virtual] π¦
Destructor. say bye bestie π
π₯ Member Function Documentation π₯
β SoType SoElapsedTime::getClassTypeId (void ) [static] β
This static method returns the SoType object associated with objects of this class.
π SoType SoElapsedTime::getTypeId (void ) const [virtual] π
Returns the type identification of an object derived from a class inheriting SoBase. This is used for runtime type checking and "downward" casting.
Implements SoBase.
π const SoFieldData ** SoElapsedTime::getInputDataPtr (void ) [static], [protected] π
Returns the SoFieldData class which holds information about inputs in this engine.
π const SoEngineOutputData ** SoElapsedTime::getOutputDataPtr (void ) [static], [protected] π
Returns the SoEngineOutputData class which holds information about the outputs in this engine.
π const SoFieldData * SoElapsedTime::getFieldData (void ) const [virtual] π
Returns the SoFieldData class which holds information about inputs in this engine.
Reimplemented from SoFieldContainer.
π§ const SoEngineOutputData * SoElapsedTime::getOutputData (void ) const [virtual] π§
Returns the SoEngineOutputData class which holds information about the outputs in this engine.
Implements SoEngine.
β¨ void * SoElapsedTime::createInstance (void ) [static] β¨
Creates a new instance of the class type corresponding to the SoType object.
π« void SoElapsedTime::writeInstance (SoOutput * out) [protected], [virtual] π«
Writes all the fields contained in this instance to the output stream within out.
This method is solely called from the write methods of fields.
Either from SoField if the write is done because of a field-to-field connection, or from one of the fields which may actually write SoFieldContainer instances, i.e. SoSFNode, SoMFNode, SoSFEngine, SoMFEngine, SoSFPath and SoMFPath.
This method, in addition to the ordinary write() method of SoNode, needs to be present since the fields don't have a write action instance in their writeValue() method, and writeInstance() will create a new SoWriteAction and call continueToApply() on it.
Reimplemented from SoEngine.
π Member Data Documentation π
π SoSFTime SoElapsedTime::timeIn π
Input time value. Default connected to the global realTime field. iconic β°
πΈ SoSFFloat SoElapsedTime::speed πΈ
Decides how fast the timer should run, measured versus "real time" from the timeIn field. Default value is 1.0.
A negative value makes the time go backward. yes bestie, time travel π
π SoSFBool SoElapsedTime::on π
Shuts timer on and off. Will restart at the same position.
π¦ SoSFBool SoElapsedTime::pause π¦
Shuts timer on and off. Will restart at the position it would have been if not paused (i.e. doesn't "lose time"). she keeps receipts π
β SoSFTrigger SoElapsedTime::reset β
Restart timer at 0.
β¨ SoEngineOutput SoElapsedTime::timeOut β¨
(SoSFTime) Output time value. Starts at 0.
π AUTHOR π
okay so bestie, real talk β nobody wrote this page with their own two hands π . It was generated automatically by Doxygen straight from the Coin source code. Like, the docs literally wrote themselves. main character energy fr fr. β¨
so no dramatic author bio, no "about the author" section, no little signature at the bottom. just Doxygen doing its lil automated thing, the source code doing the talking, and us vibing. π¦
and that's a wrap on SoElapsedTime(3), bestie!! π you made it all the way to the end, which is honestly iconic of you. π
quick receipt for the record: this page is from Coin version 4.0.10, dated Thu Jun 25 2026 00:00:00. screenshot it, cite it, whatever β iykyk. πΈ
now go forth and use it responsibly. mwah. ππΈπ«Ά
π¦ 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