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)
void slower()
increase the timer interval by 5ms, thus calling doOneStep less often
LoadsManager * myLM
the load manager
Definition: LoadsSimulationDriver.h:155
bool isTimerActive()
is the timer currently running
void maxSpeed()
set the timer interval to maxSpeed (1000Hz)
virtual ~LoadsSimulationDriver()
Destructor.
Loads * currentLoads
the current loads
Definition: LoadsSimulationDriver.h:158
void quicker()
decrease the timer interval by 5ms, thus calling doOneStep more often
QMap< unsigned int, Position > initialPositionMap
initial positions of all the targets
Definition: LoadsSimulationDriver.h:167
private struct to store the initial positions
Definition: LoadsSimulationDriver.h:148
LoadsSimulationDriver(LoadsManager *, Loads *)
Constructor.
double getDt() const
get delta-t
double z
Definition: LoadsSimulationDriver.h:151
double refreshDt
the delta-t between two refresh of the 3D view
Definition: LoadsSimulationDriver.h:185
void rewind()
rewind time to tMin (do not update the display)
void getInitialPosition(unsigned int, double[3])
get an initial position using the key (i.e. targetId)
Definition: LoadsSimulationDriver.h:209
double tMin
first event time
Definition: LoadsSimulationDriver.h:179
QTimer * timer
the simulation timer
Definition: LoadsSimulationDriver.h:170
void setDt(double dt)
set the delta-t (default is 0.1)
void resetTMaxToDefault()
set default tmax (using the current loads last event)
void setTime(double)
set the time to a different value ("jump" to a given time)
This class makes it possible to manage a list of "Load".
Definition: Loads.h:70
void updatePositions(bool force)
update the positions depending on the current loads (and refresh the DCs position if parameter is tru...
void updateAtomData()
update Atom data
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)
void resetPositions()
reset the 3D positions to the initial value (stored in the map during init), (do not update the displ...
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:191
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
double tMax
last event time
Definition: LoadsSimulationDriver.h:182
void updateDisplay(bool force)
update the display using the current loads (and refresh the 3D viewers if parameter is true) ...
void init()
init display and initial positions.
void setLoads(Loads *)
set the current loads to be displayed
double getTime() const
get time
void startTimer()
starts the timer that will repeatedly call play and emit doOneStep
double dt
the delta-t used to change t
Definition: LoadsSimulationDriver.h:176
double getTMin() const
get tmin
void stopTimer()
stop the timer
void resetToDefault()
set tmin, tmax and dt to default
double getNextRefreshTime()
get the next planed time when the 3D will be refreshed
int interval
timer interval in ms
Definition: LoadsSimulationDriver.h:206
double getRefreshDt() const
get delta-t between 3d view refresh
double x
Definition: LoadsSimulationDriver.h:149
double t
simulation time
Definition: LoadsSimulationDriver.h:173
This dialog allows to see the simulation It plays the impload, allowing the user to see the evolution...
Definition: LoadsMovie.h:42
void setTMin(double)
set the new tMin
void setRefreshDt(double)
set delta-t between 3d view refresh (default 0.1)
void doOneStep()
signal call when one step is to be performed
double y
Definition: LoadsSimulationDriver.h:150
double lastUpdateTime
last time we updated the display
Definition: LoadsSimulationDriver.h:188
double getTMax() const
get tmax