aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/ode-0.9/contrib/DotNetManaged/JointSlider.h
diff options
context:
space:
mode:
authordan miller2007-10-19 05:20:07 +0000
committerdan miller2007-10-19 05:20:07 +0000
commitfca74b0bf0a0833f5701e9c0de7b3bc15b2233dd (patch)
tree51bcae7a1b8381a6bf6fd8025a7de1e30fe0045d /libraries/ode-0.9/contrib/DotNetManaged/JointSlider.h
parentresubmitting ode (diff)
downloadopensim-SC-fca74b0bf0a0833f5701e9c0de7b3bc15b2233dd.zip
opensim-SC-fca74b0bf0a0833f5701e9c0de7b3bc15b2233dd.tar.gz
opensim-SC-fca74b0bf0a0833f5701e9c0de7b3bc15b2233dd.tar.bz2
opensim-SC-fca74b0bf0a0833f5701e9c0de7b3bc15b2233dd.tar.xz
dont ask
Diffstat (limited to 'libraries/ode-0.9/contrib/DotNetManaged/JointSlider.h')
-rw-r--r--libraries/ode-0.9/contrib/DotNetManaged/JointSlider.h158
1 files changed, 0 insertions, 158 deletions
diff --git a/libraries/ode-0.9/contrib/DotNetManaged/JointSlider.h b/libraries/ode-0.9/contrib/DotNetManaged/JointSlider.h
deleted file mode 100644
index 7e96e59..0000000
--- a/libraries/ode-0.9/contrib/DotNetManaged/JointSlider.h
+++ /dev/null
@@ -1,158 +0,0 @@
1#pragma once
2
3#include "Joint.h"
4#include "CommonMgd.h"
5
6namespace ODEManaged
7{
8 __gc public class JointSlider : public Joint
9 {
10 public:
11
12
13 //Constructors
14
15 JointSlider(void);
16 JointSlider(World &world);
17 JointSlider(World &world, JointGroup &jointGroup);
18
19
20 //Destructors
21
22 virtual ~JointSlider(void);
23
24
25 //Methods
26
27 //Overloaded Create
28 void Create(World &world, JointGroup &jointGroup);
29 void Create(World &world);
30
31 //Overloaded Attach
32 void Attach(Body &body1, Body &body2);
33 void Attach(Body &body1);
34
35 void SetAxis(double x, double y, double z);
36 Vector3 GetAxis(void);
37
38 void SetAllMovParams(double LoStop, double HiStop,
39 double Velocity, double MaxForce,
40 double FudgeFactor, double Bounce,
41 double StopERP, double StopCFM);
42
43
44 //Properties
45
46 //LoStop
47 __property double get_LoStop(void)
48 {
49 return dJointGetSliderParam(this->_id, dParamLoStop);
50 }
51
52 __property void set_LoStop(double value)
53 {
54 if (value <=0)
55 dJointSetSliderParam(this->_id, dParamLoStop, value);
56 }
57
58
59 //HiStop
60 __property double get_HiStop(void)
61 {
62 return dJointGetSliderParam(this->_id, dParamHiStop);
63 }
64
65 __property void set_HiStop(double value)
66 {
67 if (value >= 0)
68 dJointSetSliderParam(this->_id, dParamHiStop, value);
69 }
70
71
72 //Velocity
73 __property double get_Velocity(void)
74 {
75 return dJointGetSliderParam(this->_id, dParamVel);
76 }
77
78 __property void set_Velocity(double value)
79 {
80 dJointSetSliderParam(this->_id, dParamVel, value);
81 }
82
83
84 //MaxForce
85 __property double get_MaxForce(void)
86 {
87 return dJointGetSliderParam(this->_id, dParamFMax);
88 }
89
90 __property void set_MaxForce(double value)
91 {
92 dJointSetSliderParam(this->_id, dParamFMax, value);
93 }
94
95
96 //FudgeFactor
97 __property double get_FudgeFactor(void)
98 {
99 return dJointGetSliderParam(this->_id, dParamFudgeFactor);
100 }
101
102 __property void set_FudgeFactor(double value)
103 {
104 dJointSetSliderParam(this->_id, dParamFudgeFactor, value);
105 }
106
107
108 //Bounce
109 __property double get_Bounce(void)
110 {
111 return dJointGetSliderParam(this->_id, dParamBounce);
112 }
113
114 __property void set_Bounce(double value)
115 {
116 dJointSetSliderParam(this->_id, dParamBounce, value);
117 }
118
119
120 //StopERP
121 __property double get_StopERP(void)
122 {
123 return dJointGetSliderParam(this->_id, dParamStopERP);
124 }
125
126 __property void set_StopERP(double value)
127 {
128 dJointSetSliderParam(this->_id, dParamStopERP, value);
129 }
130
131
132 //StopCFM
133 __property double get_StopCFM(void)
134 {
135 return dJointGetSliderParam(this->_id, dParamStopCFM);
136 }
137
138 __property void set_StopCFM(double value)
139 {
140 dJointSetSliderParam(this->_id, dParamStopCFM, value);
141 }
142
143
144 //GetAngle
145 __property double get_Position(void)
146 {
147 return dJointGetSliderPosition(this->_id);
148 }
149
150
151 //GetAngleRate
152 __property double get_PositionRate(void)
153 {
154 return dJointGetSliderPositionRate(this->_id);
155 }
156
157 };
158}