diff options
author | dan miller | 2007-10-19 05:15:33 +0000 |
---|---|---|
committer | dan miller | 2007-10-19 05:15:33 +0000 |
commit | 79eca25c945a535a7a0325999034bae17da92412 (patch) | |
tree | 40ff433d94859d629aac933d5ec73b382f62ba1a /libraries/ode-0.9/contrib/DotNetManaged/Geom.h | |
parent | adding ode source to /libraries (diff) | |
download | opensim-SC-79eca25c945a535a7a0325999034bae17da92412.zip opensim-SC-79eca25c945a535a7a0325999034bae17da92412.tar.gz opensim-SC-79eca25c945a535a7a0325999034bae17da92412.tar.bz2 opensim-SC-79eca25c945a535a7a0325999034bae17da92412.tar.xz |
resubmitting ode
Diffstat (limited to 'libraries/ode-0.9/contrib/DotNetManaged/Geom.h')
-rw-r--r-- | libraries/ode-0.9/contrib/DotNetManaged/Geom.h | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/libraries/ode-0.9/contrib/DotNetManaged/Geom.h b/libraries/ode-0.9/contrib/DotNetManaged/Geom.h new file mode 100644 index 0000000..83a6faf --- /dev/null +++ b/libraries/ode-0.9/contrib/DotNetManaged/Geom.h | |||
@@ -0,0 +1,75 @@ | |||
1 | #pragma once | ||
2 | |||
3 | #include "Body.h" | ||
4 | #include "Space.h" | ||
5 | #include "CommonMgd.h" | ||
6 | |||
7 | namespace ODEManaged | ||
8 | { | ||
9 | __gc public class Geom | ||
10 | { | ||
11 | public: | ||
12 | |||
13 | |||
14 | //Constructor | ||
15 | |||
16 | Geom (void); | ||
17 | |||
18 | |||
19 | //Destructor | ||
20 | |||
21 | ~Geom (void); | ||
22 | |||
23 | |||
24 | //Methods | ||
25 | |||
26 | //Basic Stuff | ||
27 | |||
28 | dGeomID Id (void); | ||
29 | dBodyID GetBody (void); | ||
30 | |||
31 | //Overloaded SetBody | ||
32 | void SetBody (Body &body); | ||
33 | /*void SetBody (dBodyID b);*/ | ||
34 | |||
35 | Vector3 GetPosition (void); | ||
36 | void SetPosition (double x, double y, double z); | ||
37 | |||
38 | Matrix3 GetRotation (void); | ||
39 | void SetRotation (Matrix3 rotation); | ||
40 | |||
41 | void SetData (void *data); | ||
42 | void *GetData (void); | ||
43 | |||
44 | |||
45 | //Create Objects | ||
46 | |||
47 | void CreateSphere (Space &space, double radius); | ||
48 | void CreateBox (Space &space, double lx, double ly, double lz); | ||
49 | void CreatePlane (Space &space, double a, double b, double c, double d); | ||
50 | void CreateCCylinder (Space &space, double radius, double length); | ||
51 | |||
52 | |||
53 | //Destroy Objects | ||
54 | |||
55 | void Destroy (void); | ||
56 | |||
57 | |||
58 | //Get Object's Parameters | ||
59 | |||
60 | double SphereGetRadius (void); | ||
61 | Vector3 BoxGetLengths (void); | ||
62 | Vector4 PlaneGetParams (void); | ||
63 | void CCylinderGetParams (double *radius, double *length); | ||
64 | int GetClass (void); | ||
65 | |||
66 | |||
67 | //Properties | ||
68 | |||
69 | private: | ||
70 | |||
71 | dGeomID _id; | ||
72 | |||
73 | }; | ||
74 | |||
75 | } | ||