MAK RTIspy API Documentation for HLA 1516
Public Slots | Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Private Slots | Private Attributes | Static Private Attributes
analogClock Class Reference

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:

List of all members.

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

Detailed Description

The analogClock class defines a QT GUI display of the current time / subscription information in the simpleDDM Example.


Constructor & Destructor Documentation

analogClock::analogClock ( bool  isPublisher,
bool  isClockWise,
int  zone,
bool  displayRegions,
QWidget parent = 0,
const char *  name = 0 
)

Member Function Documentation

void analogClock::closeEvent ( QCloseEvent *  ) [protected]
void analogClock::drawClock ( QPainter *  paint) [protected]

References clockWise.

void analogClock::initialize ( ) [private, slot]
void analogClock::paintEvent ( QPaintEvent *  event) [protected]
void analogClock::setRangeInHours ( float  minimum,
float  maximum 
) [inline]

References myMaxHour, and myMinHour.

void analogClock::setRangeInSeconds ( int  minimum,
int  maximum 
) [inline]
void analogClock::setTime ( int  seconds) [inline]
void analogClock::setTime ( float  hour = 12.0f,
float  minute = 0,
float  second = 0 
) [inline]

References myHours, myMinutes, and mySeconds.

void analogClock::setUTC ( ) [slot]
void analogClock::setZone ( int  newZone) [inline]

References myUTCzone, and utcLineEdit.

void analogClock::toggle ( ) [slot]
int analogClock::zone ( ) [inline]

References myUTCzone.


Member Data Documentation

QPoint analogClock::clickPos [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]
float analogClock::myHours [private]

Referenced by setTime().

float analogClock::myMaxHour [private]
float analogClock::myMinHour [private]
float analogClock::myMinutes [private]

Referenced by setTime().

float analogClock::mySeconds [private]

Referenced by setTime().

int analogClock::myUTCzone [private]

Referenced by setZone(), and zone().

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]

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

Document ID: Generated on Thu Jun 14 14:15:04 EDT 2012 from SVN revision 116116
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)