Beispiel #1
0
        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);
        }
Beispiel #2
0
        private void SetupPlotTypeCheckedListBox()
        {
            PlotTypeCheckedListBox.SelectionMode = SelectionMode.One;//determine selection mode

            PlotTypeCheckedListBox.BeginUpdate();
            PlotTypeCheckedListBox.Items.Add("Node", true);
            PlotTypeCheckedListBox.Items.Add("Wire Mesh", true);
            PlotTypeCheckedListBox.Items.Add("Color Fill", true);
            PlotTypeCheckedListBox.EndUpdate();
            PlotTypeCheckedListBox.CheckOnClick = true;
        }
Beispiel #3
0
        private void PlotTypeCheckedListBox_MouseClick(object sender, MouseEventArgs e)
        {
            int SelectedIndex = PlotTypeCheckedListBox.SelectedIndex;

            PlotTypeCheckedListBox.SetItemChecked(SelectedIndex, !PlotTypeCheckedListBox.GetItemChecked(SelectedIndex));
        }