public void Clear() { m_DataSize = 0; m_Data.Clear(); m_Units.Clear(); Graphs.Clear(); m_SynchTime = null; DataGrid.Columns.Clear(); DataGrid.ItemsSource = null; m_Type = ""; if (GraphControl != null) { GraphPane pane = GraphControl.GraphPane; if (pane != null) { pane.Title.Text = ""; if (pane.XAxis != null) { pane.XAxis.Title.Text = ""; } if (pane.YAxis != null) { pane.YAxis.Title.Text = ""; } GraphControl.GraphPane.CurveList.Clear(); GraphControl.GraphPane.GraphObjList.Clear(); } GraphControl.Invalidate(); } }
public void ResetAll() { foreach (KeyValuePair <string, GPUGraphData> graph in Graphs) { graph.Value.Reset(); } Graphs.Clear(); }
private void CalculateGraphs(ChartSettings settings) { Graphs.Clear(); foreach (var element in settings.Lines) { double volume = element.Volume * m_parameters.LotSize; Graph graph = new Graph(volume, m_quotes); Graphs.Add(graph); } }
//x public void SetAbscissa(string abscissa) { m_Abs = abscissa; var currentOrdinates = Graphs.Select(t => t.YAxis).ToArray(); Graphs.Clear(); foreach (var ordinate in currentOrdinates) { BuildGraph(m_Abs, ordinate); } if (Graphs.Count > 0) { Redraw(); } }
// NOTE: This method is invoked from DependencyVisualiser.xaml public void BuildGraphs() { Graphs.Clear(); var repo = ResourceModel.Environment.ResourceRepository; var graphData = repo.GetDependenciesXml(ResourceModel, GetDependsOnMe); if (graphData == null) { throw new Exception(string.Format(GlobalConstants.NetworkCommunicationErrorTextFormat, "GetDependenciesXml")); } var graphGenerator = new DependencyGraphGenerator(); var graph = graphGenerator.BuildGraph(graphData.Message, ResourceModel.ResourceName, AvailableWidth, AvailableHeight); Graphs.Add(graph); }
private void GenGraph_Click(object sender, EventArgs e) { var pointCount = int.Parse(textBox2.Text); Graphs.Clear(); textBox1.Text = string.Empty; CreateGraph(new Point(50, 100), pointCount); InitializeGraph(GeneratingMethodEnum.SerialQuickHull); _graph.Origin = new Point(400, 100); InitializeGraph(GeneratingMethodEnum.OneThreadPerSplitQuickHull); _graph.Origin = new Point(50, 450); InitializeGraph(GeneratingMethodEnum.OneThreadSplitQuickHull); _graph.Origin = new Point(400, 450); InitializeGraph(GeneratingMethodEnum.SerialGiftWrapping); Invalidate(); }
/// <summary> /// Clears the displayed data /// </summary> public void ClearData() { ClearAnnotations(); Graphs.Clear(); }