2 using System.Collections.Generic;
7 using Microsoft.VisualBasic;
17 delegate
void VoidHandler();
18 delegate
void ErrorHandler(
string strError);
19 delegate
void CreateSimHandler(ref
string strXml);
32 void FireNeedToStopSimulationEvent();
33 void FireHandleNonCriticalErrorEvent(
string strError);
34 void FireHandleCriticalErrorEvent(
string strError);
40 long CurrentMillisecond();
45 void SetProjectPath(
string strPath);
50 #region SimulationControl
52 bool AddWindow(IntPtr hParentWnd,
string sWindowType,
string sWindowXml);
53 void RemoveWindow(IntPtr hParentWnd);
54 void OnWindowGetFocus(
string sID);
55 void OnWindowLoseFocus(
string sID);
57 void CreateAndRunSimulation(
bool bPaused);
58 void CreateSimulation();
59 void CreateSimulation(
string sXml);
60 void Simulate(
bool bPaused);
61 void ShutdownSimulation();
62 bool StartSimulation();
63 bool PauseSimulation();
64 void StopSimulation();
66 void CreateStandAloneSim(
string sModuleName,
string sExePath);
68 string ErrorMessage();
70 void SaveSimulationFile(
string sFile);
71 void TrackCamera(
bool bTrackCamera,
string sLookAtStructureID,
string sLookAtBodyID);
77 string AddKeyFrame(
string strType,
long lStartMillisecond,
long lEndMillisecond);
78 void RemoveKeyFrame(
string strID);
79 string MoveKeyFrame(
string strID,
long lStartMillisecond,
long lEndMillisecond);
80 void EnableVideoPlayback(
string strID);
81 void DisableVideoPlayback();
82 void StartVideoPlayback();
83 void StopVideoPlayback();
84 void StepVideoPlayback(
int iFrameCount);
85 void MoveSimulationToKeyFrame(
string strID);
86 void SaveVideo(
string strPath);
92 void ReInitializeSimulation();
93 int RetrieveChartData(
string sChartKey, ref
float[,] aryTimeData, ref
float[,] aryData);
94 void GenerateCollisionMeshFile(
string sOriginalMeshFile,
string sCollisionMeshFile,
float fltScaleX,
float fltScaleY,
float fltScaleZ);
95 void ConvertV1MeshFile(
string sOriginalMeshFile,
string NewMeshFile,
string strTexture);
102 bool AddItem(
string sParentID,
string sItemType,
string sID,
string sXml,
bool bThrowError,
bool bDoNotInit);
103 bool RemoveItem(
string sParentID,
string sItemType,
string sID,
bool bThrowError);
104 bool SetData(
string sID,
string sDataType,
string sValue,
bool bThrowError);
105 bool FindItem(
string sID,
bool bThrowError);