A class implementing an instance of muscle wrapping. More...
#include <PathWrap.h>
Public Types | |
enum | WrapMethod { hybrid, midpoint, axial } |
Public Member Functions | |
PathWrap () | |
Default constructor. | |
PathWrap (const PathWrap &aPathWrap) | |
Copy constructor. | |
virtual | ~PathWrap () |
Destructor. | |
virtual Object * | copy () const |
Copy this PathWrap and return a pointer to the copy. | |
PathWrap & | operator= (const PathWrap &aPathWrap) |
Assignment operator. | |
virtual void | setup (const Model &aModel, GeometryPath &aPath) |
Perform some set up functions that happen after the object has been deserialized or copied. | |
void | setStartPoint (const SimTK::State &s, int aIndex) |
void | setEndPoint (const SimTK::State &s, int aIndex) |
void | copyData (const PathWrap &aPathWrap) |
Copy data members from one PathWrap to another. | |
int | getStartPoint () const |
int | getEndPoint () const |
const std::string & | getWrapObjectName () const |
WrapObject * | getWrapObject () const |
void | setWrapObject (WrapObject &aWrapObject) |
PathWrapPoint & | getWrapPoint (int aIndex) |
WrapMethod | getMethod () const |
void | setMethod (WrapMethod aMethod) |
const std::string & | getMethodName () const |
GeometryPath * | getPath () const |
const WrapResult & | getPreviousWrap () const |
void | setPreviousWrap (const WrapResult &aWrapResult) |
void | resetPreviousWrap () |
Protected Member Functions | |
void | setupProperties () |
Connect properties to local pointers. | |
Protected Attributes | |
PropertyStr | _wrapObjectNameProp |
std::string & | _wrapObjectName |
PropertyStr | _methodNameProp |
std::string & | _methodName |
WrapMethod | _method |
PropertyIntArray | _rangeProp |
Array< int > & | _range |
WrapObject * | _wrapObject |
GeometryPath * | _path |
WrapResult | _previousWrap |
PathWrapPoint | _wrapPoints [2] |
A class implementing an instance of muscle wrapping.
That is, it is owned by a particular muscle, and contains parameters for wrapping that muscle over a particular wrap object.
PathWrap::PathWrap | ( | ) |
Default constructor.
PathWrap::PathWrap | ( | const PathWrap & | aPathWrap | ) |
Copy constructor.
aPathWrap | PathWrap to be copied. |
PathWrap::~PathWrap | ( | ) | [virtual] |
Destructor.
Object * PathWrap::copy | ( | ) | const [virtual] |
Copy this PathWrap and return a pointer to the copy.
The copy constructor for this class is used.
Reimplemented from OpenSim::Object.
void PathWrap::copyData | ( | const PathWrap & | aPathWrap | ) |
int OpenSim::PathWrap::getEndPoint | ( | ) | const [inline] |
WrapMethod OpenSim::PathWrap::getMethod | ( | ) | const [inline] |
const std::string& OpenSim::PathWrap::getMethodName | ( | ) | const [inline] |
GeometryPath* OpenSim::PathWrap::getPath | ( | ) | const [inline] |
const WrapResult& OpenSim::PathWrap::getPreviousWrap | ( | ) | const [inline] |
int OpenSim::PathWrap::getStartPoint | ( | ) | const [inline] |
WrapObject* OpenSim::PathWrap::getWrapObject | ( | ) | const [inline] |
const std::string& OpenSim::PathWrap::getWrapObjectName | ( | ) | const [inline] |
PathWrapPoint & PathWrap::getWrapPoint | ( | int | aIndex | ) |
void PathWrap::resetPreviousWrap | ( | ) |
void PathWrap::setEndPoint | ( | const SimTK::State & | s, | |
int | aIndex | |||
) |
void PathWrap::setMethod | ( | WrapMethod | aMethod | ) |
void PathWrap::setPreviousWrap | ( | const WrapResult & | aWrapResult | ) |
void PathWrap::setStartPoint | ( | const SimTK::State & | s, | |
int | aIndex | |||
) |
void PathWrap::setup | ( | const Model & | aModel, | |
GeometryPath & | aPath | |||
) | [virtual] |
Perform some set up functions that happen after the object has been deserialized or copied.
s | current state of system | |
aModel | pointer to the OpenSim model. |
void PathWrap::setupProperties | ( | void | ) | [protected] |
Connect properties to local pointers.
Reimplemented from OpenSim::Object.
void PathWrap::setWrapObject | ( | WrapObject & | aWrapObject | ) |
WrapMethod OpenSim::PathWrap::_method [protected] |
std::string& OpenSim::PathWrap::_methodName [protected] |
PropertyStr OpenSim::PathWrap::_methodNameProp [protected] |
GeometryPath* OpenSim::PathWrap::_path [protected] |
WrapResult OpenSim::PathWrap::_previousWrap [protected] |
Array<int>& OpenSim::PathWrap::_range [protected] |
PropertyIntArray OpenSim::PathWrap::_rangeProp [protected] |
WrapObject* OpenSim::PathWrap::_wrapObject [protected] |
std::string& OpenSim::PathWrap::_wrapObjectName [protected] |
PropertyStr OpenSim::PathWrap::_wrapObjectNameProp [protected] |
PathWrapPoint OpenSim::PathWrap::_wrapPoints[2] [protected] |