26 #ifndef LOADSMANAGER_H
27 #define LOADSMANAGER_H
55 typedef std::pair<Atom *, double> AtomDataPair;
57 typedef std::vector<std::AtomDataPair> AtomDataVector;
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
174 void setAtomDataDisplay(AtomDataDisplayType);
177 AtomDataDisplayType getAtomDataDisplay()
const;
180 void setReferencePML(
const QString&);
183 PhysicalModel * getReferencePM()
const;
188 void setAtomData(std::AtomDataVector &, QString name =
"Add-On Monitor");
191 std::AtomDataVector & getAtomData();
194 void updateAtomDataScale(
double min,
double max);
202 bool isModified()
const;
205 void setChangedFlagOff();
208 bool getLoadsChangedFlag();
211 bool userWantsToSave();
217 QString getAnimationMotorAddonLocation();
220 void setAnimationMotorAddonLocation(QString);
223 void userConstrainedAtomDataScale (
bool constrained);
226 bool getUserConstrainedAtomDataScale();
232 void getAtomDataScale (
double* min ,
double* max);
290 void addDecoration(Atom *a, Load *ld,
double time,
double defaultSize,
double *max,
double *min,
double *val);