26 #ifndef LOADSMANAGER_H 27 #define LOADSMANAGER_H 87 bool open(
const QString&);
93 void saveAs(
const QString&);
99 void setLoads(
Loads *);
102 void deleteAllLoads();
110 void addLoad(
Load *);
133 void addSimulationTab(QWidget*);
151 void setDisplayLoads(
bool);
154 void updateLoadsDisplay();
157 bool displayLoads()
const;
170 RELATIVE_ENERGY_NORM_ERROR
180 void setReferencePML(
const QString&);
195 void updateAtomDataScale(
double min,
double max);
202 bool isModified()
const;
206 void setChangedFlagOff();
209 bool getLoadsChangedFlag();
212 bool userWantsToSave();
218 QString getAnimationMotorAddonLocation();
221 void setAnimationMotorAddonLocation(QString);
224 void userConstrainedAtomDataScale (
bool constrained);
227 bool getUserConstrainedAtomDataScale();
233 void getAtomDataScale (
double* min ,
double* max);
296 void addDecoration(
Atom *a,
Load *ld,
double time,
double defaultSize,
double *max,
double *min,
double *val);
309 return myPMManagerDC;
313 return simulationDialog;
329 return atomDataDisplay;
333 loadsChangedFlag =
false;
337 return loadsChangedFlag;
PMManagerDC * getPMManagerDC()
get the current physical model
Definition: LoadsManager.h:308
std::AtomDataVector & getAtomData()
get the current list of all the atom data
Definition: LoadsManager.h:340
The manager of the physical model data.
Definition: PMManagerDC.h:97
This class allows you to display a geometric object (arrow, sphere, ...) positionned on an atom...
Definition: AtomDecoration.h:46
LoadsSimulation * getLoadsSimulation()
Definition: LoadsManager.h:312
QString atomDataName
name of the add-on atom data
Definition: LoadsManager.h:285
bool displayLoads() const
return true only if the loads are currently being displayed in 3D
Definition: LoadsManager.h:320
LoadsSimulation * simulationDialog
the simulation dialog
Definition: LoadsManager.h:267
std::pair< Atom *, double > AtomDataPair
definition of a couple (=STL pair) [Atom *, double] this associates an atom to a given data (scalar v...
Definition: LoadsManager.h:55
bool loadsChangedFlag
has the load list been changed since the last simulation
Definition: LoadsManager.h:258
QString fileName
the current name of managed file
Definition: LoadsManager.h:249
AtomDataDisplayType getAtomDataDisplay() const
get current atom display type
Definition: LoadsManager.h:328
#define PHYSICALMODEL_COMPONENT_API
Definition: PMComponentAPI.h:54
QString motorAddonLocation
the current animation motor add-on location
Definition: LoadsManager.h:273
QDockWidget * simDock
the dock widget where the simulation dialog is
Definition: LoadsManager.h:270
void setChangedFlagOff()
set the Loads changed flag to false;
Definition: LoadsManager.h:332
bool getLoadsChangedFlag()
return the loads changed flag value;
Definition: LoadsManager.h:336
This class makes it possible to manage a list of "Load".
Definition: Loads.h:71
std::vector< std::AtomDataPair > AtomDataVector
a vector of atom data
Definition: LoadsManager.h:57
AtomDataDisplayType atomDataDisplay
which atom data are to display: none, displacements, distances, ...
Definition: LoadsManager.h:279
bool changed
had the load list been changed since the last time it was saved
Definition: LoadsManager.h:255
double min
current minimum value of the data scale
Definition: LoadsManager.h:302
do not display any atom data
Definition: LoadsManager.h:166
This class manages the applied all loads (see LML), deformation add-on, atom data monitoring and atom...
Definition: LoadsManager.h:69
display add-on atom data (i.e. atom data computed by the add-on)
Definition: LoadsManager.h:167
QSet< AtomDecoration * > representation3D
List of arrow and sphere representing the loads in 3D.
Definition: LoadsManager.h:243
An atom has an unique index in the physical model object, a 3D position, and different basic properti...
Definition: Atom.h:49
bool constrainedAtomDataScale
current state of the data scale
Definition: LoadsManager.h:299
Loads * myLoads
all the managed loads
Definition: LoadsManager.h:252
AtomDataDisplayType
Definition: LoadsManager.h:165
display distances from the reference PML
Definition: LoadsManager.h:169
This is the main class of this project.
Definition: PhysicalModel.h:86
This dialog allows one to run a simulation using a simulation motor.
Definition: LoadsSimulation.h:53
PhysicalModel * referencePM
the physical model to use as the reference for some atom data display
Definition: LoadsManager.h:282
bool showLoads
are the load currently displayed in 3D?
Definition: LoadsManager.h:276
Class that describes a load to be used in the simulation.
Definition: Load.h:53
This dialog allows one to see the simulation It plays the impload, allowing the user to see the evolu...
Definition: LoadsMovie.h:42
A clean dialog to edit (add, modify, delete), loads and their parameters, directly from Core...
Definition: LoadsEditor.h:40
display total displacements from initial position
Definition: LoadsManager.h:168
double max
current maximum value of the data scale
Definition: LoadsManager.h:305
std::AtomDataVector atomData
List of atom data values (one value per atom)
Definition: LoadsManager.h:246
bool isModified() const
return the current state regarding modification since the last save
Definition: LoadsManager.h:316
PhysicalModel * getReferencePM() const
return the reference physical model to use for some computations
Definition: LoadsManager.h:324
PMManagerDC * myPMManagerDC
the PM manager DC
Definition: LoadsManager.h:240
LoadsEditor * loadsEditor
the dialog where all the loads are shown, and can be modified
Definition: LoadsManager.h:261
LoadsMovie * previewDialog
the preview (simulation animation dialog)
Definition: LoadsManager.h:264