Computer Assited Medical Intervention Tool Kit  version 5.0
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-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 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
AnsysWidget.h
SimulatorWidget::reload
void reload()
AnsysWidget
TODO Comment class here.
Definition: AnsysWidget.h:42
AnsysWidget::AnsysWidget
AnsysWidget(QWidget *parent=0, AnsysSimulator *sofaSimulator=NULL)
constructor
Definition: AnsysWidget.cpp:34
AnsysSimulator
Simulator class to use Ansys as simulation engine.
Definition: AnsysSimulator.h:40
AnsysWidget::batchFile
std::string batchFile
sofa scn file
Definition: AnsysWidget.h:87
SimulatorWidget.h
AnsysWidget::~AnsysWidget
~AnsysWidget()
destructor
Definition: AnsysWidget.cpp:49
SimulatorWidget
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::getBatchFile
std::string getBatchFile()
get path to batch file
Definition: AnsysSimulator.cpp:180
AnsysWidget::ansysSimulator
AnsysSimulator * ansysSimulator
the ansys simulator
Definition: AnsysWidget.h:89
AnsysSimulator.h
AnsysWidget::ui
Ui::AnsysWidget ui
the ui widget designed in qtdesigner
Definition: AnsysWidget.h:85
AnsysWidget::applyChanges
void applyChanges()
slot called when apply changes is pressed
Definition: AnsysWidget.cpp:52
AnsysWidget::writeBatch
void writeBatch(QString path)
write text of QTextEdit into file in path
Definition: AnsysWidget.cpp:62