Open Inventor Release 2024.2.0
 
Loading...
Searching...
No Matches
SoSystemTimer.h
1/*=======================================================================
2** VSG_COPYRIGHT_TAG
3**=======================================================================*/
4
5#ifndef SOTIMERINTERFACE_H
6#define SOTIMERINTERFACE_H
7
8#include <Inventor/SbBase.h>
9#include <Inventor/misc/SoRef.h>
10
25{
26public:
31 virtual void run() = 0;
32};
33
51{
52public:
54 virtual void start() = 0;
55
57 virtual void stop() = 0;
58
60 virtual void setDelay(int time) = 0;
61
63 virtual bool isPending() const = 0;
64
69 virtual void setRepeat(bool flag) = 0;
70
75 virtual void setTask(SoSystemTimerTask* task) = 0;
76};
77
78#endif
Base class for ref-counted objects.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Common interface...
virtual void setRepeat(bool flag)=0
If set to true, the timer will be triggered periodically at the rate defined by setDelay.
virtual bool isPending() const =0
Return true if the timer is running.
virtual void setDelay(int time)=0
Set the timer's timeout in milliseconds.
virtual void setTask(SoSystemTimerTask *task)=0
Sets the task executed when the timer is triggered.
virtual void stop()=0
Stop the timer.
virtual void start()=0
Start the timer.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Interface used b...
virtual void run()=0
This method is executed by SoSystemTimer when it is triggered.