26 #ifndef LOADSSIMULATIONDRIVER_H 27 #define LOADSSIMULATIONDRIVER_H 212 pos[0] = pos[1] = pos[2] = 0.0;
214 pos[0] = it.value().x;
215 pos[1] = it.value().y;
216 pos[2] = it.value().z;
221 #endif // LOADSSIMULATIONDRIVER_H void resetTMinToDefault()
set default tmin (using the current loads first event)
Definition: LoadsSimulationDriver.cpp:573
double getTMax() const
get tmax
Definition: LoadsSimulationDriver.cpp:599
void slower()
increase the timer interval by 5ms, thus calling doOneStep less often
Definition: LoadsSimulationDriver.cpp:656
void getInitialPosition(unsigned int, double [3])
get an initial position using the key (i.e. targetId)
Definition: LoadsSimulationDriver.h:209
LoadsManager * myLM
the load manager
Definition: LoadsSimulationDriver.h:158
bool isTimerActive()
is the timer currently running
Definition: LoadsSimulationDriver.cpp:560
void maxSpeed()
set the timer interval to maxSpeed (1000Hz)
Definition: LoadsSimulationDriver.cpp:676
Loads * currentLoads
the current loads
Definition: LoadsSimulationDriver.h:161
void quicker()
decrease the timer interval by 5ms, thus calling doOneStep more often
Definition: LoadsSimulationDriver.cpp:664
QMap< unsigned int, Position > initialPositionMap
initial positions of all the targets
Definition: LoadsSimulationDriver.h:170
private struct to store the initial positions
Definition: LoadsSimulationDriver.h:151
LoadsSimulationDriver(LoadsManager *, Loads *)
Constructor.
Definition: LoadsSimulationDriver.cpp:54
virtual ~LoadsSimulationDriver()
Destructor.
Definition: LoadsSimulationDriver.cpp:72
double z
Definition: LoadsSimulationDriver.h:154
double refreshDt
the delta-t between two refresh of the 3D view
Definition: LoadsSimulationDriver.h:188
void rewind()
rewind time to tMin (do not update the display)
Definition: LoadsSimulationDriver.cpp:167
double tMin
first event time
Definition: LoadsSimulationDriver.h:182
double getTMin() const
get tmin
Definition: LoadsSimulationDriver.cpp:581
QTimer * timer
the simulation timer
Definition: LoadsSimulationDriver.h:173
void setDt(double dt)
set the delta-t (default is 0.1)
Definition: LoadsSimulationDriver.cpp:614
void resetTMaxToDefault()
set default tmax (using the current loads last event)
Definition: LoadsSimulationDriver.cpp:591
void setTime(double)
set the time to a different value ("jump" to a given time)
Definition: LoadsSimulationDriver.cpp:625
This class makes it possible to manage a list of "Load".
Definition: Loads.h:71
void updatePositions(bool force)
update the positions depending on the current loads (and refresh the DCs position if parameter is tru...
Definition: LoadsSimulationDriver.cpp:412
void updateAtomData()
only update the Atom data
Definition: LoadsSimulationDriver.cpp:213
QMap< unsigned int, Position > referencePositionMap
the reference pm positions (used to display the distances, ...)
Definition: LoadsSimulationDriver.h:203
void play()
Slot called when at each timer tick (i.e. after the same interval of time)
Definition: LoadsSimulationDriver.cpp:514
void resetPositions()
reset the 3D positions to the initial value (stored in the map during init), (do not update the displ...
Definition: LoadsSimulationDriver.cpp:187
This class manages the applied all loads (see LML), deformation add-on, atom data monitoring and atom...
Definition: LoadsManager.h:69
double lastRefreshTime
last time the display was refresh
Definition: LoadsSimulationDriver.h:194
This class manages the display of a simulation (either an already made simulation opened in a single ...
Definition: LoadsSimulationDriver.h:47
void setTMax(double)
set the new tMax
Definition: LoadsSimulationDriver.cpp:604
double tMax
last event time
Definition: LoadsSimulationDriver.h:185
void updateDisplay(bool force)
update the display using the current loads (and refresh the 3D viewers if parameter is true) ...
Definition: LoadsSimulationDriver.cpp:525
void init()
init display and initial positions.
Definition: LoadsSimulationDriver.cpp:80
void setLoads(Loads *)
set the current loads to be displayed
Definition: LoadsSimulationDriver.cpp:161
void startTimer()
starts the timer that will repeatedly call play and emit doOneStep
Definition: LoadsSimulationDriver.cpp:550
double dt
the delta-t used to change t
Definition: LoadsSimulationDriver.h:179
void stopTimer()
stop the timer
Definition: LoadsSimulationDriver.cpp:555
void resetToDefault()
set tmin, tmax and dt to default
Definition: LoadsSimulationDriver.cpp:566
double getNextRefreshTime()
get the next planed time when the 3D will be refreshed
Definition: LoadsSimulationDriver.cpp:544
int interval
timer interval in ms
Definition: LoadsSimulationDriver.h:206
double getDt() const
get delta-t
Definition: LoadsSimulationDriver.cpp:609
double getRefreshDt() const
get delta-t between 3d view refresh
Definition: LoadsSimulationDriver.cpp:646
double x
Definition: LoadsSimulationDriver.h:152
double t
simulation time
Definition: LoadsSimulationDriver.h:176
This dialog allows one to see the simulation It plays the impload, allowing the user to see the evolu...
Definition: LoadsMovie.h:42
void setTMin(double)
set the new tMin
Definition: LoadsSimulationDriver.cpp:586
void setRefreshDt(double)
set delta-t between 3d view refresh (default 0.1)
Definition: LoadsSimulationDriver.cpp:651
void doOneStep()
signal call when one step is to be performed
double y
Definition: LoadsSimulationDriver.h:153
double lastUpdateTime
last time we updated the display
Definition: LoadsSimulationDriver.h:191
double getTime() const
get time
Definition: LoadsSimulationDriver.cpp:620