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/JointGroup.cpp | |
parent | adding ode source to /libraries (diff) | |
download | opensim-SC_OLD-79eca25c945a535a7a0325999034bae17da92412.zip opensim-SC_OLD-79eca25c945a535a7a0325999034bae17da92412.tar.gz opensim-SC_OLD-79eca25c945a535a7a0325999034bae17da92412.tar.bz2 opensim-SC_OLD-79eca25c945a535a7a0325999034bae17da92412.tar.xz |
resubmitting ode
Diffstat (limited to 'libraries/ode-0.9/contrib/DotNetManaged/JointGroup.cpp')
-rw-r--r-- | libraries/ode-0.9/contrib/DotNetManaged/JointGroup.cpp | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/libraries/ode-0.9/contrib/DotNetManaged/JointGroup.cpp b/libraries/ode-0.9/contrib/DotNetManaged/JointGroup.cpp new file mode 100644 index 0000000..925751f --- /dev/null +++ b/libraries/ode-0.9/contrib/DotNetManaged/JointGroup.cpp | |||
@@ -0,0 +1,53 @@ | |||
1 | #include "StdAfx.h" | ||
2 | |||
3 | #include <ode/ode.h> | ||
4 | #include "jointgroup.h" | ||
5 | |||
6 | namespace ODEManaged | ||
7 | { | ||
8 | |||
9 | //Constructors | ||
10 | |||
11 | JointGroup::JointGroup(void) | ||
12 | { | ||
13 | _id=0; | ||
14 | } | ||
15 | |||
16 | JointGroup::JointGroup (int maxSize) | ||
17 | { | ||
18 | _id = dJointGroupCreate(maxSize); | ||
19 | } | ||
20 | |||
21 | |||
22 | //Destructor | ||
23 | |||
24 | JointGroup::~JointGroup(void) | ||
25 | { | ||
26 | dJointGroupDestroy(this->_id); | ||
27 | } | ||
28 | |||
29 | |||
30 | //Methods | ||
31 | |||
32 | //ID | ||
33 | dJointGroupID JointGroup::Id() | ||
34 | { | ||
35 | return _id; | ||
36 | } | ||
37 | |||
38 | |||
39 | //Create | ||
40 | void JointGroup::Create (int maxSize) | ||
41 | { | ||
42 | if(_id) dJointGroupDestroy(_id); | ||
43 | _id = dJointGroupCreate(maxSize); | ||
44 | } | ||
45 | |||
46 | |||
47 | //Empty | ||
48 | void JointGroup::Empty (void) | ||
49 | { | ||
50 | dJointGroupEmpty(this->_id); | ||
51 | } | ||
52 | |||
53 | } | ||