OpenSim::PointConstraint Class Reference

A class implementing a Point Constraint. More...

#include <PointConstraint.h>

Inheritance diagram for OpenSim::PointConstraint:
OpenSim::Constraint OpenSim::ModelComponent OpenSim::Object

List of all members.

Public Member Functions

 PointConstraint ()
 Default constructor.
 PointConstraint (const PointConstraint &aConstraint)
 Copy constructor.
virtual ~PointConstraint ()
 Destructor.
virtual Objectcopy () const
 Copy this body and return a pointer to the copy.
PointConstraintoperator= (const PointConstraint &aConstraint)
 Assignment operator.
void copyData (const PointConstraint &aConstraint)
 Copy data members from one PointConstraint to another.
void setBody1ByName (std::string aBodyName)
 Following methods set attributes of the point constraint.
void setBody1PointLocation (SimTK::Vec3 location)
void setBody2ByName (std::string aBodyName)
void setBody2PointLocation (SimTK::Vec3 location)
virtual void setContactPointForInducedAccelerations (const SimTK::State &s, SimTK::Vec3 point)
 Method to set point location of contact during an induced acceleration analysis.

Protected Member Functions

virtual void setup (Model &aModel)
 Perform some set up functions that happen after the object has been deserialized or copied.
virtual void createSystem (SimTK::MultibodySystem &system) const
 Create a SimTK::Constraint::Ball which implements this Point constraint.

Protected Attributes

PropertyStr _body1NameProp
 Specify first of two bodies connected together by the constraint.
std::string & _body1Name
PropertyStr _body2NameProp
 Specify second of two bodies connected by the constraint.
std::string & _body2Name
PropertyDblVec3 _locationInBody1Prop
 Location of the point in first body specified in body1 reference frame.
SimTK::Vec3 & _locationInBody1
PropertyDblVec3 _locationInBody2Prop
 Location of the point in second body specified in body2 reference frame.
SimTK::Vec3 & _locationInBody2
Body_body1
 First body point constraint joins.
Body_body2
 Second body point constraint joins.

Detailed Description

A class implementing a Point Constraint.

The underlying Constraint in Simbody is a Constraint::Point

Author:
Ajay Seth
Version:
1.0

Constructor & Destructor Documentation

PointConstraint::PointConstraint (  ) 

Default constructor.

PointConstraint::PointConstraint ( const PointConstraint aConstraint  ) 

Copy constructor.

Parameters:
aConstraint PointConstraint to be copied.
PointConstraint::~PointConstraint (  )  [virtual]

Destructor.


Member Function Documentation

Object * PointConstraint::copy (  )  const [virtual]

Copy this body and return a pointer to the copy.

The copy constructor for this class is used.

Returns:
Pointer to a copy of this OpenSim::Body.

Implements OpenSim::Constraint.

void PointConstraint::copyData ( const PointConstraint aConstraint  ) 

Copy data members from one PointConstraint to another.

Parameters:
aConstraint PointConstraint to be copied.

Reimplemented from OpenSim::Constraint.

void PointConstraint::createSystem ( SimTK::MultibodySystem &  system  )  const [protected, virtual]

Create a SimTK::Constraint::Ball which implements this Point constraint.

Reimplemented from OpenSim::ModelComponent.

PointConstraint & PointConstraint::operator= ( const PointConstraint aConstraint  ) 

Assignment operator.

Returns:
Reference to this object.

Reimplemented from OpenSim::Constraint.

void PointConstraint::setBody1ByName ( std::string  aBodyName  ) 

Following methods set attributes of the point constraint.

void OpenSim::PointConstraint::setBody1PointLocation ( SimTK::Vec3  location  ) 
void PointConstraint::setBody2ByName ( std::string  aBodyName  ) 
void OpenSim::PointConstraint::setBody2PointLocation ( SimTK::Vec3  location  ) 
virtual void OpenSim::PointConstraint::setContactPointForInducedAccelerations ( const SimTK::State &  s,
SimTK::Vec3  point 
) [virtual]

Method to set point location of contact during an induced acceleration analysis.

Reimplemented from OpenSim::Constraint.

void PointConstraint::setup ( Model aModel  )  [protected, virtual]

Perform some set up functions that happen after the object has been deserialized or copied.

Parameters:
aModel OpenSim model containing this PointConstraint.

Reimplemented from OpenSim::Constraint.


Member Data Documentation

First body point constraint joins.

std::string& OpenSim::PointConstraint::_body1Name [protected]

Specify first of two bodies connected together by the constraint.

Second body point constraint joins.

std::string& OpenSim::PointConstraint::_body2Name [protected]

Specify second of two bodies connected by the constraint.

Location of the point in first body specified in body1 reference frame.

Location of the point in second body specified in body2 reference frame.


The documentation for this class was generated from the following files:

Generated on Sun Sep 25 00:20:02 2011 for OpenSim by  doxygen 1.6.1