Computer Assited Medical Intervention Tool Kit  version 3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Simulator.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 SIMULATOR_SIMULATOR_H
27 #define SIMULATOR_SIMULATOR_H
28 
29 #include "MMLAPI.h"
30 
32 #include "tools/Macros.h"
33 
34 #ifdef MML_GENERATE_GUI
36 #endif
37 
45  public:
50  Simulator(MonitoringManager* monitoringManager);
57  Simulator(MonitoringManager* monitoringManager,const char * file);
59  virtual ~Simulator();
60 
62  virtual void init() = 0;
64  virtual void end() = 0;
66  void updatePositions();
68  virtual void getPosition(int index, double position[3])=0;
70  virtual void getForce(int index, double force[3])=0;
71 
73  virtual void createPml(const char* inputFile,const char* pmlFile)=0;
74 
75  #ifdef MML_GENERATE_GUI
76  QWidget* getWidget();
78  #endif
79 
80  protected:
83 
84  #ifdef MML_GENERATE_GUI
85  SimulatorWidget* widget;
87  #endif
88 
89 };
90 
91 #endif // SIMULATOR_SIMULATOR_H
MonitoringManager * monitoringManager
monitoring manager
Definition: Simulator.h:82
A simulator engine is used to compute the displacements of all atoms of the model.
Definition: Simulator.h:44
A widget specific of the simulator to add in the gui all simulator widget have to derive from this cl...
Definition: SimulatorWidget.h:40
Manager of the benchmark tests.
Definition: MonitoringManager.h:50
CamiTK CamiTKDir txt file(STRINGS"${FIND_CAMITK_USER_BASE_DIR}/CamiTK/CamiTKDir.txt"FIND_CAMITK_USER_DIR_LAST_INSTALL) endif() find_program(CAMITK_CONFIG_EXECUTABLE NAMES camitk-config-debug camitk-config PATH_SUFFIXES"bin"PATHS"$
Definition: FindCamiTK.cmake:80
#define MML_API
Definition: MMLAPI.h:43