예제 #1
0
        public override void Draw(IDrawingVisual gd)
        {
            if (gd == null)
            {
                return;
            }

            gd.Open();
            gd.DrawLine(_startPoint, _endPoint);
            gd.Close();
        }
예제 #2
0
        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();
        }
예제 #3
0
 private void DrawMirrorLine()
 {
     _mirrorLine.Open();
     _mirrorLine.DrawLine(startPoint, endPoint);
     _mirrorLine.Close();
 }
예제 #4
0
 protected virtual void DrawPath()
 {
     tmpLine.Open();
     tmpLine.DrawLine(_originalGripPos, _mousePosInWorld);
     tmpLine.Close();
 }