Click or drag to resize
SoSystemTimer Class

Common interface to expose system dependent timers.

Inheritance Hierarchy
SystemObject
  OIV.InventorSoNetBase
    OIV.InventorSoDisposable
      OIV.Inventor.SensorsSoSystemTimer
        OIV.Inventor.ViewerComponents.WpfTimer

Namespace: OIV.Inventor.Sensors
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2023.1.3.0 (2023.1.3)
Syntax
public abstract class SoSystemTimer : SoDisposable

The SoSystemTimer type exposes the following members.

Methods
  NameDescription
Public methodDispose
Releases all resources used by SoDisposable.
(Inherited from SoDisposable.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Overrides GetHashCode().
(Inherited from SoNetBase.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsPending

Return true if the timer is running.

Public methodSetDelay

Set the timer's timeout in milliseconds.

Public methodSetRepeat

If set to true, the timer will be triggered periodically at the rate defined by setDelay.

Public methodSetTask

Sets the task executed when the timer is triggered.

Public methodStart

Start the timer.

Public methodStop

Stop the timer.

Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyIsDisposable
ISafeDisposable interface implementation.
(Inherited from SoDisposable.)
Top
Remarks

The timer implementation usually depends on the window toolkit used (Qt, Awt, Swt...). The purpose of this class is to expose a common interface for system dependent timers. When the timer is triggered, it must call the run() method of its OIV.Inventor.Sensors.SoSystemTimerTask (given by the setTask method).

See Also