OpenSim::ContactGeometry Class Reference
This class represents the physical shape of an object for use in contact modeling.
More...
#include <ContactGeometry.h>
List of all members.
Detailed Description
This class represents the physical shape of an object for use in contact modeling.
It is an abstract class, with subclasses for particular geometric representations.
- Author:
- Peter Eastman
Constructor & Destructor Documentation
OpenSim::ContactGeometry::ContactGeometry |
( |
|
) |
[protected] |
Construct an empty ContactGeometry.
This constructor is protected, and is used by subclasses.
OpenSim::ContactGeometry::ContactGeometry |
( |
const SimTK::Vec3 & |
location, |
|
|
const SimTK::Vec3 & |
orientation, |
|
|
OpenSim::Body & |
body | |
|
) |
| | [protected] |
Construct a ContactGeometry.
This constructor is protected, and is used by subclasses.
- Parameters:
-
| location | the location of the geometry within the Body it is attached to |
| orientation | the orientation of the geometry within the Body it is attached to |
| body | the Body this geometry is attached to |
OpenSim::ContactGeometry::~ContactGeometry |
( |
|
) |
|
Member Function Documentation
virtual Object* OpenSim::ContactGeometry::copy |
( |
|
) |
const [pure virtual] |
virtual SimTK::ContactGeometry OpenSim::ContactGeometry::createSimTKContactGeometry |
( |
|
) |
[pure virtual] |
Body & OpenSim::ContactGeometry::getBody |
( |
|
) |
|
Get the Body this geometry is attached to.
const Body & OpenSim::ContactGeometry::getBody |
( |
|
) |
const |
Get the Body this geometry is attached to.
const std::string & OpenSim::ContactGeometry::getBodyName |
( |
|
) |
|
Get the name of the Body this geometry is attached to.
virtual const VisibleObject* OpenSim::ContactGeometry::getDisplayer |
( |
|
) |
const [inline, virtual] |
const Vec3 & OpenSim::ContactGeometry::getLocation |
( |
|
) |
const |
Get the location of the geometry within the Body it is attached to.
const Vec3 & OpenSim::ContactGeometry::getOrientation |
( |
|
) |
const |
Get the orientation of the geometry within the Body it is attached to.
SimTK::Transform OpenSim::ContactGeometry::getTransform |
( |
|
) |
|
Get a Transform representing the position and orientation of the geometry within the Body it is attached to.
void OpenSim::ContactGeometry::scale |
( |
const ScaleSet & |
aScaleSet |
) |
[virtual] |
Scale a ContactGeometry based on XYZ scale factors for the bodies.
- Parameters:
-
| aScaleSet | Set of XYZ scale factors for the bodies. |
Set the Body this geometry is attached to.
void OpenSim::ContactGeometry::setBodyName |
( |
const std::string & |
name |
) |
|
Set the name of the Body this geometry is attached to.
This will cause the Body to be set to NULL, then resolved when setup() is called.
void OpenSim::ContactGeometry::setLocation |
( |
const SimTK::Vec3 & |
location |
) |
|
Set the location of the geometry within the Body it is attached to.
void OpenSim::ContactGeometry::setOrientation |
( |
const SimTK::Vec3 & |
orientation |
) |
|
Set the orientation of the geometry within the Body it is attached to.
void OpenSim::ContactGeometry::setup |
( |
Model & |
aModel |
) |
|
Perform setup functions that happen after the object has been deserialized or copied.
- Parameters:
-
| aModel | OpenSim model containing this Joint. |
virtual void OpenSim::ContactGeometry::updateGeometry |
( |
|
) |
[inline, virtual] |
virtual VisibleObject* OpenSim::ContactGeometry::updDisplayer |
( |
|
) |
[inline, virtual] |
Member Data Documentation
The documentation for this class was generated from the following files:
- OpenSim/Simulation/Model/ContactGeometry.h
- OpenSim/Simulation/Model/ContactGeometry.cpp