16 #ifndef SURGSIM_PHYSICS_CONSTRAINTIMPLEMENTATION_H 17 #define SURGSIM_PHYSICS_CONSTRAINTIMPLEMENTATION_H 72 const std::shared_ptr<Localization>& localization,
74 size_t indexOfRepresentation,
75 size_t indexOfConstraint,
80 Eigen::SparseVector<double, Eigen::RowMajor, ptrdiff_t>
m_newH;
98 const std::shared_ptr<Localization>& localization,
100 size_t indexOfRepresentation,
101 size_t indexOfConstraint,
110 #endif // SURGSIM_PHYSICS_CONSTRAINTIMPLEMENTATION_H
Definition: CompoundShapeToGraphics.cpp:29
virtual size_t doGetNumDof() const =0
Does get number of degree of freedom.
A description of a physical mixed LCP system to be solved.
Definition: MlcpPhysicsProblem.h:43
static ConstraintImplementationFactory & getFactory()
Definition: ConstraintImplementation.cpp:34
ConstraintImplementation()
Constructor.
Definition: ConstraintImplementation.cpp:26
Base class for all CosntraintData Derived classes should be specific to a given constraint.
Definition: ConstraintData.h:27
void build(double dt, const ConstraintData &data, const std::shared_ptr< Localization > &localization, MlcpPhysicsProblem *mlcp, size_t indexOfRepresentation, size_t indexOfConstraint, ConstraintSideSign sign)
Builds the subset of an Mlcp physics problem associated to this implementation.
Definition: ConstraintImplementation.cpp:45
Definition: ConstraintImplementation.h:39
virtual SurgSim::Physics::ConstraintType getConstraintType() const =0
Gets the constraint type for this ConstraintImplementation.
virtual void doBuild(double dt, const ConstraintData &data, const std::shared_ptr< Localization > &localization, MlcpPhysicsProblem *mlcp, size_t indexOfRepresentation, size_t indexOfConstraint, ConstraintSideSign sign)=0
Builds the subset of an Mlcp physics problem associated to this implementation.
Base class for all constraint implementations. A ConstraintImplementation defines 1 side of a constra...
Definition: ConstraintImplementation.h:42
Eigen::SparseVector< double, Eigen::RowMajor, ptrdiff_t > m_newH
Preallocated variable for derived implementations of doBuild.
Definition: ConstraintImplementation.h:80
size_t getNumDof() const
Gets the number of degree of freedom for this implementation.
Definition: ConstraintImplementation.cpp:40
Definition: ConstraintImplementation.h:39
This class manages ConstraintImplementations, and can be used to look up the correct implementation b...
Definition: ConstraintImplementationFactory.h:38
ConstraintSideSign
Enum defining on which side of the constraint an implementation is (positive or negative side) ...
Definition: ConstraintImplementation.h:39
virtual ~ConstraintImplementation()
Destructor.
Definition: ConstraintImplementation.cpp:30
ConstraintType
Definition: ConstraintType.h:24