Marine systems simulation
CAttractorBase.h
1
9
10#ifndef CAttractorBase_H
11#define CAttractorBase_H
12
13#include <string>
14#include "sfh/sim/simulation.h"
15
17{
18public:
20 virtual void SetRelStrength(const double dRelStrength);
21 virtual void GetForce(double * const adForce, const double* const adNodePos, const double* const adNodeVel) = 0;
22 virtual void AddForce(double * const adForce, const double dNodeMass, const double* const adNodePos, const double* const adNodeVel) = 0;
23 virtual void AddForce(double * const adForce, const double* const adNodePos, const double* const adNodeVel) = 0;
24 virtual void SetForceIfActive(double * const adForce, const double* const adNodePos, const double* const adNodeVel){};
25 virtual bool IsActive(const double* const adNodePos) = 0;
26
27 void SetPos(const double* const adAttractorPos);
28 void SetVel(const double* const adAttractorVel);
29
30protected:
31 double m_adPos[3];
32 double m_adVel[3];
33 double m_dRelStrength;
34};
35
36
37#endif
Class modelling the interface of a general attractor.
Definition: CAttractorBase.h:17