![]() |
MAK RTIspy API Documentation for HLA 1.3
|
The analogClock class defines a QT GUI display of the current time / subscription information in the simpleDDM Example. More...
Inheritance diagram for analogClock:
Collaboration diagram for analogClock:Public Slots | |
| void | toggle () |
| void | setUTC () |
Public Member Functions | |
| analogClock (bool isPublisher, bool isClockWise, int zone, bool displayRegions, QWidget *parent=0, const char *name=0) | |
| ~analogClock () | |
| void | setAutoMask (bool b) |
| void | setRangeInHours (float minimum, float maximum) |
| void | setRangeInSeconds (int minimum, int maximum) |
| void | setTime (int seconds) |
| void | setTime (float hour=12.0f, float minute=0, float second=0) |
| bool | getClockWise () |
| int | zone () |
| void | setZone (int newZone) |
Public Attributes | |
| bool | initialized |
Static Public Attributes | |
| static const int | degreesInACircle |
| static const int | numHoursOnOurClock |
| static const int | numTicksPerDegree |
Protected Member Functions | |
| void | paintEvent (QPaintEvent *event) |
| void | closeEvent (QCloseEvent *) |
| void | drawClock (QPainter *paint) |
Private Slots | |
| void | initialize () |
Private Attributes | |
| float | myMinHour |
| float | myMaxHour |
| int | myMinSeconds |
| int | myMinMinutes |
| int | myMaxSeconds |
| int | myMaxMinutes |
| float | myMinutes |
| float | mySeconds |
| float | myHours |
| bool | myPublisher |
| bool | clockWise |
| bool | myDrawArc |
| int | myUTCzone |
| QPoint | clickPos |
| QPushButton * | clockwiseButton |
| QPushButton * | setUTCButton |
| QLineEdit * | utcLineEdit |
| QTimer * | internalTimer |
| QVBoxLayout * | vLayout |
| QHBoxLayout * | hLayout |
| QSpacerItem * | hSpacer |
| QSpacerItem * | vSpacer |
Static Private Attributes | |
| static const unsigned int | NUMSECONDSPERMINUTE |
| static const unsigned int | NUMMINUTESPERHOUR |
| static const unsigned int | NUMSECONDSPERHOUR |
The analogClock class defines a QT GUI display of the current time / subscription information in the simpleDDM Example.
| analogClock::analogClock | ( | bool | isPublisher, |
| bool | isClockWise, | ||
| int | zone, | ||
| bool | displayRegions, | ||
| QWidget * | parent = 0, |
||
| const char * | name = 0 |
||
| ) |
| void analogClock::closeEvent | ( | QCloseEvent * | ) | [protected] |
| void analogClock::drawClock | ( | QPainter * | paint | ) | [protected] |
| bool analogClock::getClockWise | ( | ) | [inline] |
References clockWise.
| void analogClock::initialize | ( | ) | [private, slot] |
| void analogClock::paintEvent | ( | QPaintEvent * | event | ) | [protected] |
| void analogClock::setAutoMask | ( | bool | b | ) |
| void analogClock::setRangeInHours | ( | float | minimum, |
| float | maximum | ||
| ) | [inline] |
| void analogClock::setRangeInSeconds | ( | int | minimum, |
| int | maximum | ||
| ) | [inline] |
References myMaxHour, myMinHour, and NUMSECONDSPERHOUR.
| void analogClock::setTime | ( | int | seconds | ) | [inline] |
References NUMSECONDSPERHOUR, NUMSECONDSPERMINUTE, and seconds.
| void analogClock::setTime | ( | float | hour = 12.0f, |
| float | minute = 0, |
||
| float | second = 0 |
||
| ) | [inline] |
| void analogClock::setUTC | ( | ) | [slot] |
| void analogClock::setZone | ( | int | newZone | ) | [inline] |
References myUTCzone, and utcLineEdit.
| void analogClock::toggle | ( | ) | [slot] |
| int analogClock::zone | ( | ) | [inline] |
References myUTCzone.
QPoint analogClock::clickPos [private] |
bool analogClock::clockWise [private] |
Referenced by getClockWise().
QPushButton* analogClock::clockwiseButton [private] |
const int analogClock::degreesInACircle [static] |
QHBoxLayout* analogClock::hLayout [private] |
QSpacerItem* analogClock::hSpacer [private] |
QTimer* analogClock::internalTimer [private] |
bool analogClock::myDrawArc [private] |
float analogClock::myHours [private] |
Referenced by setTime().
float analogClock::myMaxHour [private] |
Referenced by setRangeInHours(), and setRangeInSeconds().
int analogClock::myMaxMinutes [private] |
int analogClock::myMaxSeconds [private] |
float analogClock::myMinHour [private] |
Referenced by setRangeInHours(), and setRangeInSeconds().
int analogClock::myMinMinutes [private] |
int analogClock::myMinSeconds [private] |
float analogClock::myMinutes [private] |
Referenced by setTime().
bool analogClock::myPublisher [private] |
float analogClock::mySeconds [private] |
Referenced by setTime().
int analogClock::myUTCzone [private] |
const int analogClock::numHoursOnOurClock [static] |
const unsigned int analogClock::NUMMINUTESPERHOUR [static, private] |
const unsigned int analogClock::NUMSECONDSPERHOUR [static, private] |
Referenced by setRangeInSeconds(), and setTime().
const unsigned int analogClock::NUMSECONDSPERMINUTE [static, private] |
Referenced by setTime().
const int analogClock::numTicksPerDegree [static] |
QPushButton* analogClock::setUTCButton [private] |
QLineEdit* analogClock::utcLineEdit [private] |
Referenced by setZone().
QVBoxLayout* analogClock::vLayout [private] |
QSpacerItem* analogClock::vSpacer [private] |