Пример #1
0
 public void Apply(DecalSettingsDataContainer.DecalLayerData data)
 {
     Channel1.Apply(data.Channel1);
     Channel2.Apply(data.Channel2);
     Channel3.Apply(data.Channel3);
     Channel4.Apply(data.Channel4);
 }
Пример #2
0
        public void EvaluateOutputRange(out Vector4 start, out Vector4 end)
        {
            var r = Channel1.EvaluateOutputRange();
            var g = Channel2.EvaluateOutputRange();
            var b = Channel3.EvaluateOutputRange();
            var a = Channel4.EvaluateOutputRange();

            start = new Vector4(r.x, g.x, b.x, a.x);
            end   = new Vector4(r.y, g.y, b.y, a.y);
        }
Пример #3
0
        public async void SetStation(Station _station)
        {
            Channel1.Clear();
            Channel2.Clear();
            Channel3.Clear();
            Channel4.Clear();

            await Task.Run(() => _dataSheet = ShowDB.Query(_station, _plotType));

            // Channel 1

            for (int i = 0; i < _dataSheet.Data[0].Count; i++)
            {
                Channel1.Add(new DataPoint(XFormat(i), _dataSheet.Data[0][i]));
            }

            // Channel 2

            if (_dataSheet.Data.Length >= 2)
            {
                for (int i = 0; i < _dataSheet.Data[1].Count; i++)
                {
                    Channel2.Add(new DataPoint(XFormat(i), _dataSheet.Data[1][i]));
                }
            }

            if (_station.DetectorConfiguration == DetectorConfiguration.MasterAndSlave)
            {
                // Channel 3

                for (int i = 0; i < _dataSheet.Data[2].Count; i++)
                {
                    Channel3.Add(new DataPoint(XFormat(i), _dataSheet.Data[2][i]));
                }

                // Channel 4

                for (int i = 0; i < _dataSheet.Data[3].Count; i++)
                {
                    Channel4.Add(new DataPoint(XFormat(i), _dataSheet.Data[3][i]));
                }
            }
        }
Пример #4
0
 internal DecalSettingsDataContainer.DecalLayerData Get()
 {
     return(new DecalSettingsDataContainer.DecalLayerData(Channel1.Get(), Channel2.Get(), Channel3.Get(), Channel4.Get()));
 }