2 using System.Collections.Generic;
7 using Microsoft.VisualBasic;
24 public bool CalculateLocalPosForWorldPos(
double dblXWorldX,
double dblWorldY,
double dblWorldZ,
System.Collections.ArrayList aryLocalPos)
29 public void FireAddBodyClickedEvent(
float fltPosX,
float fltPosY,
float fltPosZ,
float fltNormX,
float fltNormY,
float fltNormZ)
34 public void FirePositionChangedEvent()
39 public void FireRotationChangedEvent()
44 public void FireSizeChangedEvent()
49 public void FireSelectedVertexChangedEvent(
float fltPosX,
float fltPosY,
float fltPosZ)
54 public void FireSelectionChangedEvent(
bool bSelected,
bool bSelectMultiple)
59 public float GetBoundingBoxValue(
int iIndex)
64 public void GetDataPointer(
string sData)
69 public float GetDataValue(
string sData)
74 public float GetDataValueImmediate(
string sData)
77 if (sData.ToUpper() ==
"TIMESTEP")
81 else if (sData.ToUpper() ==
"PHYSICSTIMESTEP")
91 public delegate
void OnAddBodyClickedEventHandler(
float fltPosX,
float fltPosY,
float fltPosZ,
float fltNormX,
float fltNormY,
float fltNormZ);
92 private OnAddBodyClickedEventHandler OnAddBodyClickedEvent;
94 public event OnAddBodyClickedEventHandler OnAddBodyClicked
98 OnAddBodyClickedEvent = (OnAddBodyClickedEventHandler)
System.Delegate.Combine(OnAddBodyClickedEvent, value);
102 OnAddBodyClickedEvent = (OnAddBodyClickedEventHandler)
System.Delegate.Remove(OnAddBodyClickedEvent, value);
107 public delegate
void OnPositionChangedEventHandler();
108 private OnPositionChangedEventHandler OnPositionChangedEvent;
110 public event OnPositionChangedEventHandler OnPositionChanged
114 OnPositionChangedEvent = (OnPositionChangedEventHandler)
System.Delegate.Combine(OnPositionChangedEvent, value);
118 OnPositionChangedEvent = (OnPositionChangedEventHandler)
System.Delegate.Remove(OnPositionChangedEvent, value);
123 public delegate
void OnRotationChangedEventHandler();
124 private OnRotationChangedEventHandler OnRotationChangedEvent;
126 public event OnRotationChangedEventHandler OnRotationChanged
130 OnRotationChangedEvent = (OnRotationChangedEventHandler)
System.Delegate.Combine(OnRotationChangedEvent, value);
134 OnRotationChangedEvent = (OnRotationChangedEventHandler)
System.Delegate.Remove(OnRotationChangedEvent, value);
139 public delegate
void OnSizeChangedEventHandler();
140 private OnSizeChangedEventHandler OnSizeChangedEvent;
142 public event OnSizeChangedEventHandler OnSizeChanged
146 OnSizeChangedEvent = (OnSizeChangedEventHandler)
System.Delegate.Combine(OnSizeChangedEvent, value);
150 OnSizeChangedEvent = (OnSizeChangedEventHandler)
System.Delegate.Remove(OnSizeChangedEvent, value);
155 public delegate
void OnSelectedVertexChangedEventHandler(
float fltPosX,
float fltPosY,
float fltPosZ);
156 private OnSelectedVertexChangedEventHandler OnSelectedVertexChangedEvent;
158 public event OnSelectedVertexChangedEventHandler OnSelectedVertexChanged
162 OnSelectedVertexChangedEvent = (OnSelectedVertexChangedEventHandler)
System.Delegate.Combine(OnSelectedVertexChangedEvent, value);
166 OnSelectedVertexChangedEvent = (OnSelectedVertexChangedEventHandler)
System.Delegate.Remove(OnSelectedVertexChangedEvent, value);
171 public delegate
void OnSelectionChangedEventHandler(
bool bSelected,
bool bSelectMultiple);
172 private OnSelectionChangedEventHandler OnSelectionChangedEvent;
174 public event OnSelectionChangedEventHandler OnSelectionChanged
178 OnSelectionChangedEvent = (OnSelectionChangedEventHandler)
System.Delegate.Combine(OnSelectionChangedEvent, value);
182 OnSelectionChangedEvent = (OnSelectionChangedEventHandler)
System.Delegate.Remove(OnSelectionChangedEvent, value);
187 public void OrientNewPart(
double dblXPos,
double dblYPos,
double dblZPos,
double dblXNorm,
double dblYNorm,
double dblZNorm)
192 public float get_Position(
int iIndex)
196 public void set_Position(
int iIndex,
float value)
201 public float get_Rotation(
int iIndex)
205 public void set_Rotation(
int iIndex,
float value)
210 public void SelectItem(
bool bVal,
bool bSelectMultiple)
215 public bool SetData(
string sDataType,
string sValue,
bool bThrowError)
220 public void QueryProperties(
System.Collections.ArrayList aryPropertyNames,
System.Collections.ArrayList aryPropertyTypes,
System.Collections.ArrayList aryDirections)
225 public float get_WorldPosition(
int iIndex)
229 public void set_WorldPosition(
int iIndex,
float value)
234 public void EnableCollisions(
string strOtherBodyID)
239 public void DisableCollisions(
string strOtherBodyID)
244 public string GetLocalTransformMatrixString()