Example #1
0
 public MeasPoint(int _index)
 {
     m_Freq  = 9000;
     m_Ampl  = 0;
     m_Time  = 1000;
     Band    = InstrBands.NAN;
     m_Index = _index;
 }
Example #2
0
        public static void AddPoint(long _freq, int _ampl, int _time_ms, InstrBands _band)
        {
            MeasPoint mp = new MeasPoint(m_Points.Count);

            mp.Frequency = _freq;
            mp.Amplitude = _ampl;
            mp.Time_ms   = _time_ms;
            mp.Band      = _band;

            m_Points.Add(mp);
        }
Example #3
0
 public static void EditPoint(int _index, long _freq, int _ampl, int _time, InstrBands _band)
 {
     if (_freq < long.MaxValue)
     {
         m_Points[_index].Frequency = _freq;
     }
     if (_ampl < int.MaxValue)
     {
         m_Points[_index].Amplitude = _ampl;
     }
     if (_time < int.MaxValue)
     {
         m_Points[_index].Time_ms = _time;
     }
     if (_band != InstrBands.Null)
     {
         m_Points[_index].Band = _band;
     }
 }