AnimatLab  2
Test
SimulatorInterfaceMock.cs
1 // VBConversions Note: VB project level imports
2 using System.Collections.Generic;
3 using System;
4 using System.Diagnostics;
5 using System.Data;
6 using System.Xml.Linq;
7 using Microsoft.VisualBasic;
8 using System.Collections;
9 using System.Linq;
10 // End of VB project level imports
11 
12 
13 
15 {
17  {
18 
19  public bool AddItem(string sParentID, string sItemType, string sID, string sXml, bool bThrowError, bool bDoNotInit)
20  {
21  return true;
22  }
23 
24  public string AddKeyFrame(string strType, long lStartMillisecond, long lEndMillisecond)
25  {
26  return "";
27  }
28 
29  public bool AddWindow(System.IntPtr hParentWnd, string sWindowType, string sWindowXml)
30  {
31  return true;
32  }
33 
34  public void CreateAndRunSimulation(bool bPaused)
35  {
36 
37  }
38 
39  public void CreateSimulation()
40  {
41 
42  }
43 
44  public void CreateSimulation(string sXml)
45  {
46 
47  }
48 
49  public long CurrentMillisecond()
50  {
51  return 0;
52  }
53 
54  public void DisableVideoPlayback()
55  {
56 
57  }
58 
59  public void EnableVideoPlayback(string strID)
60  {
61 
62  }
63 
64  public string ErrorMessage()
65  {
66  return "";
67  }
68 
69  public bool FindItem(string sID, bool bThrowError)
70  {
71  return false;
72  }
73 
74  public void FireHandleCriticalErrorEvent(string strError)
75  {
76 
77  }
78 
79  public void FireHandleNonCriticalErrorEvent(string strError)
80  {
81 
82  }
83 
84  public void FireNeedToStopSimulationEvent()
85  {
86 
87  }
88 
89  public void ConvertV1MeshFile(string sOriginalMeshFile, string NewMeshFile, string strTexture)
90  {
91 
92  }
93 
94  public void GenerateCollisionMeshFile(string sOriginalMeshFile, string sCollisionMeshFile, float fltScaleX, float fltScaleY, float fltScaleZ)
95  {
96 
97  }
98 
99  public delegate void HandleCriticalErrorEventHandler(string strError);
100  private HandleCriticalErrorEventHandler HandleCriticalErrorEvent;
101 
102  public event HandleCriticalErrorEventHandler HandleCriticalError
103  {
104  add
105  {
106  HandleCriticalErrorEvent = (HandleCriticalErrorEventHandler) System.Delegate.Combine(HandleCriticalErrorEvent, value);
107  }
108  remove
109  {
110  HandleCriticalErrorEvent = (HandleCriticalErrorEventHandler) System.Delegate.Remove(HandleCriticalErrorEvent, value);
111  }
112  }
113 
114 
115  public delegate void HandleNonCriticalErrorEventHandler(string strError);
116  private HandleNonCriticalErrorEventHandler HandleNonCriticalErrorEvent;
117 
118  public event HandleNonCriticalErrorEventHandler HandleNonCriticalError
119  {
120  add
121  {
122  HandleNonCriticalErrorEvent = (HandleNonCriticalErrorEventHandler) System.Delegate.Combine(HandleNonCriticalErrorEvent, value);
123  }
124  remove
125  {
126  HandleNonCriticalErrorEvent = (HandleNonCriticalErrorEventHandler) System.Delegate.Remove(HandleNonCriticalErrorEvent, value);
127  }
128  }
129 
130 
131  public bool Loaded()
132  {
133  return false;
134  }
135 
136  public string MoveKeyFrame(string strID, long lStartMillisecond, long lEndMillisecond)
137  {
138  return "";
139  }
140 
141  public void MoveSimulationToKeyFrame(string strID)
142  {
143 
144  }
145 
146  public delegate void NeedToStopSimulationEventHandler();
147  private NeedToStopSimulationEventHandler NeedToStopSimulationEvent;
148 
149  public event NeedToStopSimulationEventHandler NeedToStopSimulation
150  {
151  add
152  {
153  NeedToStopSimulationEvent = (NeedToStopSimulationEventHandler) System.Delegate.Combine(NeedToStopSimulationEvent, value);
154  }
155  remove
156  {
157  NeedToStopSimulationEvent = (NeedToStopSimulationEventHandler) System.Delegate.Remove(NeedToStopSimulationEvent, value);
158  }
159  }
160 
161 
162  public delegate void OnSimulationCreateEventHandler(ref string strXml);
163  private OnSimulationCreateEventHandler OnSimulationCreateEvent;
164 
165  public event OnSimulationCreateEventHandler OnSimulationCreate
166  {
167  add
168  {
169  OnSimulationCreateEvent = (OnSimulationCreateEventHandler) System.Delegate.Combine(OnSimulationCreateEvent, value);
170  }
171  remove
172  {
173  OnSimulationCreateEvent = (OnSimulationCreateEventHandler) System.Delegate.Remove(OnSimulationCreateEvent, value);
174  }
175  }
176 
177 
178  public void OnWindowGetFocus(string sID)
179  {
180 
181  }
182 
183  public void OnWindowLoseFocus(string sID)
184  {
185 
186  }
187 
188  public bool Paused()
189  {
190  return true;
191  }
192 
193  public bool PauseSimulation()
194  {
195  return true;
196  }
197 
198  public void ReInitializeSimulation()
199  {
200 
201  }
202 
203  public bool RemoveItem(string sParentID, string sItemType, string sID, bool bThrowError)
204  {
205  return true;
206  }
207 
208  public void RemoveKeyFrame(string strID)
209  {
210 
211  }
212 
213  public void RemoveWindow(System.IntPtr hParentWnd)
214  {
215 
216  }
217 
218  public int RetrieveChartData(string sChartKey, ref float[,] aryTimeData, ref float[,] aryData)
219  {
220  return 1;
221  }
222 
223  public void SaveSimulationFile(string sFile)
224  {
225 
226  }
227 
228  public void SaveVideo(string strPath)
229  {
230 
231  }
232 
233  public bool SetData(string sID, string sDataType, string sValue, bool bThrowError)
234  {
235  return true;
236  }
237 
238  public void SetLogger(ILogger lpLog)
239  {
240 
241  }
242 
243  public void SetProjectPath(string strPath)
244  {
245 
246  }
247 
248  public void ShutdownSimulation()
249  {
250 
251  }
252 
253  public bool SimOpen()
254  {
255  return true;
256  }
257 
258  public bool SimRunning()
259  {
260  return true;
261  }
262 
263  public void Simulate(bool bPaused)
264  {
265 
266  }
267 
268  public delegate void SimulationRunningEventHandler();
269  private SimulationRunningEventHandler SimulationRunningEvent;
270 
271  public event SimulationRunningEventHandler SimulationRunning
272  {
273  add
274  {
275  SimulationRunningEvent = (SimulationRunningEventHandler) System.Delegate.Combine(SimulationRunningEvent, value);
276  }
277  remove
278  {
279  SimulationRunningEvent = (SimulationRunningEventHandler) System.Delegate.Remove(SimulationRunningEvent, value);
280  }
281  }
282 
283 
284  public bool StartSimulation()
285  {
286  return true;
287  }
288 
289  public void StartVideoPlayback()
290  {
291 
292  }
293 
294  public void StepVideoPlayback(int iFrameCount)
295  {
296 
297  }
298 
299  public void StopSimulation()
300  {
301 
302  }
303 
304  public void StopVideoPlayback()
305  {
306 
307  }
308 
309  public void TrackCamera(bool bTrackCamera, string sLookAtStructureID, string sLookAtBodyID)
310  {
311 
312  }
313 
314  public PositionRotationInfo GetPositionAndRotationFromD3DMatrix(double[,] aryTransform)
315  {
316  return null;
317  }
318 
319  public void CreateStandAloneSim(string sModuleName, string sExePath)
320  {
321 
322  }
323  }
324 
325 }