Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/ode/ode-0.9/contrib/DotNetManaged/Geom.h @ 216

Last change on this file since 216 was 216, checked in by mathiask, 16 years ago

[Physik] add ode-0.9

File size: 1.3 KB
Line 
1#pragma once
2
3#include "Body.h"
4#include "Space.h"
5#include "CommonMgd.h"
6
7namespace 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}
Note: See TracBrowser for help on using the repository browser.