|
Computer Assited Medical Intervention Tool Kit
version 5.0
|
|
Go to the documentation of this file.
102 void xmlRead(std::string filename);
125 std::vector <Load*>
loads;
double getLastEventDate()
get the last event date present in the list of loads
Definition: Loads.cpp:297
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
void setToward(const unsigned int toward)
set the toward index
Definition: Direction.h:159
friend std::ostream & operator<<(std::ostream &, const Loads)
print to an output stream in XML format.
Definition: Loads.cpp:225
static TranslationUnit & MM()
millimeters
Definition: TranslationUnit.cpp:44
std::string getType() const
get the type string, has to be impleted in subclasses
Definition: Load.cpp:283
void xmlPrint(std::ostream &) const
Print to an ostream.
Definition: Loads.cpp:187
static const char * VERSION
current version of the library
Definition: Loads.h:144
Class that describes a load to be used in the simulation. This load can have different types Translat...
Definition: Load.h:53
static RotationUnit & DEG()
degrees
Definition: RotationUnit.cpp:30
static ForceUnit & N()
Newtons.
Definition: ForceUnit.cpp:35
void setX(const double x)
set the x coordinate
Definition: Direction.h:194
void xmlRead(std::string filename)
read the input xml file using xsd and instantiate the loads
Definition: Loads.cpp:70
static AccelerationUnit & CMSm2()
cm/s^2
Definition: AccelerationUnit.cpp:35
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
static PressureUnit & MMHG()
Millimeters of mercure.
Definition: PressureUnit.cpp:35
void addLoad(Load *ld)
add a load to the list
Definition: Loads.cpp:244
unsigned int numberOfLoads() const
get the number of "Load" stored in the list
Definition: Loads.cpp:259
std::vector< Load * > loads
vector of loads : these "Load" are created while the file is parsed
Definition: Loads.h:148
void setUnit(const Unit u)
set the unit
Definition: Load.cpp:277
Class that defines the direction of the Load with x, y and z.
Definition: Direction.h:39
static RotationUnit & RAD()
radians
Definition: RotationUnit.cpp:35
static PressureUnit & PA()
Pascal.
Definition: PressureUnit.cpp:40
static ForceUnit & PN()
picoNewtons
Definition: ForceUnit.cpp:40
static TranslationUnit & MICRO_M()
micro meters
Definition: TranslationUnit.cpp:34
static TranslationUnit & M()
meters
Definition: TranslationUnit.cpp:29
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 deleteLoad(const unsigned int i)
delete a load and remove it from the list using its index
Definition: Loads.cpp:264
static ForceUnit & KN()
KiloNewtons.
Definition: ForceUnit.cpp:30
virtual void ansysPrint(std::ostream &) const
Print the load in ansys format (BEWARE: not everything is implemented)
Definition: Load.cpp:321
static TranslationUnit & NM()
nano meters
Definition: TranslationUnit.cpp:39
void ansysPrint(std::ostream &) const
Print the load list in ansys format (BEWARE: not everything is implemented)
Definition: Loads.cpp:206
static AccelerationUnit & MMSm2()
mm/s^2
Definition: AccelerationUnit.cpp:41
This class makes it possible to manage a list of "Load". Remember that Load is an abstract class (con...
Definition: Loads.h:71
static PressureUnit & KPA()
kiloPascal
Definition: PressureUnit.cpp:30
std::ostream & operator<<(std::ostream &o, const Loads l)
Definition: Loads.cpp:225
~Loads()
destructor
Definition: Loads.cpp:55
A valueEvent of a load is composed of a value and a date.
Definition: ValueEvent.h:41
double getDate() const
double get start time
Definition: ValueEvent.cpp:62
Loads()=default
default constructor
double getFirstEventDate()
get the first event date present in the list of loads
Definition: Loads.cpp:272
void setZ(const double z)
set the z coordinate
Definition: Direction.h:255
static AccelerationUnit & MSm2()
Standard SI unit for acceleration: m/s^2.
Definition: AccelerationUnit.cpp:30
Load * getLoad(const unsigned int i) const
get a load by its index in the list
Definition: Loads.cpp:249
void setY(const double y)
set the y coordinate
Definition: Direction.h:224
void setDirection(const double x, const double y, const double z)
Set the direction using 3 coordinates.
Definition: Load.cpp:246