2 using System.Collections.Generic;
7 using Microsoft.VisualBasic;
19 public bool AddItem(
string sParentID,
string sItemType,
string sID,
string sXml,
bool bThrowError,
bool bDoNotInit)
24 public string AddKeyFrame(
string strType,
long lStartMillisecond,
long lEndMillisecond)
29 public bool AddWindow(
System.IntPtr hParentWnd,
string sWindowType,
string sWindowXml)
34 public void CreateAndRunSimulation(
bool bPaused)
39 public void CreateSimulation()
44 public void CreateSimulation(
string sXml)
49 public long CurrentMillisecond()
54 public void DisableVideoPlayback()
59 public void EnableVideoPlayback(
string strID)
64 public string ErrorMessage()
69 public bool FindItem(
string sID,
bool bThrowError)
74 public void FireHandleCriticalErrorEvent(
string strError)
79 public void FireHandleNonCriticalErrorEvent(
string strError)
84 public void FireNeedToStopSimulationEvent()
89 public void ConvertV1MeshFile(
string sOriginalMeshFile,
string NewMeshFile,
string strTexture)
94 public void GenerateCollisionMeshFile(
string sOriginalMeshFile,
string sCollisionMeshFile,
float fltScaleX,
float fltScaleY,
float fltScaleZ)
99 public delegate
void HandleCriticalErrorEventHandler(
string strError);
100 private HandleCriticalErrorEventHandler HandleCriticalErrorEvent;
102 public event HandleCriticalErrorEventHandler HandleCriticalError
106 HandleCriticalErrorEvent = (HandleCriticalErrorEventHandler)
System.Delegate.Combine(HandleCriticalErrorEvent, value);
110 HandleCriticalErrorEvent = (HandleCriticalErrorEventHandler)
System.Delegate.Remove(HandleCriticalErrorEvent, value);
115 public delegate
void HandleNonCriticalErrorEventHandler(
string strError);
116 private HandleNonCriticalErrorEventHandler HandleNonCriticalErrorEvent;
118 public event HandleNonCriticalErrorEventHandler HandleNonCriticalError
122 HandleNonCriticalErrorEvent = (HandleNonCriticalErrorEventHandler)
System.Delegate.Combine(HandleNonCriticalErrorEvent, value);
126 HandleNonCriticalErrorEvent = (HandleNonCriticalErrorEventHandler)
System.Delegate.Remove(HandleNonCriticalErrorEvent, value);
136 public string MoveKeyFrame(
string strID,
long lStartMillisecond,
long lEndMillisecond)
141 public void MoveSimulationToKeyFrame(
string strID)
146 public delegate
void NeedToStopSimulationEventHandler();
147 private NeedToStopSimulationEventHandler NeedToStopSimulationEvent;
149 public event NeedToStopSimulationEventHandler NeedToStopSimulation
153 NeedToStopSimulationEvent = (NeedToStopSimulationEventHandler)
System.Delegate.Combine(NeedToStopSimulationEvent, value);
157 NeedToStopSimulationEvent = (NeedToStopSimulationEventHandler)
System.Delegate.Remove(NeedToStopSimulationEvent, value);
162 public delegate
void OnSimulationCreateEventHandler(ref
string strXml);
163 private OnSimulationCreateEventHandler OnSimulationCreateEvent;
165 public event OnSimulationCreateEventHandler OnSimulationCreate
169 OnSimulationCreateEvent = (OnSimulationCreateEventHandler)
System.Delegate.Combine(OnSimulationCreateEvent, value);
173 OnSimulationCreateEvent = (OnSimulationCreateEventHandler)
System.Delegate.Remove(OnSimulationCreateEvent, value);
178 public void OnWindowGetFocus(
string sID)
183 public void OnWindowLoseFocus(
string sID)
193 public bool PauseSimulation()
198 public void ReInitializeSimulation()
203 public bool RemoveItem(
string sParentID,
string sItemType,
string sID,
bool bThrowError)
208 public void RemoveKeyFrame(
string strID)
213 public void RemoveWindow(
System.IntPtr hParentWnd)
218 public int RetrieveChartData(
string sChartKey, ref
float[,] aryTimeData, ref
float[,] aryData)
223 public void SaveSimulationFile(
string sFile)
228 public void SaveVideo(
string strPath)
233 public bool SetData(
string sID,
string sDataType,
string sValue,
bool bThrowError)
238 public void SetLogger(
ILogger lpLog)
243 public void SetProjectPath(
string strPath)
248 public void ShutdownSimulation()
253 public bool SimOpen()
258 public bool SimRunning()
263 public void Simulate(
bool bPaused)
268 public delegate
void SimulationRunningEventHandler();
269 private SimulationRunningEventHandler SimulationRunningEvent;
271 public event SimulationRunningEventHandler SimulationRunning
275 SimulationRunningEvent = (SimulationRunningEventHandler)
System.Delegate.Combine(SimulationRunningEvent, value);
279 SimulationRunningEvent = (SimulationRunningEventHandler)
System.Delegate.Remove(SimulationRunningEvent, value);
284 public bool StartSimulation()
289 public void StartVideoPlayback()
294 public void StepVideoPlayback(
int iFrameCount)
299 public void StopSimulation()
304 public void StopVideoPlayback()
309 public void TrackCamera(
bool bTrackCamera,
string sLookAtStructureID,
string sLookAtBodyID)
319 public void CreateStandAloneSim(
string sModuleName,
string sExePath)