|
Computer Assited Medical Intervention Tool Kit
version 5.0
|
|
Go to the documentation of this file.
26 #ifndef REFRENCE_REFERENCE_H
27 #define REFRENCE_REFERENCE_H
78 bool getNearest(
double pos[3],
double time,
double ref[3]);
123 bool getMonitoredData(std::string type,
double time,
double& realTime,
double ref[]);
134 bool getMonitoredData(std::string type,
double time,
int index,
double& realTime,
double ref[]);
150 std::unique_ptr<mml::MonitoringOut>
mmlOut;
165 #endif // REFRENCE_REFERENCE_H
std::multimap< std::string, Monitor * > monitorsMap
Definition: Reference.h:144
bool getMonitoredData(std::string type, double ref[])
get the the values of a given monitor which do not depend of time or an atom (e.g.
Definition: Reference.cpp:166
std::string mmlOutFile
the mmlOut document
Definition: Reference.h:148
std::vector< timeStep * > data
vector which contain alls monitors for each time step
Definition: Reference.h:159
void getPosition(double pos[3]) const
get the position of the atom (array of 3 doubles)
Definition: Atom.h:121
An atom has an unique index in the physical model object, a 3D position, and different basic properti...
Definition: Atom.h:49
bool getNearest(double pos[3], double time, double ref[3])
get the nearest reference point in the "target" using "Position" monitor at given time
Definition: Reference.cpp:115
CellProperties * getProperties()
return the property
Definition: Cell.cpp:226
private structure with monitors for a time step
Definition: Reference.h:142
unsigned int getIndex() const
get the structure unique index (stored in its property)
Definition: Structure.cpp:30
virtual ~Reference()
destructor
Definition: Reference.cpp:97
A structural component is composed either by cell or by atoms.
Definition: StructuralComponent.h:52
std::string target
target
Definition: Reference.h:154
std::string toString()
return a string relative to Reference type
Definition: Reference.cpp:311
@ SCALAR
Definition: Monitor.h:107
This is the main class of this project. Following a nice concept, a physical model is able to represe...
Definition: PhysicalModel.h:86
double time
Definition: Reference.h:143
A cell has an unique index in the physical model object, is composed by atoms, and different basic pr...
Definition: Cell.h:46
bool getDistanceToTriangularMesh(double pos[3], double &dist)
get distance to a triangular mesh, the target of the reference must contain triangles.
Definition: Reference.cpp:262
A reference is used to compare to simulated data.
Definition: Reference.h:63
std::unique_ptr< mml::MonitoringOut > mmlOut
Object in the file generated by xsdcxx.
Definition: Reference.h:150
void next()
if iteration is not finished, advance to next atom
Definition: AtomIterator.cpp:72
static Monitor * createMonitor(mml::Monitor *m, MonitoringManager *monitoringManager)
create a monitor according to the xsdcxx object monitor
Definition: MonitorFactory.cpp:37
Manager of the benchmark tests. Do simulation loop and tests.
Definition: MonitoringManager.h:50
@ TRIANGLE
the structure is a triangle, i.e it must be a cell composed of 3 atoms
Definition: StructureProperties.h:157
Structure * getStructure(const unsigned int) const
get a structure by its index (fisrt structure is at index 0)
Definition: StructuralComponent.h:220
virtual std::string getTypeName()=0
Atom * currentAtom()
return current atom
Definition: AtomIterator.cpp:79
bool end()
return true if iterator is over the last atom
Definition: AtomIterator.cpp:67
Allow iteration over a set of atoms given by a target list (component name or index list)
Definition: AtomIterator.h:40
A monitor calculate and store followed data (ex:calculation between current position and references) ...
Definition: Monitor.h:49
Reference(mml::Reference reference, MonitoringManager *monitoringManager)
constructor
Definition: Reference.cpp:45
GeometricType getType() const
Return the type of force.
Definition: StructureProperties.h:160
MonitoringManager * monitoringManager
monitoring manager
Definition: Reference.h:152
void begin()
place iterator on first atom
Definition: AtomIterator.cpp:62
PhysicalModel * pml
pml of the reference
Definition: Reference.h:156
int CurrentIndex
current data index, stored to avoid search from beginning in the data vector
Definition: Reference.h:161