svn path=/trunk/KDE/kdeedu/kalzium/src/spectrum.h; revision=437347
Spectrum* Spectrum::adjustToWavelength( double min, double max )
{
- Spectrum *spec = new Spectrum();
+ Spectrum *spec = new Spectrum( m_parentElement );
QValueList<band>::const_iterator it = m_bandlist.begin();
const QValueList<band>::const_iterator itEnd = m_bandlist.end();
/**
* public ctor
*/
- Spectrum(){
+ Spectrum( Element* parent ){
+ m_parentElement = parent;
};
/**
*/
QString BandsAsHtml();
+ /**
+ * @return the parent element of this spectrum
+ */
+ Element* parentElement()
+ { return m_parentElement; }
+
private:
/**
* @return the smallest wavelength
* the cached values of the highest and lowest wavelength
*/
double m_max, m_min;
+
+ Element* m_parentElement;
};
/**