public void OnPlotGeomParamsChanged() { Mouse.OverrideCursor = Cursors.Wait; s?.ChangeParams(Settings.PlotGeomParams.XMin, Settings.PlotGeomParams.XMax, Settings.PlotGeomParams.YMax, Settings.PlotGeomParams.MRKh, Settings.PlotGeomParams.hVertical); Mouse.OverrideCursor = Cursors.Arrow; PlotRefresh(); }
private void MapsList_SelectionChanged(object sender, SelectionChangedEventArgs e) { Mouse.OverrideCursor = Cursors.Wait; switch (mapsList.SelectedIndex) { case 0: w.f = new Hydrodynamics_Sources.Conformal_Maps.IdentityTransform(); s.Rebuild(); break; case 1: w.f = new Hydrodynamics_Sources.Conformal_Maps.Porebrick(1); s.Rebuild(); break; case 2: w.f = new Hydrodynamics_Sources.Conformal_Maps.EjectedSegment(0, 1); s.Rebuild(); break; case 3: w.f = new Hydrodynamics_Sources.Conformal_Maps.Number81(1); s.Rebuild(); break; case 4: w.f = new Hydrodynamics_Sources.Conformal_Maps.Number79(1); Settings.PlotGeomParams.XMax = 65; Settings.PlotGeomParams.XMin = -20; Settings.PlotGeomParams.YMax = 70; Settings.PlotGeomParams.MRKh = 0.1; Settings.PlotGeomParams.hVertical = 0.3; s.ChangeParams(Settings.PlotGeomParams.XMin, Settings.PlotGeomParams.XMax, Settings.PlotGeomParams.YMax, Settings.PlotGeomParams.MRKh, Settings.PlotGeomParams.hVertical); break; case 5: w.f = new Hydrodynamics_Sources.Conformal_Maps.Number89(2, 1); s.Rebuild(); break; case 6: w.f = new Hydrodynamics_Sources.Conformal_Maps.Triangle(1, 1); s.Rebuild(); break; case 7: w.f = new Hydrodynamics_Sources.Conformal_Maps.Number85(1); s.Rebuild(); break; default: return; } ChangeParamsConfiguration(); Mouse.OverrideCursor = Cursors.Arrow; PlotRefresh(); }
public void OnPlotGeomParamsChanged() { s?.ChangeParams(Settings.PlotGeomParams.XMin, Settings.PlotGeomParams.XMax, Settings.PlotGeomParams.YMax, Settings.PlotGeomParams.MRKh, Settings.PlotGeomParams.hVertical); PlotRefresh(); }