public Spectrum() { points = new SpectralPointCollection(); name = "Spectrum"; category = "uncategorized"; }
public Spectrum(Spectrum sp) { //properties kopieren name = sp.Name; category = sp.Category; specInt = sp.Interpolation; points = new SpectralPointCollection(sp.Points); baseIntensity = sp.BaseIntensity; imageIndex = sp.ImageIndex; lambdaMin = sp.LambdaMin; lambdaMax = sp.LambdaMax; CallSpectrumChanged(); }
public Spectrum(SerializationInfo info, StreamingContext ctxt) { this.name = (String)info.GetValue("SpectrumName", typeof(String)); this.category = (String)info.GetValue("CategoryName", typeof(String)); this.specInt = (ESpectralInterpolation)info.GetValue("SpectralInterpolation", typeof(ESpectralInterpolation)); this.points = (SpectralPointCollection)info.GetValue("SpectralPoints", typeof(SpectralPointCollection)); this.baseIntensity = (double)info.GetValue("BaseIntensity", typeof(double)); this.imageIndex = (int)info.GetValue("ImageIndex", typeof(Int32)); this.lambdaMin = (double)info.GetValue("LambdaMin", typeof(double)); this.lambdaMax = (double)info.GetValue("LambdaMax", typeof(double)); }
public Spectrum(ESpectrumTemplate eSpTemplate, ESpectralInterpolation eSpInterpolation) { category = "uncategorized"; points = new SpectralPointCollection(); name = "Spectrum"; specInt = eSpInterpolation; switch (eSpTemplate) { case ESpectrumTemplate.Empty: break; case ESpectrumTemplate.Visible: name = "Visible Spectrum"; AddSpectralPoint(380, 1); AddSpectralPoint(780, 1); break; case ESpectrumTemplate.ExtendedVisible: name = "Extended Visible Spectrum"; AddSpectralPoint(324, 1); AddSpectralPoint(836, 1); break; default: break; } Clear(); }