Computer Assisted Medical Intervention Tool Kit  version 5.2
 
Loading...
Searching...
No Matches
Force Class Reference

Class that defines the type of Load 'Force'. More...

#include <Force.h>

+ Inheritance diagram for Force:
+ Collaboration diagram for Force:

Public Member Functions

void ansysPrint (std::ostream &) const override
 Redefinition of ansysPrint to print in ansys format.
 
 Force ()
 default constructor
 
- Public Member Functions inherited from Load
void addEvent (ValueEvent *ve)
 Insert an event from the particular load the load is set to value v when time is equal to t.
 
void addTarget (std::string currentData)
 add a lots of new targets using a description string (...)
 
void addTarget (unsigned int target)
 add a new target
 
void addValueEvent (const double v, const double d)
 set the valueEvent.
 
Direction getDirection () const
 get direction object (a copy)
 
void getDirection (double &x, double &y, double &z) const
 Get the direction.
 
int getTarget (const unsigned int target) const
 Get a target by index.
 
TargetList getTargetList () const
 get the complete list
 
std::string getType () const
 get the type string, has to be impleted in subclasses
 
Unit getUnit () const
 get the unit
 
double getValue (const double d=0.0)
 The current value at date d (default: d = 0.0).
 
ValueEventgetValueEvent (const unsigned int i) const
 Get a the ValueEvent.
 
bool isActive (const double t)
 return true if the load is active at time t
 
 Load ()
 Constructor.
 
unsigned int numberOfTargets () const
 get the number of target
 
unsigned int numberOfValueEvents () const
 get the nr of value event
 
void setAllEvents (std::vector< ValueEvent * > &)
 set all value events
 
void setDirection (const Direction &)
 Set the direction using another direction.
 
void setDirection (const double x, const double y, const double z)
 Set the direction using 3 coordinates.
 
void setTargetList (const TargetList &)
 set the complete list
 
void setUnit (const Unit u)
 set the unit
 
void xmlPrint (std::ostream &) const
 Print to an ostream.
 
virtual ~Load ()
 destructor is deleting all the value events (BEWARE!!!)
 

Additional Inherited Members

- Static Public Member Functions inherited from Load
static LoadLoadFactory (std::string type)
 static method to create a new load using a specific type (return nullptr if type is unknown)
 
- Protected Attributes inherited from Load
Direction dir
 
std::string typeString
 
Unit unit
 

Detailed Description

Class that defines the type of Load 'Force'.

Constructor & Destructor Documentation

◆ Force()

Force::Force ( )

default constructor

References ForceUnit::N(), Load::typeString, and Load::unit.

+ Here is the call graph for this function:

Member Function Documentation

◆ ansysPrint()

void Force::ansysPrint ( std::ostream &  o) const
overridevirtual

Redefinition of ansysPrint to print in ansys format.

Warning
not everything is implemented (yet!)

Reimplemented from Load.

References Load::ansysPrint().

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: