Computer Assited Medical Intervention Tool Kit  version 3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
InteractiveMonitoringManager.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * $CAMITK_LICENCE_BEGIN$
3  *
4  * CamiTK - Computer Assisted Medical Intervention ToolKit
5  * (c) 2001-2014 UJF-Grenoble 1, CNRS, TIMC-IMAG UMR 5525 (GMCAO)
6  *
7  * Visit http://camitk.imag.fr for more information
8  *
9  * This file is part of CamiTK.
10  *
11  * CamiTK is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * CamiTK is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU Lesser General Public License version 3 for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public License
21  * version 3 along with CamiTK. If not, see <http://www.gnu.org/licenses/>.
22  *
23  * $CAMITK_LICENCE_END$
24  ****************************************************************************/
25 
26 #ifndef MANAGER_INTERACTIVEMANAGER_H
27 #define MANAGER_INTERACTIVEMANAGER_H
28 
29 #include "MMLAPI.h"
30 
31 #include <memory> // std::auto_ptr
32 #include <vector>
33 
34 #include "MonitorIn.hxx"
35 #include "MonitorOut.hxx"
36 
48  public:
54  InteractiveMonitoringManager(const char* mml);
55 
58 
60  bool init();
62  void end();
64  void doMove();
66  bool checkStop();
67 
69  StoppingCriterion* getStoppingCriterion();
70 
71  private:
76 
77 
78 
79 };
80 
81 #endif // MANAGER_INTERACTIVEMANAGER_H
virtual bool init()=0
Initialize manager.
virtual void doMove()=0
Do one step of simulation and save monitors for this step.
StoppingCriterion * stop
the stopping criteria to check in order to know when simulation loop should be stopped ...
Definition: InteractiveMonitoringManager.h:73
Manager of the benchmark tests.
Definition: MonitoringManager.h:50
InteractiveSimulator * simul
the simulator used for simualtion
Definition: InteractiveMonitoringManager.h:75
Interactice managers are managers linked with an interactive simulator.
Definition: InteractiveMonitoringManager.h:47
class which represent the stopping criterion to check to stop simulation a StoppingCriterion is eithe...
Definition: StoppingCriterion.h:48
#define MML_API
Definition: MMLAPI.h:43
An interactive simulator is a simulator that we can control step by step (ex: Sofa) ...
Definition: InteractiveSimulator.h:38
virtual bool checkStop()=0
Check if simulation is finished.
virtual void end()=0
End manager.