Isotope *isotope = new Isotope( neutrons, percentage, weight, halflife, format, alphadecay, betaplusdecay, betaminusdecay, ecdecay );
isolist.append( isotope );
}
+
+ QDomNodeList spectrumList = domElement.elementsByTagName( "spectra" );
+ QValueList<double> speclist;
+ for( uint i = 0; i < spectrumList.length(); i++ )
+ {
+ QDomElement spec = spectrumList.item( i ).toElement();
+ double wavelenght = spec.text().toDouble();
+ kdDebug() << "double ist: " << wavelenght << " Length: " << spectrumList.length() << endl;
+ speclist.append( wavelenght );
+ }
Element *e = new Element();
+ e->setSpectrumList( speclist );
e->setDate(date);
e->setBiologicalMeaning(bio);
e->setNumber( number );
}
QValueList<Isotope*> isotopes() const{
- return m_isotopeList;
- }
+ return m_isotopeList;
+ }
+
+ QValueList<double> spectrumList() const{
+ return m_spectrumList;
+ }
void setIsotopeList( QValueList<Isotope*> list ){
m_isotopeList = list;
}
+ void setSpectrumList( QValueList<double> list ){
+ m_spectrumList = list;
+ }
+
doubleList ionisationList() const{
return m_ionenergies;
}
int m_ElementNumber;
QValueList<Isotope*> m_isotopeList;
+
+ QValueList<double> m_spectrumList;
QColor m_Color;