VR-Vantage 3.1 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ssShipWake.h
Go to the documentation of this file.
1 
2 
3 
4 
5 
6 
7 
8 
9 #ifndef SS_SHIP_WAKE
10 #define SS_SHIP_WAKE
11 
12 #include "ssdllexport.h"
13 
14 #include <string.h>
15 
20 {
21 public:
22 
28  {
29  double time;
30 
31  float positionX;
32  float positionY;
33 
34  float tangentX;
35  float tangentY;
36 
37  float leftEdgeX;
38  float leftEdgeY;
39  float leftEdgeS;
40  float leftEdgeT;
41 
42  float rightEdgeX;
43  float rightEdgeY;
44  float rightEdgeS;
45  float rightEdgeT;
46 
47  float opacity;
48  };
49 
53  ssShipWake();
54 
55 
60  ssShipWakePoint* getWakePoints();
61 
62 
69  void setNumPoints( int numPoints );
70 
71 
76  int getNumPoints()
77  {
78  return m_numPoints;
79  }
80 
81 
86  void setOffset( float x, float y )
87  {
88  m_wakeOffsetX = x;
89  m_wakeOffsetY = y;
90  }
91 
92 
97  void getOffset( float& x, float& y )
98  {
99  x = m_wakeOffsetX;
100  y = m_wakeOffsetY;
101  }
102 
108  void setWidth( float initial, float maximum )
109  {
110  m_initialWidth = initial;
111  m_maximumWidth = maximum;
112  }
113 
114 
118  void getWidth( float &initial, float &maximum )
119  {
120  initial = m_initialWidth;
121  maximum = m_maximumWidth;
122  }
123 
124 
131  void setTimeOfMaxWidth( float time )
132  {
133  m_timeOfMaxWidth = time;
134  }
135 
136 
141  float getTimeOfMaxWidth()
142  {
143  return m_timeOfMaxWidth;
144  }
145 
146 
154  void setTimeAlphaBegins( float time )
155  {
156  m_timeAlphaBegins = time;
157  }
158 
159 
164  float getTimeAlphaBegins()
165  {
166  return m_timeAlphaBegins;
167  }
168 
169 
170 
178  void setTextureFlowRate( float unitsPerSecond )
179  {
180  m_textureFlowRate = unitsPerSecond;
181  }
182 
183 
188  float getTextureFlowRate()
189  {
190  return m_textureFlowRate;
191  }
192 
193 
198  void update( double x, double y, double z,
199  double heading, double pitch, double roll,
200  double time );
201 
202 
203 private:
204 
210  void pushRight();
211 
212 
219  void initializeData( int numPoint );
220 
221 
223 
226 
229 
232 
235 
238 
240 
241 }; // class ssShipWake
242 
243 #endif // #ifndef SS_SHIP_WAKE


Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)