|
Computer Assited Medical Intervention Tool Kit
version 5.0
|
|
Go to the documentation of this file.
26 #ifndef MONITOR_MONITOR_H
27 #define MONITOR_MONITOR_H
36 #include <MonitorIn.hxx>
67 static const unsigned int typeCount = 4;
78 virtual void calculate() = 0;
85 std::string getReferenceName();
86 std::string getTargetName();
88 virtual std::string getTypeName() = 0;
91 bool getValuesOfIndex(
int i,
double values[]);
93 int getIndexOfValues(
const unsigned int i);
95 double getValue(
const unsigned int i);
97 unsigned int getNumberOfIndex();
99 unsigned int getNumberOfValues();
109 std::vector<Reference*> references;
113 std::map<int, std::vector<double> > indexToValuesMap;
115 mml::Monitor* mappedObject;
129 std::vector<double> values;
131 std::vector<int> indexes;
134 #endif // MONITOR_MONITOR_H
double stopAt
time to stop monitoring
Definition: Monitor.h:130
double dy
offset in y direction (if reference is not aligned)
Definition: Monitor.h:148
double startAt
time to start monitoring
Definition: Monitor.h:128
Monitor(mml::Monitor *m, MonitoringManager *monitoringManager, Monitor::type type)
constructor
Definition: Monitor.cpp:37
mml::Monitor * mappedObject
the xsdcxx object representing monitor, used for serialization
Definition: Monitor.h:138
double getStopAt()
Definition: Monitor.cpp:212
int index
index of monitor
Definition: Monitor.h:126
bool getValuesOfIndex(int i, double values[])
populate values with the corresponding values at index i
Definition: Monitor.cpp:227
MonitoringManager * monitoringManager
monitoring manager
Definition: Monitor.h:140
static Value getValue(const QMap< const QtProperty *, PrivateData > &propertyMap, const QtProperty *property, const Value &defaultValue=Value())
Definition: qtpropertymanager.cpp:222
std::vector< double > values
the vector which contains data monitored
Definition: Monitor.h:152
@ SCALARSET
Definition: Monitor.h:108
unsigned int getIndex() const
get the structure unique index (stored in its property)
Definition: Structure.cpp:30
Monitor::type getValueType()
Definition: Monitor.cpp:222
#define MML_API
Definition: MMLAPI.h:43
std::vector< int > indexes
vector which contains target's atoms index (in same order that values associate with)
Definition: Monitor.h:154
int getIndex()
Definition: Monitor.cpp:201
@ MATRIX_33SET
Definition: Monitor.h:110
std::string getReferenceName()
Definition: Monitor.cpp:192
virtual void write()
write data stored in values vector into mmlOut file
Definition: Monitor.cpp:171
virtual ~Monitor()
destructor
Definition: Monitor.cpp:142
@ SCALAR
Definition: Monitor.h:107
int getIndexOfValues(const unsigned int i)
get index i of indexes vector
Definition: Monitor.cpp:240
std::string getTargetName()
Definition: Monitor.cpp:217
double dx
offset in x direction (if reference is not aligned)
Definition: Monitor.h:146
std::map< int, std::vector< double > > indexToValuesMap
map between indexes and values
Definition: Monitor.h:136
A reference is used to compare to simulated data.
Definition: Reference.h:63
double dz
offset in z direction (if reference is not aligned)
Definition: Monitor.h:150
@ VECTORSET
Definition: Monitor.h:109
type
type of the values stored (please update typeCount and doc if you update the enum) SCALAR: the monito...
Definition: Monitor.h:83
void next()
if iteration is not finished, advance to next atom
Definition: AtomIterator.cpp:72
double getValue(const unsigned int i)
get value i of values vector
Definition: Monitor.cpp:250
Manager of the benchmark tests. Do simulation loop and tests.
Definition: MonitoringManager.h:50
unsigned int getNumberOfIndex()
get number of index in indexes vetor
Definition: Monitor.cpp:260
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
std::string target
the name of the component targeted by the monitor
Definition: Monitor.h:134
PhysicalModel * getInitPml()
Definition: MonitoringManager.cpp:258
A monitor calculate and store followed data (ex:calculation between current position and references) ...
Definition: Monitor.h:49
Monitor::type valueType
type of the values stored
Definition: Monitor.h:142
unsigned int getNumberOfValues()
get number of value in values vetor
Definition: Monitor.cpp:270
std::vector< Reference * > references
references used when monitor need references
Definition: Monitor.h:132
double getStartAt()
Definition: Monitor.cpp:207
void begin()
place iterator on first atom
Definition: AtomIterator.cpp:62
int dimension
dimension of data stored
Definition: Monitor.h:144