Computer Assited Medical Intervention Tool Kit
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
components
physicalmodel
loads
LoadsSimulation.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* $CAMITK_LICENCE_BEGIN$
3
*
4
* CamiTK - Computer Assisted Medical Intervention ToolKit
5
* (c) 2001-2013 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 LoadsSimulation_H
27
#define LoadsSimulation_H
28
29
#include <QDialog>
30
31
#include "ui_AnimationMotorDialog.h"
32
33
//class used in this file
34
class
LoadsSimulation
;
35
class
LoadsManager
;
36
class
LoadsSimulationDriver
;
37
class
AnimationMotorAddon
;
38
class
QToolBar;
39
46
class
LoadsSimulation
:
public
QDialog {
47
Q_OBJECT
48
49
public
:
51
LoadsSimulation
(
LoadsManager
* myLoadsManager, QWidget* parent = 0);
53
virtual
~LoadsSimulation
();
54
56
double
getTime
()
const
;
57
62
void
updateTime
(
bool
getMotorTime=
false
);
63
65
void
addTab
(QWidget *);
66
70
void
updateDisplay
(
bool
force);
71
72
public
slots :
73
77
bool
doOneStep
();
78
80
void
pause
();
81
83
void
simulate
();
84
86
void
simulateOneStep
();
87
89
void
rewind
();
90
92
virtual
void
reject
();
93
94
// other widget interaction slots:
95
virtual
void
dtChanged
();
96
virtual
void
tMaxChanged
();
97
virtual
void
dtModified
();
98
virtual
void
tMaxModified
();
99
virtual
void
refreshDtChanged
();
100
virtual
void
refreshDtModified
();
101
virtual
void
chooseOutputDir
();
102
virtual
void
videoToggled
(
bool
);
103
105
virtual
void
addAnimationMotorAddon
();
106
108
void
init
();
109
110
private
:
111
113
void
enableButtons
(
bool
enable);
114
116
void
loadAddon
(QString);
117
QString
addonFilename
;
118
120
LoadsManager
*
myLM
;
121
123
QColor
bgColor
;
124
126
LoadsSimulationDriver
*
simDriver
;
127
129
AnimationMotorAddon
*
myMotor
;
130
132
QToolBar *
simulationToolBar
;
133
135
QLineEdit *
tLineEditToolbar
;
136
138
QString
outputDirName
;
139
141
QString
outputDir
;
142
144
unsigned
int
imageId
;
145
147
QAction *
rewindToolbar
;
148
QAction *
playToolbar
;
149
QAction *
playOneStepToolbar
;
150
QAction *
pauseToolbar
;
151
153
bool
video
;
154
156
bool
output
;
157
159
double
elapsed
;
160
162
double
iterationCount
;
163
165
Ui::AnimationMotorDialog
ui
;
166
};
167
168
169
170
#endif // LoadsSimulation_H
171
172
Generated on Tue Feb 26 2013 20:57:32 for Computer Assited Medical Intervention Tool Kit by
1.8.3.1