Esempio n. 1
0
        public Spectrum()
        {
            points = new SpectralPointCollection();

            name = "Spectrum";

            category = "uncategorized";
        }
Esempio n. 2
0
        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();
        }
Esempio n. 3
0
 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));
 }
Esempio n. 4
0
        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();
        }