MAK RTIspy API Documentation for HLA 1.3
simpleDDMDisplay.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2006 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: simpleDDMDisplay.h,v $ $Revision: 1.2 $ $State: Exp $
00007 ******************************************************************************/
00008 
00009 #ifndef DISPLAYFORREGIONEXAMPLE_H_
00010 #define DISPLAYFORREGIONEXAMPLE_H_
00011 
00012 #ifdef SIMPLEDDMGUI
00013 
00014 #include <vector>
00015 #include <string>
00016 
00017 class analogClock;
00018 class QApplication;
00019  
00020 
00023 class clockDisplay
00024 {
00025 public:
00026    clockDisplay( bool pub = false, bool cw = true,                               
00027                             bool showReg = true, int zone = 0 );
00028    ~clockDisplay();
00029    clockDisplay(clockDisplay& data);
00030 
00031 protected:
00032    void initializeQTDisplay();
00033 
00034 
00035 public:
00036    float upperBoundRegion();
00037    float lowerBoundRegion();
00038    bool  areRegionsDisplayed();
00039    bool  isPublisher();
00040    bool  isClockWise();
00041    void  toggleClockWise();
00042    bool  hasAClock();
00043    void  setHasAClock(bool newVal);
00044    int   zone();
00045    void  setZone(int newZone);
00046    
00047    // In Seconds
00048    void setBoundsRegionInSeconds(int lower, int upper);
00049 
00050    void setTime(int seconds);
00051    void setTime(float hour, float min, float sec);
00052 
00053    bool myHaveAClock;
00054    bool closed;  
00055    bool closing;   
00056 
00057    analogClock* ourAnalogClock;   
00058    QApplication* a;
00059 
00060 private:
00061    float mySeconds;
00062    float myMinutes;
00063    float myHours;
00064    float myUpperBoundRegion;
00065    float myLowerBoundRegion;
00066    bool  myAreRegionsDisplayed;
00067    bool  myIsPublisher;   
00068    bool  myIsClockWise;
00069    int   myUTCZone;
00070 
00071 };
00072 
00073 
00074 inline float clockDisplay::upperBoundRegion()
00075 {
00076    return myUpperBoundRegion;
00077 }
00078 
00079 inline float clockDisplay::lowerBoundRegion()
00080 {
00081    return myLowerBoundRegion;
00082 }
00083 
00084 inline bool clockDisplay::areRegionsDisplayed()
00085 {
00086    return myAreRegionsDisplayed;
00087 }
00088 
00089 inline bool clockDisplay::isPublisher() 
00090 {
00091    return myIsPublisher;
00092 }
00093 
00094 inline bool clockDisplay::hasAClock()
00095 {
00096   return myHaveAClock;
00097 }
00098 
00099 inline void clockDisplay::setHasAClock(bool newVal)
00100 {
00101    myHaveAClock = newVal;
00102 }
00103 
00104 #endif // SIMPLEDDMGUI
00105 
00106 #endif // DISPLAYFORREGIONEXAMPLE_H_

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)