Computer Assited Medical Intervention Tool Kit  version 4.1
AnsysWidget.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * $CAMITK_LICENCE_BEGIN$
3  *
4  * CamiTK - Computer Assisted Medical Intervention ToolKit
5  * (c) 2001-2018 Univ. Grenoble Alpes, 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_SIMULATORS_ANSYS_SOFAWIDGET_H
27 #define SIMULATOR_SIMULATORS_ANSYS_SOFAWIDGET_H
28 
29 #include <QProcess>
30 
31 #include "SimulatorWidget.h"
32 #include "AnsysSimulator.h"
33 
34 #include "ui_AnsysWidget.h"
35 
43  Q_OBJECT
44 
45 public:
47  AnsysWidget(QWidget* parent = 0, AnsysSimulator* sofaSimulator = NULL);
49  ~AnsysWidget();
50 
52  void writeBatch(QString path);
53 
54 
55 public slots:
57  void applyChanges();
58 
59 private:
60 
62  Ui::AnsysWidget ui;
64  std::string batchFile;
67 
68 };
69 
70 #endif
void writeBatch(QString path)
write text of QTextEdit into file in path
Definition: AnsysWidget.cpp:62
TODO Comment class here.
Definition: AnsysWidget.h:42
AnsysWidget(QWidget *parent=0, AnsysSimulator *sofaSimulator=NULL)
constructor
Definition: AnsysWidget.cpp:34
std::string batchFile
sofa scn file
Definition: AnsysWidget.h:64
~AnsysWidget()
destructor
Definition: AnsysWidget.cpp:49
A widget specific of the simulator to add in the gui all simulator widget have to derive from this cl...
Definition: SimulatorWidget.h:40
AnsysSimulator * ansysSimulator
the ansys simulator
Definition: AnsysWidget.h:66
Ui::AnsysWidget ui
the ui widget designed in qtdesigner
Definition: AnsysWidget.h:62
void applyChanges()
slot called when apply changes is pressed
Definition: AnsysWidget.cpp:52
Simulator class to use Ansys as simulation engine.
Definition: AnsysSimulator.h:40