示例#1
0
        void KeepUpdating(ProcResult result)
        {
            smidgeX = (_betaMax - _betaMin) / 500;
            smidgeY = (_eMax - _eMin) / 500;

            var boundingRect = new R <float>(_betaMin, _betaMax, 1.8f, 2.7f);

            Energy = (float)result.Data["Energy"];


            GraphVm.WbImageVm.ImageData = Id.AddRect(
                GraphVm.WbImageVm.ImageData,
                new RV <float, Color>(
                    minX: BetaLow,
                    maxX: BetaLow + smidgeX,
                    minY: Energy,
                    maxY: Energy + smidgeY,
                    v: Colors.Red
                    ));

            GraphVm.WbImageVm.ImageData = Id.AddRect(
                GraphVm.WbImageVm.ImageData,
                new RV <float, Color>(
                    minX: BetaHigh,
                    maxX: BetaHigh + smidgeX,
                    minY: Energy,
                    maxY: Energy + smidgeY,
                    v: Colors.Blue
                    ));

            GraphLatticeVm.Update(result.Data["Grid"]);

            SetBeta();
            _updateUI.OnNext(result);
        }
示例#2
0
        public static void UpdateGGView(ProcResult result, UpdateGRVm ugvm)
        {
            ugvm.GraphLatticeVm.Update(result.Data["Grid"]);
            ugvm.Energy = 4.0f - (float)result.Data["Energy"];

            var smidgeX = (ugvm.BetaBounds.Max - ugvm.BetaBounds.Min) / 500;
            var smidgeY = (ugvm.EnergyBounds.Max - ugvm.EnergyBounds.Min) / 500;

            ugvm.GraphVm.WbImageVm.ImageData = Id.AddRect(
                ugvm.GraphVm.WbImageVm.ImageData,
                new RV <float, Color>(
                    minX: ugvm.Beta,
                    maxX: ugvm.Beta + smidgeX,
                    minY: ugvm.Energy,
                    maxY: ugvm.Energy + smidgeY,
                    v: (ugvm.Decreasing) ? Colors.Red : Colors.Black
                    ));
        }
示例#3
0
        void KeepUpdating(ProcResult result)
        {
            smidgeX = (_betaMax - _betaMin) / 500;
            smidgeY = (_eMax - _eMin) / 500;

            var boundingRect = new R <float>(_betaMin, _betaMax, 1.8f, 2.7f);

            Energy = (float)result.Data["Energy"];
            GraphLatticeVm.Update(result.Data["Grid"]);

            GraphVm.WbImageVm.ImageData = Id.AddRect(
                GraphVm.WbImageVm.ImageData,
                new RV <float, Color>(
                    minX: Beta,
                    maxX: Beta + smidgeX,
                    minY: Energy,
                    maxY: Energy + smidgeY,
                    v: GetColor()
                    ));
        }