Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
QtTimer Class Reference

#include <Inventor/ViewerComponents/Qt/QtTimer.h>

+ Inheritance diagram for QtTimer:

Signals

void startRequired ()
 
void stopRequired ()
 

Public Member Functions

 QtTimer ()
 
virtual void start ()
 Start the timer.
 
virtual void stop ()
 Stop the timer.
 
virtual void setDelay (int time)
 Set the timer's timeout in milliseconds.
 
virtual bool isPending () const
 Return true if the timer is running.
 
virtual void setRepeat (bool flag)
 If set to true, the timer will be triggered periodically at the rate defined by setDelay.
 
virtual void setTask (SoSystemTimerTask *task)
 Sets the task executed when the timer is triggered.
 
- Public Member Functions inherited from SoRefCounter
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.
 

Detailed Description

Definition at line 20 of file QtTimer.h.

Constructor & Destructor Documentation

◆ QtTimer()

QtTimer::QtTimer ( )

Member Function Documentation

◆ isPending()

virtual bool QtTimer::isPending ( ) const
virtual

Return true if the timer is running.

Implements SoSystemTimer.

◆ setDelay()

virtual void QtTimer::setDelay ( int  time)
virtual

Set the timer's timeout in milliseconds.

Implements SoSystemTimer.

◆ setRepeat()

virtual void QtTimer::setRepeat ( bool  flag)
virtual

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

Implements SoSystemTimer.

◆ setTask()

virtual void QtTimer::setTask ( SoSystemTimerTask task)
virtual

Sets the task executed when the timer is triggered.

When the timer is is triggered, it calls the run() method of task.

Implements SoSystemTimer.

◆ start()

virtual void QtTimer::start ( )
virtual

Start the timer.

If it is already started, stop it and restart

Implements SoSystemTimer.

◆ startRequired

void QtTimer::startRequired ( )
signal

◆ stop()

virtual void QtTimer::stop ( )
virtual

Stop the timer.

Implements SoSystemTimer.

◆ stopRequired

void QtTimer::stopRequired ( )
signal

The documentation for this class was generated from the following file: