#include <CoordinateCouplerConstraint.h>
Public Member Functions | |
CoordinateCouplerConstraint () | |
CoordinateCouplerConstraint (const CoordinateCouplerConstraint &aConstraint) | |
virtual | ~CoordinateCouplerConstraint () |
virtual Object * | copy () const |
Copy this Constraint and return a pointer to the copy. | |
CoordinateCouplerConstraint & | operator= (const CoordinateCouplerConstraint &aConstraint) |
Assignment operator. | |
void | copyData (const CoordinateCouplerConstraint &aConstraint) |
Copy data members from one Constraint 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::CoordinateCooupler which implements this constraint. | |
void | setIndependentCoordinateNames (const Array< std::string > &aCoordNames) |
const Array< std::string > & | getIndependentCoordinateNames () const |
void | setDependentCoordinateName (const std::string &aCoordName) |
const std::string & | getDependentCoordinateName () const |
Function & | getFunction () const |
virtual void | scale (const ScaleSet &aScaleSet) |
OPENSIM_DECLARE_DERIVED (CoordinateCouplerConstraint, Constraint) | |
Protected Attributes | |
PropertyObjPtr< Function > | _functionProp |
Constraint function of generalized coordinates (to be specified) used to evaluate the constraint errors and their derivatives, and must valid to at least 2nd order. | |
Function *& | _function |
PropertyStrArray | _independentCoordNamesProp |
List of names of the independent coordinates (restricted to 1 for now). | |
Array< std::string > & | _independentCoordNames |
PropertyStr | _dependentCoordNameProp |
Name of the dependent coordinate. | |
std::string & | _dependentCoordName |
PropertyDbl | _scaleFactorProp |
double & | _scaleFactor |
Friends | |
class | SimbodyEngine |
OpenSim::CoordinateCouplerConstraint::CoordinateCouplerConstraint | ( | ) |
OpenSim::CoordinateCouplerConstraint::CoordinateCouplerConstraint | ( | const CoordinateCouplerConstraint & | aConstraint | ) |
virtual OpenSim::CoordinateCouplerConstraint::~CoordinateCouplerConstraint | ( | ) | [virtual] |
virtual Object* OpenSim::CoordinateCouplerConstraint::copy | ( | ) | const [virtual] |
Copy this Constraint and return a pointer to the copy.
The copy constructor for this class is used.
Reimplemented from OpenSim::Constraint.
void OpenSim::CoordinateCouplerConstraint::copyData | ( | const CoordinateCouplerConstraint & | aConstraint | ) |
Copy data members from one Constraint to another.
aConstraint | Constraint to be copied. |
Reimplemented from OpenSim::Constraint.
void OpenSim::CoordinateCouplerConstraint::createSystem | ( | SimTK::MultibodySystem & | system | ) | const [virtual] |
Create a SimTK::Constraint::CoordinateCooupler which implements this constraint.
Reimplemented from OpenSim::ModelComponent.
const std::string& OpenSim::CoordinateCouplerConstraint::getDependentCoordinateName | ( | ) | const [inline] |
Function& OpenSim::CoordinateCouplerConstraint::getFunction | ( | ) | const [inline] |
const Array<std::string>& OpenSim::CoordinateCouplerConstraint::getIndependentCoordinateNames | ( | ) | const [inline] |
OpenSim::CoordinateCouplerConstraint::OPENSIM_DECLARE_DERIVED | ( | CoordinateCouplerConstraint | , | |
Constraint | ||||
) |
CoordinateCouplerConstraint& OpenSim::CoordinateCouplerConstraint::operator= | ( | const CoordinateCouplerConstraint & | aConstraint | ) |
virtual void OpenSim::CoordinateCouplerConstraint::scale | ( | const ScaleSet & | aScaleSet | ) | [virtual] |
Reimplemented from OpenSim::Constraint.
void OpenSim::CoordinateCouplerConstraint::setDependentCoordinateName | ( | const std::string & | aCoordName | ) | [inline] |
void OpenSim::CoordinateCouplerConstraint::setIndependentCoordinateNames | ( | const Array< std::string > & | aCoordNames | ) | [inline] |
virtual void OpenSim::CoordinateCouplerConstraint::setup | ( | Model & | aModel | ) | [virtual] |
Perform some set up functions that happen after the object has been deserialized or copied.
aModel | OpenSim model containing this Constraint. |
Reimplemented from OpenSim::Constraint.
friend class SimbodyEngine [friend] |
Reimplemented from OpenSim::Constraint.
std::string& OpenSim::CoordinateCouplerConstraint::_dependentCoordName [protected] |
Name of the dependent coordinate.
Function*& OpenSim::CoordinateCouplerConstraint::_function [protected] |
Constraint function of generalized coordinates (to be specified) used to evaluate the constraint errors and their derivatives, and must valid to at least 2nd order.
Constraint function must evaluate to zero when coordinates satisfy constraint
Array<std::string>& OpenSim::CoordinateCouplerConstraint::_independentCoordNames [protected] |
List of names of the independent coordinates (restricted to 1 for now).
double& OpenSim::CoordinateCouplerConstraint::_scaleFactor [protected] |