Marine systems simulation
TrawlCableInterface.h
1
9#ifndef CONSTRAINTCABLE_INTERFACE_H
10#define CONSTRAINTCABLE_INTERFACE_H
11
12#include "JointConstraint.h"
13#include "CollisionManager.h"
14
15namespace CoRiBoDynamics{
16
18public:
19 ConstraintCableInterface(ConstraintSolver* solver, CollisionManager* collisionManager, int finalElement, double frequencyCoefficient, double Gamma, double elementLength);
20
21 virtual void ComputeConstraints(const double T, const double * const X);
22
23 double GetTimeConstant();
24 ConstraintSolver* GetConstraintSolver();
25 CollisionManager* GetCollisionManager();
26 size_t ConnectElement(int index, const vec3& vector, const Quat& orientation);
27 void SetConnectedUnit(int index, double strength);
28
29protected:
30 ConstraintSolver* m_ConstraintSolver;
31 CollisionManager* m_CollisionManager;
32 double m_frequencyCoefficient;
33 double m_Gamma;
34 int m_finalElement;
35 double m_elementLength;
36 std::vector<RigidCoupling,Eigen::aligned_allocator<RigidCoupling>> m_coupling;
37 std::vector<double> m_strength;
38};
39
40}
41#endif
Definition: CollisionManager.h:37
Definition: TrawlCableInterface.h:17
virtual void ComputeConstraints(const double T, const double *const X)
Definition: ConstraintSolver.h:31
Definition: JointConstraint.h:17
Definition: CollisionManager.h:6