1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
|
<html>
<head>
<title>NVIDIA(R) PhysX(R) SDK 3.4 API Reference: PxVehicleUtilTelemetry.h Source File</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<LINK HREF="NVIDIA.css" REL="stylesheet" TYPE="text/css">
</head>
<body bgcolor="#FFFFFF">
<div id="header">
<hr class="first">
<img alt="" src="images/PhysXlogo.png" align="middle"> <br>
<center>
<a class="qindex" href="main.html">Main Page</a>
<a class="qindex" href="hierarchy.html">Class Hierarchy</a>
<a class="qindex" href="annotated.html">Compound List</a>
<a class="qindex" href="functions.html">Compound Members</a>
</center>
<hr class="second">
</div>
<!-- Generated by Doxygen 1.5.8 -->
<h1>PxVehicleUtilTelemetry.h</h1><a href="PxVehicleUtilTelemetry_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">//</span>
<a name="l00002"></a>00002 <span class="comment">// Redistribution and use in source and binary forms, with or without</span>
<a name="l00003"></a>00003 <span class="comment">// modification, are permitted provided that the following conditions</span>
<a name="l00004"></a>00004 <span class="comment">// are met:</span>
<a name="l00005"></a>00005 <span class="comment">// * Redistributions of source code must retain the above copyright</span>
<a name="l00006"></a>00006 <span class="comment">// notice, this list of conditions and the following disclaimer.</span>
<a name="l00007"></a>00007 <span class="comment">// * Redistributions in binary form must reproduce the above copyright</span>
<a name="l00008"></a>00008 <span class="comment">// notice, this list of conditions and the following disclaimer in the</span>
<a name="l00009"></a>00009 <span class="comment">// documentation and/or other materials provided with the distribution.</span>
<a name="l00010"></a>00010 <span class="comment">// * Neither the name of NVIDIA CORPORATION nor the names of its</span>
<a name="l00011"></a>00011 <span class="comment">// contributors may be used to endorse or promote products derived</span>
<a name="l00012"></a>00012 <span class="comment">// from this software without specific prior written permission.</span>
<a name="l00013"></a>00013 <span class="comment">//</span>
<a name="l00014"></a>00014 <span class="comment">// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY</span>
<a name="l00015"></a>00015 <span class="comment">// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span>
<a name="l00016"></a>00016 <span class="comment">// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR</span>
<a name="l00017"></a>00017 <span class="comment">// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR</span>
<a name="l00018"></a>00018 <span class="comment">// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,</span>
<a name="l00019"></a>00019 <span class="comment">// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,</span>
<a name="l00020"></a>00020 <span class="comment">// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR</span>
<a name="l00021"></a>00021 <span class="comment">// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY</span>
<a name="l00022"></a>00022 <span class="comment">// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span>
<a name="l00023"></a>00023 <span class="comment">// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE</span>
<a name="l00024"></a>00024 <span class="comment">// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span>
<a name="l00025"></a>00025 <span class="comment">//</span>
<a name="l00026"></a>00026 <span class="comment">// Copyright (c) 2008-2018 NVIDIA Corporation. All rights reserved.</span>
<a name="l00027"></a>00027 <span class="comment">// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.</span>
<a name="l00028"></a>00028 <span class="comment">// Copyright (c) 2001-2004 NovodeX AG. All rights reserved. </span>
<a name="l00029"></a>00029
<a name="l00030"></a>00030 <span class="preprocessor">#ifndef PX_VEHICLE_UTILSTELEMETRY_H</span>
<a name="l00031"></a>00031 <span class="preprocessor"></span><span class="preprocessor">#define PX_VEHICLE_UTILSTELEMETRY_H</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span>
<a name="l00036"></a>00036 <span class="preprocessor">#include "<a class="code" href="PxVehicleSDK_8h.html">vehicle/PxVehicleSDK.h</a>"</span>
<a name="l00037"></a>00037 <span class="preprocessor">#include "<a class="code" href="PxSimpleTypes_8h.html">foundation/PxSimpleTypes.h</a>"</span>
<a name="l00038"></a>00038 <span class="preprocessor">#include "<a class="code" href="PxVec3_8h.html">foundation/PxVec3.h</a>"</span>
<a name="l00039"></a>00039
<a name="l00040"></a>00040 <span class="preprocessor">#if !PX_DOXYGEN</span>
<a name="l00041"></a>00041 <span class="preprocessor"></span><span class="keyword">namespace </span>physx
<a name="l00042"></a>00042 {
<a name="l00043"></a>00043 <span class="preprocessor">#endif</span>
<a name="l00044"></a>00044 <span class="preprocessor"></span>
<a name="l00045"></a>00045 <span class="preprocessor">#if PX_DEBUG_VEHICLE_ON</span>
<a name="l00046"></a>00046 <span class="preprocessor"></span>
<a name="l00047"></a>00047 <span class="keyword">class </span>PxVehicleGraphDesc
<a name="l00048"></a>00048 {
<a name="l00049"></a>00049
<a name="l00050"></a>00050 <span class="keyword">friend</span> <span class="keyword">class </span>PxVehicleGraph;
<a name="l00051"></a>00051
<a name="l00052"></a>00052 PxVehicleGraphDesc();
<a name="l00053"></a>00053
<a name="l00058"></a>00058 <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mPosX;
<a name="l00059"></a>00059
<a name="l00064"></a>00064 <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mPosY;
<a name="l00065"></a>00065
<a name="l00070"></a>00070 <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mSizeX;
<a name="l00071"></a>00071
<a name="l00076"></a>00076 <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mSizeY;
<a name="l00077"></a>00077
<a name="l00081"></a>00081 <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a> mBackgroundColor;
<a name="l00082"></a>00082
<a name="l00086"></a>00086 <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mAlpha;
<a name="l00087"></a>00087
<a name="l00088"></a>00088 <span class="keyword">private</span>:
<a name="l00089"></a>00089
<a name="l00090"></a>00090 <span class="keywordtype">bool</span> isValid() <span class="keyword">const</span>;
<a name="l00091"></a>00091 };
<a name="l00092"></a>00092
<a name="l00093"></a>00093 <span class="keyword">struct </span>PxVehicleGraphChannelDesc
<a name="l00094"></a>00094 {
<a name="l00095"></a>00095 <span class="keyword">public</span>:
<a name="l00096"></a>00096
<a name="l00097"></a>00097 <span class="keyword">friend</span> <span class="keyword">class </span>PxVehicleGraph;
<a name="l00098"></a>00098
<a name="l00099"></a>00099 PxVehicleGraphChannelDesc();
<a name="l00100"></a>00100
<a name="l00104"></a>00104 <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mMinY;
<a name="l00105"></a>00105
<a name="l00109"></a>00109 <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mMaxY;
<a name="l00110"></a>00110
<a name="l00115"></a>00115 <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mMidY;
<a name="l00116"></a>00116
<a name="l00120"></a>00120 <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a> mColorLow;
<a name="l00121"></a>00121
<a name="l00125"></a>00125 <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a> mColorHigh;
<a name="l00126"></a>00126
<a name="l00130"></a>00130 <span class="keywordtype">char</span>* mTitle;
<a name="l00131"></a>00131
<a name="l00132"></a>00132 <span class="keyword">private</span>:
<a name="l00133"></a>00133
<a name="l00134"></a>00134 <span class="keywordtype">bool</span> isValid() <span class="keyword">const</span>;
<a name="l00135"></a>00135 };
<a name="l00136"></a>00136
<a name="l00137"></a>00137 <span class="keyword">struct </span>PxVehicleWheelGraphChannel
<a name="l00138"></a>00138 {
<a name="l00139"></a>00139 <span class="keyword">enum</span> Enum
<a name="l00140"></a>00140 {
<a name="l00141"></a>00141 eJOUNCE=0,
<a name="l00142"></a>00142 eSUSPFORCE,
<a name="l00143"></a>00143 eTIRELOAD,
<a name="l00144"></a>00144 eNORMALIZED_TIRELOAD,
<a name="l00145"></a>00145 eWHEEL_OMEGA,
<a name="l00146"></a>00146 eTIRE_FRICTION,
<a name="l00147"></a>00147 eTIRE_LONG_SLIP,
<a name="l00148"></a>00148 eNORM_TIRE_LONG_FORCE,
<a name="l00149"></a>00149 eTIRE_LAT_SLIP,
<a name="l00150"></a>00150 eNORM_TIRE_LAT_FORCE,
<a name="l00151"></a>00151 eNORM_TIRE_ALIGNING_MOMENT,
<a name="l00152"></a>00152 eMAX_NB_WHEEL_CHANNELS
<a name="l00153"></a>00153 };
<a name="l00154"></a>00154 };
<a name="l00155"></a>00155
<a name="l00156"></a>00156 <span class="keyword">struct </span>PxVehicleDriveGraphChannel
<a name="l00157"></a>00157 {
<a name="l00158"></a>00158 <span class="keyword">enum</span> Enum
<a name="l00159"></a>00159 {
<a name="l00160"></a>00160 eENGINE_REVS=0,
<a name="l00161"></a>00161 eENGINE_DRIVE_TORQUE,
<a name="l00162"></a>00162 eCLUTCH_SLIP,
<a name="l00163"></a>00163 eACCEL_CONTROL, <span class="comment">//TANK_ACCEL</span>
<a name="l00164"></a>00164 eBRAKE_CONTROL, <span class="comment">//TANK_BRAKE_LEFT</span>
<a name="l00165"></a>00165 eHANDBRAKE_CONTROL, <span class="comment">//TANK_BRAKE_RIGHT</span>
<a name="l00166"></a>00166 eSTEER_LEFT_CONTROL, <span class="comment">//TANK_THRUST_LEFT</span>
<a name="l00167"></a>00167 eSTEER_RIGHT_CONTROL, <span class="comment">//TANK_THRUST_RIGHT</span>
<a name="l00168"></a>00168 eGEAR_RATIO,
<a name="l00169"></a>00169 eMAX_NB_DRIVE_CHANNELS
<a name="l00170"></a>00170 };
<a name="l00171"></a>00171 };
<a name="l00172"></a>00172
<a name="l00173"></a>00173 <span class="keyword">struct </span>PxVehicleGraphType
<a name="l00174"></a>00174 {
<a name="l00175"></a>00175 <span class="keyword">enum</span> Enum
<a name="l00176"></a>00176 {
<a name="l00177"></a>00177 eWHEEL=0,
<a name="l00178"></a>00178 eDRIVE
<a name="l00179"></a>00179 };
<a name="l00180"></a>00180 };
<a name="l00181"></a>00181
<a name="l00182"></a>00182
<a name="l00183"></a>00183 <span class="keyword">class </span>PxVehicleGraph
<a name="l00184"></a>00184 {
<a name="l00185"></a>00185 <span class="keyword">public</span>:
<a name="l00186"></a>00186
<a name="l00187"></a>00187 <span class="keyword">friend</span> <span class="keyword">class </span>PxVehicleTelemetryData;
<a name="l00188"></a>00188 <span class="keyword">friend</span> <span class="keyword">class </span>PxVehicleUpdate;
<a name="l00189"></a>00189
<a name="l00190"></a>00190 <span class="keyword">enum</span>
<a name="l00191"></a>00191 {
<a name="l00192"></a>00192 eMAX_NB_SAMPLES=256
<a name="l00193"></a>00193 };
<a name="l00194"></a>00194
<a name="l00195"></a>00195 <span class="keyword">enum</span>
<a name="l00196"></a>00196 {
<a name="l00197"></a>00197 eMAX_NB_TITLE_CHARS=256
<a name="l00198"></a>00198 };
<a name="l00199"></a>00199
<a name="l00200"></a>00200 <span class="keyword">enum</span>
<a name="l00201"></a>00201 {
<a name="l00202"></a>00202 eMAX_NB_CHANNELS=12
<a name="l00203"></a>00203 };
<a name="l00204"></a>00204
<a name="l00208"></a>00208 <span class="keywordtype">void</span> setup(<span class="keyword">const</span> PxVehicleGraphDesc& desc, <span class="keyword">const</span> PxVehicleGraphType::Enum graphType);
<a name="l00209"></a>00209
<a name="l00213"></a>00213 <span class="keywordtype">void</span> clearRecordedChannelData();
<a name="l00214"></a>00214
<a name="l00218"></a>00218 <span class="keyword">const</span> <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a>& getBackgroundColor()<span class="keyword"> const </span>{<span class="keywordflow">return</span> mBackgroundColor;}
<a name="l00219"></a>00219
<a name="l00223"></a>00223 <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> getBackgroundAlpha()<span class="keyword"> const </span>{<span class="keywordflow">return</span> mBackgroundAlpha;}
<a name="l00224"></a>00224
<a name="l00233"></a>00233 <span class="keywordtype">void</span> getBackgroundCoords(<a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a>& xMin, <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a>& yMin, <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a>& xMax, <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a>& yMax)<span class="keyword"> const </span>{xMin = mBackgroundMinX;xMax = mBackgroundMaxX;yMin = mBackgroundMinY;yMax = mBackgroundMaxY;}
<a name="l00234"></a>00234
<a name="l00242"></a>00242 <span class="keywordtype">void</span> computeGraphChannel(<span class="keyword">const</span> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> channel, <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a>* xy, <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a>* colors, <span class="keywordtype">char</span>* title) <span class="keyword">const</span>;
<a name="l00243"></a>00243
<a name="l00247"></a>00247 <a class="code" href="namespacephysx.html#b4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> getLatestValue(<span class="keyword">const</span> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> channel) <span class="keyword">const</span> ;
<a name="l00248"></a>00248
<a name="l00249"></a>00249 <span class="keyword">private</span>:
<a name="l00250"></a>00250
<a name="l00251"></a>00251 <span class="comment">//Min and max of each sample.</span>
<a name="l00252"></a>00252 <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mChannelMinY[eMAX_NB_CHANNELS];
<a name="l00253"></a>00253 <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mChannelMaxY[eMAX_NB_CHANNELS];
<a name="l00254"></a>00254 <span class="comment">//Discriminate between high and low values with different colors.</span>
<a name="l00255"></a>00255 <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mChannelMidY[eMAX_NB_CHANNELS];
<a name="l00256"></a>00256 <span class="comment">//Different colors for values than midY and less than midY.</span>
<a name="l00257"></a>00257 <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a> mChannelColorLow[eMAX_NB_CHANNELS];
<a name="l00258"></a>00258 <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a> mChannelColorHigh[eMAX_NB_CHANNELS];
<a name="l00259"></a>00259 <span class="comment">//Title of graph</span>
<a name="l00260"></a>00260 <span class="keywordtype">char</span> mChannelTitle[eMAX_NB_CHANNELS][eMAX_NB_TITLE_CHARS];
<a name="l00261"></a>00261 <span class="comment">//Graph data.</span>
<a name="l00262"></a>00262 <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mChannelSamples[eMAX_NB_CHANNELS][eMAX_NB_SAMPLES];
<a name="l00263"></a>00263
<a name="l00264"></a>00264 <span class="comment">//Background color,alpha,coords</span>
<a name="l00265"></a>00265 <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a> mBackgroundColor;
<a name="l00266"></a>00266 <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mBackgroundAlpha;
<a name="l00267"></a>00267 <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mBackgroundMinX;
<a name="l00268"></a>00268 <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mBackgroundMaxX;
<a name="l00269"></a>00269 <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mBackgroundMinY;
<a name="l00270"></a>00270 <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> mBackgroundMaxY;
<a name="l00271"></a>00271
<a name="l00272"></a>00272 <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> mSampleTide;
<a name="l00273"></a>00273
<a name="l00274"></a>00274 <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> mNbChannels;
<a name="l00275"></a>00275
<a name="l00276"></a>00276 <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> mPad[2];
<a name="l00277"></a>00277
<a name="l00278"></a>00278
<a name="l00279"></a>00279 <span class="keywordtype">void</span> setup
<a name="l00280"></a>00280 (<span class="keyword">const</span> <a class="code" href="namespacephysx.html#b4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> graphSizeX, <span class="keyword">const</span> <a class="code" href="namespacephysx.html#b4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> graphSizeY,
<a name="l00281"></a>00281 <span class="keyword">const</span> <a class="code" href="namespacephysx.html#b4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> engineGraphPosX, <span class="keyword">const</span> <a class="code" href="namespacephysx.html#b4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> engineGraphPosY,
<a name="l00282"></a>00282 <span class="keyword">const</span> <a class="code" href="namespacephysx.html#b4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a>* <span class="keyword">const</span> wheelGraphPosX, <span class="keyword">const</span> <a class="code" href="namespacephysx.html#b4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a>* <span class="keyword">const</span> wheelGraphPosY,
<a name="l00283"></a>00283 <span class="keyword">const</span> <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a>& backgroundColor, <span class="keyword">const</span> <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a>& lineColorHigh, <span class="keyword">const</span> <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a>& lineColorLow);
<a name="l00284"></a>00284
<a name="l00285"></a>00285 <span class="keywordtype">void</span> updateTimeSlice(<span class="keyword">const</span> <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a>* <span class="keyword">const</span> samples);
<a name="l00286"></a>00286
<a name="l00287"></a>00287 <span class="keywordtype">void</span> setChannel(PxVehicleGraphChannelDesc& desc, <span class="keyword">const</span> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> channel);
<a name="l00288"></a>00288
<a name="l00289"></a>00289 <span class="keywordtype">void</span> setupEngineGraph
<a name="l00290"></a>00290 (<span class="keyword">const</span> <a class="code" href="namespacephysx.html#b4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> sizeX, <span class="keyword">const</span> <a class="code" href="namespacephysx.html#b4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> sizeY, <span class="keyword">const</span> <a class="code" href="namespacephysx.html#b4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> posX, <span class="keyword">const</span> <a class="code" href="namespacephysx.html#b4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> posY,
<a name="l00291"></a>00291 <span class="keyword">const</span> <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a>& backgoundColor, <span class="keyword">const</span> <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a>& lineColorHigh, <span class="keyword">const</span> <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a>& lineColorLow);
<a name="l00292"></a>00292
<a name="l00293"></a>00293 <span class="keywordtype">void</span> setupWheelGraph
<a name="l00294"></a>00294 (<span class="keyword">const</span> <a class="code" href="namespacephysx.html#b4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> sizeX, <span class="keyword">const</span> <a class="code" href="namespacephysx.html#b4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> sizeY, <span class="keyword">const</span> <a class="code" href="namespacephysx.html#b4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> posX, <span class="keyword">const</span> <a class="code" href="namespacephysx.html#b4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> posY,
<a name="l00295"></a>00295 <span class="keyword">const</span> <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a>& backgoundColor, <span class="keyword">const</span> <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a>& lineColorHigh, <span class="keyword">const</span> <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a>& lineColorLow);
<a name="l00296"></a>00296
<a name="l00297"></a>00297 PxVehicleGraph();
<a name="l00298"></a>00298 ~PxVehicleGraph();
<a name="l00299"></a>00299 };
<a name="l00300"></a>00300 <a class="code" href="group__foundation.html#gb12cc8cbd08c9c19ab0d40b7f789012e">PX_COMPILE_TIME_ASSERT</a>(<a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>(PxVehicleGraph::eMAX_NB_CHANNELS) >= <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>(PxVehicleWheelGraphChannel::eMAX_NB_WHEEL_CHANNELS) && <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>(PxVehicleGraph::eMAX_NB_CHANNELS) >= <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>(PxVehicleDriveGraphChannel::eMAX_NB_DRIVE_CHANNELS));
<a name="l00301"></a>00301 <a class="code" href="group__foundation.html#gb12cc8cbd08c9c19ab0d40b7f789012e">PX_COMPILE_TIME_ASSERT</a>(0==(<span class="keyword">sizeof</span>(PxVehicleGraph) & 15));
<a name="l00302"></a>00302
<a name="l00303"></a>00303 <span class="keyword">class </span>PxVehicleTelemetryData
<a name="l00304"></a>00304 {
<a name="l00305"></a>00305 <span class="keyword">public</span>:
<a name="l00306"></a>00306
<a name="l00307"></a>00307 <span class="keyword">friend</span> <span class="keyword">class </span>PxVehicleUpdate;
<a name="l00308"></a>00308
<a name="l00313"></a>00313 <span class="keyword">static</span> PxVehicleTelemetryData* allocate(<span class="keyword">const</span> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> nbWheels);
<a name="l00314"></a>00314
<a name="l00319"></a>00319 <span class="keywordtype">void</span> free();
<a name="l00320"></a>00320
<a name="l00324"></a>00324 <span class="keywordtype">void</span> setup
<a name="l00325"></a>00325 (<span class="keyword">const</span> <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> graphSizeX, <span class="keyword">const</span> <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> graphSizeY,
<a name="l00326"></a>00326 <span class="keyword">const</span> <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> engineGraphPosX, <span class="keyword">const</span> <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> engineGraphPosY,
<a name="l00327"></a>00327 <span class="keyword">const</span> <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a>* <span class="keyword">const</span> wheelGraphPosX, <span class="keyword">const</span> <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a>* <span class="keyword">const</span> wheelGraphPosY,
<a name="l00328"></a>00328 <span class="keyword">const</span> <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a>& backGroundColor, <span class="keyword">const</span> <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a>& lineColorHigh, <span class="keyword">const</span> <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a>& lineColorLow);
<a name="l00329"></a>00329
<a name="l00333"></a>00333 <span class="keywordtype">void</span> clear();
<a name="l00334"></a>00334
<a name="l00338"></a>00338 <span class="keyword">const</span> PxVehicleGraph& getEngineGraph()<span class="keyword"> const </span>{<span class="keywordflow">return</span> *mEngineGraph;}
<a name="l00339"></a>00339
<a name="l00343"></a>00343 <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> getNbWheelGraphs()<span class="keyword"> const </span>{<span class="keywordflow">return</span> mNbActiveWheels;}
<a name="l00344"></a>00344
<a name="l00348"></a>00348 <span class="keyword">const</span> PxVehicleGraph& getWheelGraph(<span class="keyword">const</span> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> k)<span class="keyword"> const </span>{<span class="keywordflow">return</span> mWheelGraphs[k];}
<a name="l00349"></a>00349
<a name="l00353"></a>00353 <span class="keyword">const</span> <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a>* getTireforceAppPoints()<span class="keyword"> const </span>{<span class="keywordflow">return</span> mTireforceAppPoints;}
<a name="l00354"></a>00354
<a name="l00358"></a>00358 <span class="keyword">const</span> <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a>* getSuspforceAppPoints()<span class="keyword"> const </span>{<span class="keywordflow">return</span> mSuspforceAppPoints;}
<a name="l00359"></a>00359
<a name="l00360"></a>00360 <span class="keyword">private</span>:
<a name="l00361"></a>00361
<a name="l00367"></a>00367 PxVehicleGraph* mEngineGraph;
<a name="l00368"></a>00368
<a name="l00374"></a>00374 PxVehicleGraph* mWheelGraphs;
<a name="l00375"></a>00375
<a name="l00379"></a>00379 <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a>* mTireforceAppPoints;
<a name="l00380"></a>00380
<a name="l00384"></a>00384 <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a>* mSuspforceAppPoints;
<a name="l00385"></a>00385
<a name="l00389"></a>00389 <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> mNbActiveWheels;
<a name="l00390"></a>00390
<a name="l00391"></a>00391 <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> mPad[3];
<a name="l00392"></a>00392
<a name="l00393"></a>00393 <span class="keyword">private</span>:
<a name="l00394"></a>00394
<a name="l00395"></a>00395 PxVehicleTelemetryData(){}
<a name="l00396"></a>00396 ~PxVehicleTelemetryData(){}
<a name="l00397"></a>00397 };
<a name="l00398"></a>00398
<a name="l00399"></a>00399 <a class="code" href="group__foundation.html#gb12cc8cbd08c9c19ab0d40b7f789012e">PX_COMPILE_TIME_ASSERT</a>(0==(<span class="keyword">sizeof</span>(PxVehicleTelemetryData) & 15));
<a name="l00400"></a>00400
<a name="l00401"></a>00401 <span class="preprocessor">#endif //PX_DEBUG_VEHICLE_ON</span>
<a name="l00402"></a>00402 <span class="preprocessor"></span>
<a name="l00403"></a>00403 <span class="comment">//#endif // PX_DEBUG_VEHICLE_ON</span>
<a name="l00404"></a>00404
<a name="l00405"></a>00405 <span class="preprocessor">#if !PX_DOXYGEN</span>
<a name="l00406"></a>00406 <span class="preprocessor"></span>} <span class="comment">// namespace physx</span>
<a name="l00407"></a>00407 <span class="preprocessor">#endif</span>
<a name="l00408"></a>00408 <span class="preprocessor"></span>
<a name="l00410"></a>00410 <span class="preprocessor">#endif //PX_VEHICLE_UTILSTELEMETRY_H</span>
</pre></div></div>
<hr style="width: 100%; height: 2px;"><br>
Copyright © 2008-2018 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. <a href="http://www.nvidia.com ">www.nvidia.com</a>
</body>
</html>
|