Namespace: DeltaEngine.Rendering2D.Graphs
Assembly: DeltaEngine.Rendering2D.Graphs (in DeltaEngine.Rendering2D.Graphs.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Rendering2D.Graphs.Tests.GraphLineTests
2 unit tests call DeltaEngine.Rendering2D.Graphs.Graph.RemoveLine(DeltaEngine.Rendering2D.Graphs.GraphLine)
Assembly: DeltaEngine.Rendering2D.Graphs (in DeltaEngine.Rendering2D.Graphs.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Parameters
- line
- Type: DeltaEngine.Rendering2D.Graphs GraphLine
Remarks
Examples
[Test] public void RefreshWillRemoveLines() { GraphLine line = CreateLineWithTwoPoints(); line.AddValue(0.4f, 4.0f); line.lines.Add(new Line2D(Vector2D.Zero, Vector2D.One, Color.Purple)); line.Refresh(); }
[Test, CloseAfterFirstFrame] public void RemovingGraphLineRemovesItsLines() { GraphLine line = graph.CreateLine("", LineColor); line.AddPoint(new Vector2D(-1.0f, -1.0f)); line.AddPoint(new Vector2D(0.1f, 0.5f)); Assert.AreEqual(1, graph.Lines.Count); Assert.AreEqual(1, line.lines.Count); graph.RemoveLine(line); Assert.AreEqual(0, graph.Lines.Count); Assert.AreEqual(0, line.lines.Count); }
See Also