A class implementing a Point On Line Constraint. More...
#include <PointOnLineConstraint.h>
Public Member Functions | |
PointOnLineConstraint () | |
Default constructor. | |
PointOnLineConstraint (const PointOnLineConstraint &aConstraint) | |
Copy constructor. | |
PointOnLineConstraint (OpenSim::Body &lineBody, SimTK::Vec3 lineDirection, SimTK::Vec3 pointOnLine, OpenSim::Body &followerBody, SimTK::Vec3 followerPoint) | |
virtual | ~PointOnLineConstraint () |
Destructor. | |
virtual Object * | copy () const |
Copy this body and return a pointer to the copy. | |
PointOnLineConstraint & | operator= (const PointOnLineConstraint &aConstraint) |
Assignment operator. | |
void | copyData (const PointOnLineConstraint &aConstraint) |
Copy data members from one PointOnLineConstraint to another. | |
virtual void | setup (Model &aModel) |
Perform some set up functions that happen after the object has been deserialized or copied. | |
void | createSystem (SimTK::MultibodySystem &system) const |
Create a SimTK::Constraint::PointOnLine which implements this constraint. | |
void | setLineBodyByName (std::string aBodyName) |
Following methods set attributes of the point on line constraint. | |
void | setFollowerBodyByName (std::string aBodyName) |
void | setLineDirection (SimTK::Vec3 direction) |
void | setPointOnLine (SimTK::Vec3 point) |
void | setPointOnFollower (SimTK::Vec3 point) |
Protected Attributes | |
PropertyStr | _lineBodyNameProp |
Specify the body on which the line is defined. | |
std::string & | _lineBodyName |
PropertyDblVec3 | _lineDirectionProp |
Direction of the line in line body specified in the line body frame. | |
SimTK::Vec3 & | _lineDirection |
PropertyDblVec3 | _pointOnLineProp |
Specify the default point on the line in the line body frame. | |
SimTK::Vec3 & | _pointOnLine |
PropertyStr | _followerBodyNameProp |
Specify the follower body constrained to the line. | |
std::string & | _followerBodyName |
PropertyDblVec3 | _pointOnFollowerProp |
Specify the point on the follower bocy constrained to the line in the follower body reference frame. | |
SimTK::Vec3 & | _pointOnFollower |
Body * | _lineBody |
Line body. | |
Body * | _followerBody |
Follower body. | |
Friends | |
class | SimbodyEngine |
A class implementing a Point On Line Constraint.
The underlying Constraint in Simbody is a Constraint::PointOnLine
PointOnLineConstraint::PointOnLineConstraint | ( | ) |
Default constructor.
PointOnLineConstraint::PointOnLineConstraint | ( | const PointOnLineConstraint & | aConstraint | ) |
Copy constructor.
aConstraint | PointOnLineConstraint to be copied. |
OpenSim::PointOnLineConstraint::PointOnLineConstraint | ( | OpenSim::Body & | lineBody, | |
SimTK::Vec3 | lineDirection, | |||
SimTK::Vec3 | pointOnLine, | |||
OpenSim::Body & | followerBody, | |||
SimTK::Vec3 | followerPoint | |||
) |
PointOnLineConstraint::~PointOnLineConstraint | ( | ) | [virtual] |
Destructor.
Object * PointOnLineConstraint::copy | ( | ) | const [virtual] |
Copy this body and return a pointer to the copy.
The copy constructor for this class is used.
Reimplemented from OpenSim::Constraint.
void PointOnLineConstraint::copyData | ( | const PointOnLineConstraint & | aConstraint | ) |
Copy data members from one PointOnLineConstraint to another.
aConstraint | PointOnLineConstraint to be copied. |
Reimplemented from OpenSim::Constraint.
void PointOnLineConstraint::createSystem | ( | SimTK::MultibodySystem & | system | ) | const [virtual] |
Create a SimTK::Constraint::PointOnLine which implements this constraint.
Reimplemented from OpenSim::ModelComponent.
PointOnLineConstraint & PointOnLineConstraint::operator= | ( | const PointOnLineConstraint & | aConstraint | ) |
void PointOnLineConstraint::setFollowerBodyByName | ( | std::string | aBodyName | ) |
void PointOnLineConstraint::setLineBodyByName | ( | std::string | aBodyName | ) |
Following methods set attributes of the point on line constraint.
void OpenSim::PointOnLineConstraint::setLineDirection | ( | SimTK::Vec3 | direction | ) |
void OpenSim::PointOnLineConstraint::setPointOnFollower | ( | SimTK::Vec3 | point | ) |
void OpenSim::PointOnLineConstraint::setPointOnLine | ( | SimTK::Vec3 | point | ) |
void PointOnLineConstraint::setup | ( | Model & | aModel | ) | [virtual] |
Perform some set up functions that happen after the object has been deserialized or copied.
aModel | OpenSim model containing this PointOnLineConstraint. |
Reimplemented from OpenSim::Constraint.
friend class SimbodyEngine [friend] |
Reimplemented from OpenSim::Constraint.
Body* OpenSim::PointOnLineConstraint::_followerBody [protected] |
Follower body.
std::string& OpenSim::PointOnLineConstraint::_followerBodyName [protected] |
Specify the follower body constrained to the line.
Body* OpenSim::PointOnLineConstraint::_lineBody [protected] |
Line body.
std::string& OpenSim::PointOnLineConstraint::_lineBodyName [protected] |
Specify the body on which the line is defined.
SimTK::Vec3& OpenSim::PointOnLineConstraint::_lineDirection [protected] |
Direction of the line in line body specified in the line body frame.
SimTK::Vec3& OpenSim::PointOnLineConstraint::_pointOnFollower [protected] |
Specify the point on the follower bocy constrained to the line in the follower body reference frame.
SimTK::Vec3& OpenSim::PointOnLineConstraint::_pointOnLine [protected] |
Specify the default point on the line in the line body frame.