AnimatLab  2
Test
IDataObjectInterface.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 {
16  delegate void PositionChangedHandler();
17  delegate void RotationChangedHandler();
18  delegate void SizeChangedHandler();
19  delegate void SelectionChangedHandler(bool bSelected, bool bSelectMultiple);
20  delegate void AddBodyClickedHandler(float fltPosX, float fltPosY, float fltPosZ, float fltNormX,
21  float fltNormY, float fltNormZ);
22  delegate void SelectedVertexChangedHandler(float fltPosX, float fltPosY, float fltPosZ);
23  public interface IDataObjectInterface
24  {
25 
26 #region Deletgates
27 
28 
29 #endregion
30 
31 #region Properties
32 
33  float get_Position(int iIndex);
34  void set_Position(int iIndex, float value);
35  float get_WorldPosition(int iIndex);
36  void set_WorldPosition(int iIndex, float value);
37  float get_Rotation(int iIndex);
38  void set_Rotation(int iIndex, float value);
39 
40 #endregion
41 
42 #region Methods
43 
44  bool SetData(string sDataType, string sValue, bool bThrowError);
45  void QueryProperties(System.Collections.ArrayList aryPropertyNames, System.Collections.ArrayList aryPropertyTypes, System.Collections.ArrayList aryDirections);
46  void SelectItem(bool bVal, bool bSelectMultiple);
47 
48  void GetDataPointer(string sData);
49  float GetDataValue(string sData);
50  float GetDataValueImmediate(string sData);
51 
52  float GetBoundingBoxValue(int iIndex);
53  void OrientNewPart(double dblXPos, double dblYPos, double dblZPos, double dblXNorm,
54  double dblYNorm, double dblZNorm);
55  bool CalculateLocalPosForWorldPos(double dblXWorldX, double dblWorldY, double dblWorldZ,
56  System.Collections.ArrayList aryLocalPos);
57 
58  void EnableCollisions(string strOtherBodyID);
59  void DisableCollisions(string strOtherBodyID);
60 
61  string GetLocalTransformMatrixString();
62 
63 #endregion
64 
65 #region Events
66 
67  // Event OnPositionChanged As PositionChangedHandler VBConversions Warning: events in interfaces not supported in C#.
68  // Event OnRotationChanged As RotationChangedHandler VBConversions Warning: events in interfaces not supported in C#.
69  // Event OnSizeChanged As SizeChangedHandler VBConversions Warning: events in interfaces not supported in C#.
70  // Event OnSelectionChanged As SelectionChangedHandler VBConversions Warning: events in interfaces not supported in C#.
71  // Event OnAddBodyClicked As AddBodyClickedHandler VBConversions Warning: events in interfaces not supported in C#.
72  // Event OnSelectedVertexChanged As SelectedVertexChangedHandler VBConversions Warning: events in interfaces not supported in C#.
73 
74  void FirePositionChangedEvent();
75  void FireRotationChangedEvent();
76  void FireSizeChangedEvent();
77  void FireSelectionChangedEvent(bool bSelected, bool bSelectMultiple);
78  void FireAddBodyClickedEvent(float fltPosX, float fltPosY, float fltPosZ, float fltNormX,
79  float fltNormY, float fltNormZ);
80  void FireSelectedVertexChangedEvent(float fltPosX, float fltPosY, float fltPosZ);
81 
82 #endregion
83 
84  }
85 
86 }