|
Computer Assited Medical Intervention Tool Kit
version 5.0
|
|
Go to the documentation of this file.
94 double getValue(
const double d = 0.0);
127 int getTarget(
const unsigned int target)
const;
134 void setDirection(
const double x,
const double y,
const double z);
140 void getDirection(
double& x,
double& y,
double& z)
const;
void setAllEvents(std::vector< ValueEvent * > &)
set all value events
Definition: Load.cpp:86
std::string getUnitName()
Definition: Unit.h:49
virtual ~Load()
destructor is deleting all the value events (BEWARE!!!)
Definition: Load.cpp:71
bool operator()(const ValueEvent *lhs, const ValueEvent *rhs) const
Definition: Load.cpp:176
Class that defines the type of Load 'Pressure'.
Definition: Pressure.h:38
static Load * LoadFactory(std::string type)
static method to create a new load using a specific type (return nullptr if type is unknown)
Definition: Load.cpp:39
std::string toString() const
return the list in a handy/compact format (compact interval, i.e. 4,5,6 becomes 4-6,...
Definition: TargetList.cpp:168
std::string getType() const
get the type string, has to be impleted in subclasses
Definition: Load.cpp:283
double getY() const
get the y coordinate
Definition: Direction.h:203
ValueEvent * getValueEvent(const unsigned int i) const
Get a the ValueEvent.
Definition: Load.cpp:256
unsigned int numberOfValueEvents() const
get the nr of value event
Definition: Load.cpp:266
TargetList getTargetList() const
get the complete list
Definition: Load.cpp:214
Class that describes a load to be used in the simulation. This load can have different types Translat...
Definition: Load.h:53
std::string typeString
Definition: Load.h:199
std::vector< ValueEvent * > eventList
the list of different events
Definition: Load.h:191
friend std::ostream & operator<<(std::ostream &, Load)
print to an output stream in XML format.
Definition: Load.cpp:327
void addTarget(std::string currentData)
add a lots of new targets using a description string (...)
Definition: Load.cpp:209
void xmlPrint(std::ostream &) const
Print to an ostream.
Definition: Load.cpp:290
unsigned int numberOfTargets() const
get the number of target
Definition: Load.cpp:224
int getTarget(const unsigned int target) const
Get a target by index.
Definition: Load.cpp:229
Load()
Constructor.
Definition: Load.cpp:67
void setUnit(const Unit u)
set the unit
Definition: Load.cpp:277
double getZ() const
get the z coordinate
Definition: Direction.h:234
bool isActive(const double t)
return true if the load is active at time t
Definition: Load.cpp:95
Class that defines the direction of the Load with x, y and z.
Definition: Direction.h:39
TargetList targetList
the list of targets
Definition: Load.h:189
Class that defines the type of Load 'Rotation'.
Definition: Rotation.h:37
void add(const unsigned int)
add a load using an integer
Definition: TargetList.cpp:39
void addEvent(ValueEvent *ve)
Insert an event from the particular load the load is set to value v when time is equal to t.
Definition: Load.cpp:184
void xmlPrint(std::ostream &o) const
print to an ostream
Definition: Direction.h:100
Unit getUnit() const
get the unit
Definition: Load.cpp:272
void xmlPrint(std::ostream &)
Print to an ostream.
Definition: ValueEvent.cpp:67
Class that defines the unit of the Load.
Definition: Unit.h:46
void set(const double x, const double y, const double z)
set the direction
Definition: Direction.h:147
Class that defines the type of Load 'Acceleration', for example to set the gravity.
Definition: Acceleration.h:38
virtual void ansysPrint(std::ostream &) const
Print the load in ansys format (BEWARE: not everything is implemented)
Definition: Load.cpp:321
int getIndexedTarget(const unsigned int) const
get an indexed target
Definition: TargetList.cpp:142
Class that defines the type of Load 'Translation'.
Definition: Translation.h:39
std::ostream & operator<<(std::ostream &o, Load)
Definition: Load.cpp:327
std::string toAnsys() const
return the ANSYS command to select the list of target (only work for indexed targets)
Definition: TargetList.cpp:216
A valueEvent of a load is composed of a value and a date.
Definition: ValueEvent.h:41
Direction getDirection() const
get direction object (a copy)
Definition: Load.cpp:241
double getDate() const
double get start time
Definition: ValueEvent.cpp:62
Direction dir
Definition: Load.h:197
double getValue(const double d=0.0)
The current value at date d (default: d = 0.0).
Definition: Load.cpp:112
double getX() const
get the x coordinate
Definition: Direction.h:173
Unit unit
Definition: Load.h:198
void setTargetList(const TargetList &)
set the complete list
Definition: Load.cpp:219
unsigned int getNumberOfTargets() const
get the nr of indevidual targets
Definition: TargetList.cpp:132
Class that defines the type of Load 'Force'.
Definition: lml/Force.h:37
void addValueEvent(const double v, const double d)
set the valueEvent.
Definition: Load.cpp:198
void deleteEventList()
delete all the list
Definition: Load.cpp:77
Manage a list of targets, can be created/modified using either an integer, a name,...
Definition: TargetList.h:45
void setDirection(const double x, const double y, const double z)
Set the direction using 3 coordinates.
Definition: Load.cpp:246