public Metafile MakePlot(double ScaleFactor) { int PlotResolution = Convert.ToInt32(ResolutionTextBox.Text); Surfaces[] ElementSurfaces = Element_ND_Elastic.Make_GraphicSurfaces(FEMSolver.Elements, PlotResolution); ColorPlot_2D Plot = new OOPTools_Graphics.ColorPlot_2D(); Plot.Plot_Title.Text = "Elastic Problems"; Plot.Plot_ObjectResolution = PlotResolution; Plot.NodesDisplayOn = false; if (PlotTypeCheckedListBox.GetItemChecked(0)) { Plot.NodesDisplayOn = true; } Plot.WireMeshOn = false; if (PlotTypeCheckedListBox.GetItemChecked(1)) { Plot.WireMeshOn = true; } Plot.ColorPlotOn = false; if (PlotTypeCheckedListBox.GetItemChecked(2)) { Plot.ColorPlotOn = true; } Metafile ImagePlot = Plot.DrawPlot(ElementSurfaces); return(ImagePlot); }
private void PlotTypeCheckedListBox_MouseClick(object sender, MouseEventArgs e) { int SelectedIndex = PlotTypeCheckedListBox.SelectedIndex; PlotTypeCheckedListBox.SetItemChecked(SelectedIndex, !PlotTypeCheckedListBox.GetItemChecked(SelectedIndex)); }