public StreamLinesBuilderForGroupLeader(PotentialHelp w, PlotWindowModel g) { this.w = w; function = new Conformal_Maps.IdentityTransform(); this.g = g; this.x_min = -w.a; this.x_max = w.a; y_max = Settings.PlotGeomParams.YMax; y_min = 0; h_mrk = Settings.PlotGeomParams.MRKh; h = Settings.PlotGeomParams.hVertical; StreamLinesBase = new List <List <DataPoint> >(); InitialBuild(); }
private void MapsList_SelectionChanged(object sender, SelectionChangedEventArgs e) { switch (mapsList.SelectedIndex) { #if !HELP_FOR_GROUP_LEADER case 0: w.f = new Hydrodynamics_Sources.Conformal_Maps.IdentityTransform(); break; case 1: w.f = new Hydrodynamics_Sources.Conformal_Maps.Plate(); break; case 2: w.f = new Hydrodynamics_Sources.Conformal_Maps.JoukowskiAirfoil(0, 0.05); break; #else case 0: Settings.PlotGeomParams.MRKh = 0.005; Settings.PlotGeomParams.hVertical = 0.05; wHelp = new Hydrodynamics_Sources.PotentialHelp(1, 1); s = new Hydrodynamics_Sources.StreamLinesBuilderForGroupLeader(wHelp, viewModel); break; #endif } Mouse.OverrideCursor = Cursors.Wait; ChangeParamsConfiguration(); s.Rebuild(); Mouse.OverrideCursor = Cursors.Arrow; PlotRefresh(); }