1 #ifndef SimTK_SIMBODY_BODY_H_
2 #define SimTK_SIMBODY_BODY_H_
40 class DecorativeGeometry;
101 int getNumDecorations()
const;
120 int addContactSurface(
const Transform& X_BS,
130 int getNumContactSurfaces()
const;
136 const Transform& getContactSurfaceTransform(
int i)
const;
144 Transform& updContactSurfaceTransform(
int i);
154 bool isOwnerHandle()
const;
155 bool isEmptyHandle()
const;
159 explicit Body(
class BodyRep* r) : rep(r) { }
161 const BodyRep&
getRep()
const {assert(rep);
return *rep;}
162 BodyRep&
updRep()
const {assert(rep);
return *rep;}
163 void setRep(BodyRep& r) {assert(!rep); rep = &r;}
194 const RigidRep& getRep()
const;
220 const LinearRep& getRep()
const;
235 explicit Particle(
const Real& mass);
237 Particle& setDefaultRigidBodyMassProperties(
const MassProperties& m) {
245 ParticleRep& updRep();
246 const ParticleRep& getRep()
const;
264 MasslessRep& updRep();
265 const MasslessRep& getRep()
const;
283 const GroundRep& getRep()
const;
288 #endif // SimTK_SIMBODY_BODY_H_