VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtNavigationLightController.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
14 
16 
17 #include <vlutil/vlTime.h>
18 
19 namespace makVrv
20 {
21  class DtArticulatedModelAgent;
22 
30  {
31  public:
32 
35 
38  {
39  NavigationLightExhibitConditionAlways = 1,
40  NavigationLightExhibitConditionDay = 2,
41  NavigationLightExhibitConditionFog = 3,
42  NavigationLightExhibitConditionNight = 4
43  };
44 
47  typedef std::vector<float> SignalSequence;
48 
49  typedef std::vector<int> ColorSequence;
50 
52  virtual ~DtNavigationLightController();
53 
57  virtual void attach( DtBuoyOrBeaconFacade& buoyOrBeacon );
58 
62  virtual void update( DtTime simTime, bool daylight, bool foggy );
63 
65 
66 
67  void setColors( const ColorSequence& sequence );
68  const ColorSequence& colors() const;
70 
71  //@(
75  void setSignalSequence( const SignalSequence& sequence );
76  const SignalSequence& signalSequence() const;
78 
79  //@(
81  void setExhibitCondition( NavigationLightExhibitCondition condition );
82  NavigationLightExhibitCondition exhibitCondition() const;
84 
86 
87 
88  void setOnOffState( bool state );
89  bool onOffState() const;
91 
93 
94 
95 
96  void setTimer( DtTime nextStateTime );
97  DtTime timer() const;
99 
101 
102 
103 
104  void setSequenceCursor( int cursor );
105  int sequenceCursor() const;
107 
109 
110 
111 
112  void setLightColorSwitchNumber( int switchNum );
113  int lightColorSwitchNumber() const;
115 
117 
118 
119 
120  void setLightSwitchNumber( int switchNum );
121  int lightSwitchNumber() const;
123 
125 
126 
127 
128 
129  void setEnabled( bool enabled );
130  bool enabled() const;
132 
134  std::string myParameterValues;
135  void setParameterValues(const std::string& values )
136  {
137  myParameterValues = values;
138  }
139  std::string parameterValues() const
140  {
141  return myParameterValues;
142  }
143 
144  protected:
145 
148 
151 
154 
156  const DtNavigationLightController& operator=(
157  const DtNavigationLightController& rhs );
158 
161  void checkEnabledState( bool daylight, bool foggy );
162 
163  protected:
173  bool myEnabled;
174  };
175 
179  : public DtVirtualBaseClass
180  {
181 
182  public:
185  static DtNavigationLightControllerCreator& instance( DtDe& de );
186 
188  static void registerInstance( DtDe& de,
189  DtNavigationLightControllerCreator* anInstance );
190 
192  virtual DtNavigationLightController* create( DtUniqueID elementId );
193  };
194 }

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)