|
virtual void | start ()=0 |
| Start the timer.
|
|
virtual void | stop ()=0 |
| Stop the timer.
|
|
virtual void | setDelay (int time)=0 |
| Set the timer's timeout in milliseconds.
|
|
virtual bool | isPending () const =0 |
| Return true if the timer is running.
|
|
virtual void | setRepeat (bool flag)=0 |
| If set to true, the timer will be triggered periodically at the rate defined by setDelay.
|
|
virtual void | setTask (SoSystemTimerTask *task)=0 |
| Sets the task executed when the timer is triggered.
|
|
void | ref () const |
| Adds a reference to an instance.
|
|
void | unref () const |
| Removes a reference from an instance.
|
|
void | unrefNoDelete () const |
| unrefNoDelete() should be called when it is desired to decrement the reference count, but not delete the instance if this brings the reference count to zero.
|
|
int | getRefCount () const |
| Returns current reference count.
|
|
void | lock () const |
| lock this instance.
|
|
void | unlock () const |
| unlock this instance.
|
|
Common interface to expose system dependent timers
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 SoSystemTimerTask (given by the setTask method).
SEE ALSO
SoSensorHandler
Definition at line 50 of file SoSystemTimer.h.