Computer Assisted Medical Intervention Tool Kit  version 5.2
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-2024 Univ. Grenoble Alpes, CNRS, Grenoble INP - UGA, TIMC, 38000 Grenoble, France
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 // Monitor includes
35 #include "MonitoringManager.h"
36 #include <MonitorIn.hxx>
37 #include <MonitorOut.hxx>
38 
39 // Criterion includes
40 #include "StoppingCriterion.h"
41 
42 // Simulator includes
43 #include "InteractiveSimulator.h"
52 public:
58  InteractiveMonitoringManager(const char* mml);
59 
61  ~InteractiveMonitoringManager() override;
62 
64  bool init() override;
66  void end() override;
68  void doMove() override;
70  bool checkStop() override;
71 
73  StoppingCriterion* getStoppingCriterion();
74 
75 private:
77  StoppingCriterion* stop;
80 
81 
82 
83 };
84 
85 #endif // MANAGER_INTERACTIVEMANAGER_H
#define MML_API
Definition: MMLAPI.h:43
Interactice managers are managers linked with an interactive simulator.
Definition: InteractiveMonitoringManager.h:51
An interactive simulator is a simulator that we can control step by step (ex: Sofa)
Definition: InteractiveSimulator.h:38
Manager of the benchmark tests.
Definition: MonitoringManager.h:50
Simulator * simul
the simulator used for simualtion
Definition: MonitoringManager.h:185
virtual bool checkStop()=0
Check if simulation is finished.
virtual void end()=0
End manager.
virtual void doMove()=0
Do one step of simulation and save monitors for this step.
virtual bool init()=0
Initialize manager.
class which represent the stopping criterion to check to stop simulation a StoppingCriterion is eithe...
Definition: StoppingCriterion.h:48