VR-Forces 4.3 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 namespace makVrv
18 {
19  class DtArticulatedModelAgent;
20 
28  {
29  public:
30 
33 
36  {
37  NavigationLightExhibitConditionAlways = 1,
38  NavigationLightExhibitConditionDay = 2,
39  NavigationLightExhibitConditionFog = 3,
40  NavigationLightExhibitConditionNight = 4
41  };
42 
45  typedef std::vector<float> SignalSequence;
46 
47  typedef std::vector<int> ColorSequence;
48 
50  virtual ~DtNavigationLightController();
51 
55  virtual void attach( DtArticulatedModelAgent* modelAgent );
56 
60  virtual void update( DtTime simTime, bool daylight, bool foggy );
61 
63 
64 
65  void setColors( const ColorSequence& sequence );
66  const ColorSequence& colors() const;
68 
69  //@(
73  void setSignalSequence( const SignalSequence& sequence );
74  const SignalSequence& signalSequence() const;
76 
77  //@(
79  void setExhibitCondition( NavigationLightExhibitCondition condition );
80  NavigationLightExhibitCondition exhibitCondition() const;
82 
84 
85 
86  void setOnOffState( bool state );
87  bool onOffState() const;
89 
91 
92 
93 
94  void setTimer( DtTime nextStateTime );
95  DtTime timer() const;
97 
99 
100 
101 
102  void setSequenceCursor( int cursor );
103  int sequenceCursor() const;
105 
107 
108 
109 
110  void setLightColorSwitchNumber( int switchNum );
111  int lightColorSwitchNumber() const;
113 
115 
116 
117 
118  void setLightSwitchNumber( int switchNum );
119  int lightSwitchNumber() const;
121 
123 
124 
125 
126 
127  void setEnabled( bool enabled );
128  bool enabled() const;
130 
132  std::string myParameterValues;
133  void setParameterValues(const std::string& values )
134  {
135  myParameterValues = values;
136  }
137  std::string parameterValues() const
138  {
139  return myParameterValues;
140  }
141 
142  protected:
143 
146 
149 
152 
154  const DtNavigationLightController& operator=(
155  const DtNavigationLightController& rhs );
156 
159  void checkEnabledState( bool daylight, bool foggy );
160 
161  protected:
171  bool myEnabled;
172  };
173 
177  : public DtVirtualBaseClass
178  {
179 
180  public:
183  static DtNavigationLightControllerCreator& instance( DtDe& de );
184 
186  static void registerInstance( DtDe& de,
187  DtNavigationLightControllerCreator* anInstance );
188 
190  virtual DtNavigationLightController* create( DtUniqueID elementId );
191  };
192 }

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)