From 17cecc2bbe2251197474a7bd1eb8a5fc3d902906 Mon Sep 17 00:00:00 2001 From: Carsten Niehaus Date: Sun, 24 Sep 2006 16:26:18 +0000 Subject: [PATCH] * Adding a better ctor so that I can finally rewrite the specturm-widget svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=587991 --- libscience/element.h | 4 ++++ libscience/spectrum.h | 9 +++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/libscience/element.h b/libscience/element.h index 6397c4c..19e4f4c 100644 --- a/libscience/element.h +++ b/libscience/element.h @@ -76,6 +76,10 @@ class EDUSCIENCE_EXPORT Element return dataList; } + void setSpectrum( Spectrum * spec ){ + m_spectrum = spec; + } + Spectrum * spectrum() const{ return m_spectrum; } diff --git a/libscience/spectrum.h b/libscience/spectrum.h index bdd4420..a5ecc1f 100644 --- a/libscience/spectrum.h +++ b/libscience/spectrum.h @@ -57,6 +57,11 @@ class EDUSCIENCE_EXPORT Spectrum intensity = -1; } + peak(double wl, int in ){ + wavelength = wl; + intensity = in; + } + ///in nm double wavelength; @@ -118,10 +123,6 @@ class EDUSCIENCE_EXPORT Spectrum QList peaklist(){ return m_peaklist; } - - QList peakList(){ - return peaklist(); - } /** * cache the values of the biggest and -- 2.47.3