Private Timer implementation using Qt.
More...
|
|
| TimerQt () |
| | Constructs a TimerQt from given io_service.
|
| |
|
void | start () |
| | Starts or restarts the timer.
|
| |
|
void | stop () |
| | Stops the timer and cancel all pending operations.
|
| |
|
void | setDuration (TimeDurationType duration) |
| | Sets time duration.
|
| |
|
bool | isOneShot () const |
| | Returns if the timer mode is 'one shot'.
|
| |
|
void | setOneShot (bool oneShot) |
| | Sets timer mode.
|
| |
|
bool | isRunning () const |
| | Returns true if the timer is currently running.
|
| |
|
template<typename F > |
| void | setFunction (F f) |
| | Sets the function to be triggered when time duration expires.
|
| |
|
virtual bool | isA (const std::string &type) const |
| |
|
virtual const std::string & | getLeafClassname () const |
| | return object's classname without its namespace, i.e. BaseObject
|
| |
|
virtual const std::string & | getClassname () const |
| | return full object's classname with its namespace, i.e. fwCore::BaseObject
|
| |
|
|
QPointer< QTimer > | m_timerQt |
| |
|
QPointer< ::fwGuiQt::util::FuncSlot > | m_qtFunc |
| |
|
FunctionType | m_function |
| | Function object to execute each time the timer expires.
|
| |
|
mutable::fwCore::mt::Mutex | m_mutex |
| |
|
|
typedef std::shared_ptr< Timer > | sptr |
| |
|
typedef std::function< void() > | FunctionType |
| |
|
typedef std::chrono::duration< double > | TimeDurationType |
| |
|
static bool | isTypeOf (const std::string &type) |
| |
|
static const std::string & | leafClassname () |
| | return object's classname without its namespace, i.e. BaseObject
|
| |
|
static const std::string & | classname () |
| | return object's classname without its namespace, i.e. BaseObject
|
| |
Private Timer implementation using Qt.
Definition at line 112 of file WorkerQt.cpp.
The documentation for this class was generated from the following file: