public override void Draw(IDrawingVisual gd) { if (gd == null) { return; } gd.Open(); gd.DrawLine(_startPoint, _endPoint); gd.Close(); }
public override void Draw(IDrawingVisual gd) { if (gd == null) { return; } gd.Open(); int numOfVertices = NumberOfVertices; for (int i = 0; i < numOfVertices - 1; ++i) { gd.DrawLine(GetPointAt(i), GetPointAt(i + 1)); } if (closed && numOfVertices > 2) { gd.DrawLine(GetPointAt(numOfVertices - 1), GetPointAt(0)); } gd.Close(); }
private void DrawMirrorLine() { _mirrorLine.Open(); _mirrorLine.DrawLine(startPoint, endPoint); _mirrorLine.Close(); }
protected virtual void DrawPath() { tmpLine.Open(); tmpLine.DrawLine(_originalGripPos, _mousePosInWorld); tmpLine.Close(); }