Fhsim
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
16
class
CAttractorBase
17
{
18
public
:
19
CAttractorBase
();
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
30
protected
:
31
double
m_adPos[3];
32
double
m_adVel[3];
33
double
m_dRelStrength;
34
};
35
36
37
#endif
CAttractorBase
Class modelling the interface of a general attractor.
Definition:
CAttractorBase.h:17
reloadrepos
fhsim_aquaculture
src
seine
CAttractorBase.h
Generated by
1.9.4