public void deleteShape(Shapes.Point point) { string seriesName = pointSeriesName(point); Series series = chart.Series[seriesName]; chart.Series.Remove(series); }
private void pointPlotter(Shapes.Point point, double rot_x, double rot_y, double rot_z, p3D.Point3D center) { string series = pointSeriesName(point); Convert3DTo2D(rot_x, rot_y, rot_z, center.X, center.Y, center.Z, ref x, ref y, ref z); chart.Series[series].Points.AddXY(x, y); }
public void Plot(Shapes.Point point, p3D.Point3D center, double rot_x, double rot_y, double rot_z) { string series = pointSeriesName(point); chart.Series[series].Points.Clear(); pointPlotter(point, rot_x, rot_y, rot_z, center); chartSizer(chart); }
public void plotSetup(Shapes.Point point, System.Drawing.Color color) { string series = pointSeriesName(point); chart.Series.Add(series); chart.Series[series].ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Point; chart.Series[series].Color = color; }
private string pointSeriesName(Shapes.Point point) { string point_series = String.Format("point_{0}", point.Name); return(point_series); }