MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
simpleDDMDisplay.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2006 MaK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: simpleDDMDisplay.h,v $ $Revision: 1.2 $ $State: Exp $
7 ******************************************************************************/
8 
9 #ifndef DISPLAYFORREGIONEXAMPLE_H_
10 #define DISPLAYFORREGIONEXAMPLE_H_
11 
12 #ifdef SIMPLEDDMGUI
13 
14 #include <vector>
15 #include <string>
16 
17 class analogClock;
18 class QApplication;
19 
20 
23 class clockDisplay
24 {
25 public:
26  clockDisplay( bool pub = false, bool cw = true,
27  bool showReg = true, int zone = 0 );
28  ~clockDisplay();
29  clockDisplay(clockDisplay& data);
30 
31 protected:
32  void initializeQTDisplay();
33 
34 
35 public:
36  float upperBoundRegion();
37  float lowerBoundRegion();
38  bool areRegionsDisplayed();
39  bool isPublisher();
40  bool isClockWise();
41  void toggleClockWise();
42  bool hasAClock();
43  void setHasAClock(bool newVal);
44  int zone();
45  void setZone(int newZone);
46 
47  // In Seconds
48  void setBoundsRegionInSeconds(int lower, int upper);
49 
50  void setTime(int seconds);
51  void setTime(float hour, float min, float sec);
52 
53  bool myHaveAClock;
54  bool closed;
55  bool closing;
56 
57  analogClock* ourAnalogClock;
58  QApplication* a;
59 
60 private:
61  float mySeconds;
62  float myMinutes;
63  float myHours;
64  float myUpperBoundRegion;
65  float myLowerBoundRegion;
66  bool myAreRegionsDisplayed;
67  bool myIsPublisher;
68  bool myIsClockWise;
69  int myUTCZone;
70 
71 };
72 
73 
74 inline float clockDisplay::upperBoundRegion()
75 {
76  return myUpperBoundRegion;
77 }
78 
79 inline float clockDisplay::lowerBoundRegion()
80 {
81  return myLowerBoundRegion;
82 }
83 
84 inline bool clockDisplay::areRegionsDisplayed()
85 {
86  return myAreRegionsDisplayed;
87 }
88 
89 inline bool clockDisplay::isPublisher()
90 {
91  return myIsPublisher;
92 }
93 
94 inline bool clockDisplay::hasAClock()
95 {
96  return myHaveAClock;
97 }
98 
99 inline void clockDisplay::setHasAClock(bool newVal)
100 {
101  myHaveAClock = newVal;
102 }
103 
104 #endif // SIMPLEDDMGUI
105 
106 #endif // DISPLAYFORREGIONEXAMPLE_H_
The analogClock class defines a QT GUI display of the current time / subscription information in the ...
Definition: simpleDDMAclock.h:39

Document ID: Generated on Mon Sep 7 15:40:32 EDT 2020 from SVN revision 217499
Copyright © 2005-2020 MAK Technologies Inc. All Rights Reserved (www.mak.com)