Computer Assited Medical Intervention Tool Kit  version 5.0
NonInteractiveMonitoringManager.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * $CAMITK_LICENCE_BEGIN$
3  *
4  * CamiTK - Computer Assisted Medical Intervention ToolKit
5  * (c) 2001-2021 Univ. Grenoble Alpes, CNRS, Grenoble INP, 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_NONINTERACTIVEMANAGER_H
27 #define MANAGER_NONINTERACTIVEMANAGER_H
28 
29 #include <memory> // std::auto_ptr
30 #include <vector>
31 
32 // Monitor includes
33 #include <MonitorIn.hxx>
34 #include <MonitorOut.hxx>
35 #include "MonitoringManager.h"
36 #include "Monitor.h"
37 
38 // Simulator includes
48 public:
54  NonInteractiveMonitoringManager(const char* mml);
55 
58 
62  bool doCalc();
64  bool init() override;
66  void end() override;
68  void doMove() override;
70  bool checkStop() override;
71 
72 private:
74  int maxStep;
77 
78 
79 
80 };
81 
82 #endif // MANAGER_NONINTERACTIVEMANAGER_H
NonInteractiveMonitoringManager::doMove
void doMove() override
postprocess a simulation step, doCalc must have been done before
Definition: NonInteractiveMonitoringManager.cpp:85
MonitoringManager::step
int step
current step
Definition: MonitoringManager.h:177
NonInteractiveSimulator::doCalc
virtual bool doCalc()=0
make entire simulation ans store results of all step
NonInteractiveMonitoringManager::checkStop
bool checkStop() override
Check if simulation is finished.
Definition: NonInteractiveMonitoringManager.cpp:92
MonitoringManager.h
Chrono.h
NonInteractiveMonitoringManager::end
void end() override
End manager.
Definition: NonInteractiveMonitoringManager.cpp:75
MonitoringManager::saveMonitors
void saveMonitors()
Save save monitors' state for the current time.
Definition: MonitoringManager.cpp:200
NonInteractiveMonitoringManager
NonInteractice managers are managers linked with an non interactive simulator.
Definition: NonInteractiveMonitoringManager.h:47
MonitoringManager::currentTime
double currentTime
time at current moment
Definition: MonitoringManager.h:179
NonInteractiveSimulator::end
void end() override=0
end simultor
NonInteractiveMonitoringManager::simul
NonInteractiveSimulator * simul
the simulator used for simualtion
Definition: NonInteractiveMonitoringManager.h:99
NonInteractiveMonitoringManager::~NonInteractiveMonitoringManager
~NonInteractiveMonitoringManager() override
destructor
Definition: NonInteractiveMonitoringManager.cpp:41
NonInteractiveMonitoringManager::init
bool init() override
Initialize manager.
Definition: NonInteractiveMonitoringManager.cpp:60
MonitoringManager
Manager of the benchmark tests. Do simulation loop and tests.
Definition: MonitoringManager.h:50
MonitoringManager::simul
Simulator * simul
the simulator used for simualtion
Definition: MonitoringManager.h:185
NonInteractiveSimulator::getMaxStep
virtual int getMaxStep()=0
get the number of steps after simulation
NonInteractiveMonitoringManager::NonInteractiveMonitoringManager
NonInteractiveMonitoringManager(const char *mml)
constructor
Definition: NonInteractiveMonitoringManager.cpp:36
NonInteractiveMonitoringManager.h
NonInteractiveSimulator::init
void init() override=0
initialize simulator
NonInteractiveMonitoringManager::maxStep
int maxStep
the number of step unsed for simulation
Definition: NonInteractiveMonitoringManager.h:97
NonInteractiveSimulator.h
Simulator::updatePositions
void updatePositions()
update all current positions and store last positions
Definition: Simulator.cpp:44
NonInteractiveSimulator::getTime
virtual double getTime(int step)=0
get the time of simulation of a given step
MonitoringManager::incStep
void incStep()
increment step by one
Definition: MonitoringManager.cpp:330
Monitor.h
NonInteractiveSimulator
An interactive simulator is a simulator that we cannot control step by step (ex: Ansys) Entire simula...
Definition: NonInteractiveSimulator.h:38
NonInteractiveMonitoringManager::doCalc
bool doCalc()
make computation of all steps with the simulator
Definition: NonInteractiveMonitoringManager.cpp:80