Пример #1
0
		private Geometry CreateGeometry(LevelLine lineData)
		{
			var transform = Plotter2D.Viewport.Transform;

			StreamGeometry geometry = new StreamGeometry();
			using (var context = geometry.Open())
			{
				context.BeginFigure(lineData.StartPoint.DataToScreen(transform), false, false);
				context.PolyLineTo(lineData.OtherPoints.DataToScreen(transform), true, true);
			}
			geometry.Freeze();
			return geometry;
		}
Пример #2
0
		internal void StartLine(Point p, double value01, double realValue)
		{
			LevelLine segment = new LevelLine { StartPoint = p, Value01 = value01, RealValue = realValue };
			lines.Add(segment);
		}