public class SoElapsedTime extends SoEngine
timeIn input is connected to the realTime global field. It can, however, be connected to any other time source.
The ouput from the engine is the time that has elapsed since it started running, or since the reset input was last triggered. 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.
If you pause the engine, by setting the pause input to true, it stops updating the timeOut output. When you turn off the pause, it jumps to its current position without losing time. 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.
File format/default:
ElapsedTime {
| timeIn | <current time> |
| speed | 1 |
| on | true |
| pause | false |
| reset |
See also:
Inventor.ConstructorCommand| Modifier and Type | Field and Description |
|---|---|
SoSFBool |
on
true to start running, false to stop.
|
SoSFBool |
pause
true to freeze, false to continue running.
|
SoSFTrigger |
reset
Reset the base time.
|
SoSFFloat |
speed
Scale factor for time.
|
SoSFTime |
timeIn
Running time.
|
SoEngineOutput |
timeOut
(
SoSFTime ) Time elapsed, modified by the speed factor. |
VERBOSE_LEVEL, ZeroHandle| Constructor and Description |
|---|
SoElapsedTime()
Constructor.
|
copy, getByName, getOutput, getOutputNamecopyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaultsdispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable, touchgetAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreadspublic final SoSFTime timeIn
public final SoSFFloat speed
public final SoSFBool on
public final SoSFBool pause
public final SoSFTrigger reset
public final SoEngineOutput timeOut
SoSFTime ) Time elapsed, modified by the speed factor.Generated on July 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com