rtVTK  0.6.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
Public Slots | Public Member Functions | Public Attributes | Static Public Attributes
rtVTK::Timer Class Reference

Aggregates timer information. More...

List of all members.

Public Slots

void slotToggle ()

Public Member Functions

 Timer ()
 Timer (string c, QShortcut *s, bool a=false)
 ~Timer ()

Public Attributes

string connection
QShortcut * shortcut
const uint id
bool enabled

Static Public Attributes

static uint idCounter = 0

Detailed Description

Aggregates timer information.

Timer contains information about a timer created by the user. This includes the timer itself, the name of the slot to which the timer is connected, the timer's toggle shortcut, and its active flag.


Constructor & Destructor Documentation

rtVTK::Timer::Timer ( ) [inline]
rtVTK::Timer::Timer ( string  c,
QShortcut *  s,
bool  a = false 
) [inline]
rtVTK::Timer::~Timer ( ) [inline]

References shortcut.


Member Function Documentation

void rtVTK::Timer::slotToggle ( ) [inline, slot]

The Shortcut is used to toggle the timer on and off.

References enabled.


Member Data Documentation

This stores the value of the Activate and Activate_Edit check box on the TimerDialog. TimerDialog should check all timers for this value and start/resume the timer during TimerDialog::closeEvent(QCloseEvent* e).

Referenced by rtVTK::TimerDialog::slotAddTimer(), and slotToggle().

const uint rtVTK::Timer::id
uint rtVTK::Timer::idCounter = 0 [static]

Every Timer object can only store one shortcut.

Referenced by ~Timer().


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends