13 for (
int i=0; i<nCals; i++) {
21 printf(
"Deleting calibrant library\n");
33 int ns = settings->beginReadArray(section+
"/stdcalibrants");
35 for (
int i=0; i<ns; i++) {
36 settings->setArrayIndex(i);
38 int isUsed = settings->value(
"isUsed").toInt();
45 int nc = settings->beginReadArray(section+
"/calibrants");
55 for (
int i=0; i<nc; i++) {
56 settings->setArrayIndex(i);
72 settings->beginWriteArray(section+
"/stdcalibrants");
74 for (
int i=0; i<nstd; i++) {
75 settings->setArrayIndex(i);
76 settings->setValue(
"isUsed",
m_Calibrants[i]->get_IsUsed());
83 settings->beginWriteArray(section+
"/calibrants");
85 for (
int i=0; i<n; i++) {
86 settings->setArrayIndex(i);
121 res->set_Description(
"Silicon Powder");
135 res->set_Name(
"Al2O3");
136 res->set_Description(
"Alumina Powder");
138 res->set_A(4.7590914);
139 res->set_B(4.7590914);
140 res->set_C(12.991779);
150 res->set_Name(
"NAC");
151 res->set_Description(
"NAC Powder");
153 res->set_A(10.251437);
154 res->set_B(10.251437);
155 res->set_C(10.251437);
165 res->set_Name(
"LaB6");
166 res->set_Description(
"NIST SRM LaB6 660a");
180 res->set_Name(
"ZnO");
181 res->set_Description(
"Zinc oxide");
195 res->set_Name(
"CeO2");
196 res->set_Description(
"Cerium(IV) dioxide");
210 res->set_Name(
"Cr2O3");
211 res->set_Description(
"Chromium oxide");
226 res->set_Description(
"Germanium Powder");
252 return p->get_Name();
QWeakPointer< QxrdCalibrant > QxrdCalibrantWPtr
void appendCalibrant(QxrdCalibrantPtr cal=QxrdCalibrantPtr())
virtual void readSettings(QSettings *set, QString section)
QxrdCalibrantLibrary(QcepSettingsSaverWPtr saver, QxrdExperimentWPtr exp)
int numberStandardCalibrants()
QxrdExperimentWPtr m_Experiment
QxrdCalibrantWPtr calibrant(int n)
QWeakPointer< QxrdExperiment > QxrdExperimentWPtr
void writeSettings(QSettings *settings, QString section)
QSharedPointer< QxrdCalibrant > QxrdCalibrantPtr
virtual ~QxrdCalibrantLibrary()
QcepSettingsSaverWPtr m_Saver
QxrdCalibrantPtr standardCalibrant(int n)
virtual void writeSettings(QSettings *set, QString section)
QString calibrantName(int n)
QVector< QxrdCalibrantPtr > m_Calibrants
QWeakPointer< QcepSettingsSaver > QcepSettingsSaverWPtr
void readSettings(QSettings *settings, QString section)