SOELAPSEDTIME(3iv)
β¨ SoElapsedTime(3IV) β¨
okay bestie, welcome to the <pink>SoElapsedTime</pink> page from the <purple>3IV</purple> manual π this one's a lil stopwatch engine and she is so useful, no cap. buckle up π
πΈ NAME πΈ
SoElapsedTime β basic controllable time source β±οΈβ¨
π¦ INHERITS FROM π¦
SoBase > SoFieldContainer > SoEngine > SoElapsedTime
it's giving "deep family tree" energy, she's got ancestors π
π SYNOPSIS π
#include <Inventor/engines/SoElapsedTime.h>
Inputs from class SoElapsedTime:
SoSFTime timeIn
SoSFFloat speed
SoSFBool on
SoSFBool pause
SoSFTrigger reset
Outputs from class SoElapsedTime:
(SoSFTime) timeOut
Methods from class SoElapsedTime:
SoElapsedTime()
Methods from class SoEngine:
static SoType getClassTypeId()
virtual int getOutputs(SoEngineOutputList &list) const
SoEngineOutput * getOutput(const SbName &outputName) const
SbBool getOutputName(const SoEngineOutput *output, SbName
&outputName) const
SoEngine * copy() const
static SoEngine * getByName(const SbName &name)
static int getByName(const SbName &name, SoEngineList &list)
Methods from class SoFieldContainer:
void setToDefaults()
SbBool hasDefaultValues() const
SbBool fieldsAreEqual(const SoFieldContainer *fc) const
void copyFieldValues(const SoFieldContainer *fc, SbBool
copyConnections = FALSE)
SbBool set(const char *fieldDataString)
void get(SbString &fieldDataString)
virtual int getFields(SoFieldList &resultList) const
virtual SoField * getField(const SbName &fieldName) const
SbBool getFieldName(const SoField *field, SbName &fieldName)
const
SbBool isNotifyEnabled() const
SbBool enableNotify(SbBool flag)
Methods from class SoBase:
void ref()
void unref() const
void unrefNoDelete() const
void touch()
virtual SoType getTypeId() const
SbBool isOfType(SoType type) const
virtual void setName(const SbName &name)
virtual SbName getName() const
π DESCRIPTION π
okay so picture this: this engine is literally a stopwatch π«Ά she outputs the time that's elapsed since she started running. the way that works is the timeIn input, and by default it's connected to the realTime global field β iconic default honestly. but bestie you can also connect it to any other time source you want, she's flexible like that β¨
the output from the engine is the time that has elapsed since it started running, or since the reset input was last triggered. clock it. π°οΈ
you can affect the speed of the output time by setting the speed scale factor β a value greater than 1.0 will speed up the output, and a value less than 1.0 will slow it down. it's giving time warp π
now the fun part: if you pause the engine by setting the pause input to TRUE, she stops updating the timeOut output. when you turn off the pause, she jumps to her current position without losing time β main character behavior fr fr π alternatively, if you want to stop the engine for a while and then restart it from where it left off, use the on input field instead. two different vibes, pick your fighter π
π INPUTS π
SoSFTimetimeInβ running time.SoSFFloatspeedβ scale factor for time.SoSFBoolonβTRUEto start running,FALSEto stop.SoSFBoolpauseβTRUEto freeze,FALSEto continue running.SoSFTriggerresetβ reset the base time.
β OUTPUTS β
(SoSFTime)timeOutβ time elapsed, modified by the speed factor.
π§ METHODS π§
SoElapsedTime()β constructor. the origin story π
π FILE FORMAT/DEFAULTS π
ElapsedTime {
timeIn <current time>
speed 1
on TRUE
pause FALSE
reset
}
π₯ SEE ALSO π₯
SoTimeCounter, SoOneShot, SoEngineOutput
go read those next bestie, they're all part of the same lil squad π«Ά
and that's the whole page!! this was SoElapsedTime(3IV) β the source/version and date slots down at the bottom are literally blank (yes, empty, not me forgetting, that's just what the footer says π), so consider this your cute sign-off instead: stay hydrated, connect your time sources responsibly, and slay π
β¨π
π¦ where this page comes from
- debian bookworm: inventor-doc 2.1.5-10+dfsg-2 Β· LGPL-2.0-or-later
- debian trixie: inventor-doc 2.1.6+ds-2 Β· LGPL-2.0-or-later
- ubuntu jammy: inventor-doc 2.1.5-10-24
- ubuntu noble: inventor-doc 2.1.5-10+dfsg-2.1build2 Β· LGPL-2.0-or-later
- ubuntu questing: inventor-doc 2.1.6+ds-2
- ubuntu resolute: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- ubuntu stonking: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms