Inheritance: global::System.IDisposable
Exemplo n.º 1
0
 public Point2d polarPoint(float angle, float dist)
 {
     Point2d ret = new Point2d(touchvgPINVOKE.Point2d_polarPoint(swigCPtr, angle, dist), true);
     return ret;
 }
Exemplo n.º 2
0
 public override bool setHandlePoint(int index, Point2d pt, float tol)
 {
     bool ret = touchvgPINVOKE.MgEllipse_setHandlePoint(swigCPtr, index, Point2d.getCPtr(pt), tol);
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Exemplo n.º 3
0
 public float distanceTo(Point2d pnt)
 {
     float ret = touchvgPINVOKE.Point2d_distanceTo(swigCPtr, Point2d.getCPtr(pnt));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Exemplo n.º 4
0
 public static void beziersBox(Box2d box, int count, Point2d points)
 {
     touchvgPINVOKE.mgnear_beziersBox__SWIG_1(Box2d.getCPtr(box), count, Point2d.getCPtr(points));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
 }
Exemplo n.º 5
0
        public Point2d getMidPoint()
        {
            Point2d ret = new Point2d(touchvgPINVOKE.MgArc_getMidPoint(swigCPtr), true);

            return(ret);
        }
Exemplo n.º 6
0
 public Point2d subtract(Vector2d vec)
 {
     Point2d ret = new Point2d(touchvgPINVOKE.Point2d_subtract__SWIG_1(swigCPtr, Vector2d.getCPtr(vec)), true);
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Exemplo n.º 7
0
 public static Point2d kOrigin()
 {
     Point2d ret = new Point2d(touchvgPINVOKE.Point2d_kOrigin(), false);
     return ret;
 }
Exemplo n.º 8
0
        public Point2d snapPoint(MgMotion sender, Point2d orignPt)
        {
            Point2d ret = new Point2d(touchvgPINVOKE.MgCommandDraw_snapPoint__SWIG_3(swigCPtr, MgMotion.getCPtr(sender), Point2d.getCPtr(orignPt)), true);

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 9
0
        public Point2d endPoint()
        {
            Point2d ret = new Point2d(touchvgPINVOKE.MgBaseLines_endPoint(swigCPtr), true);

            return(ret);
        }
Exemplo n.º 10
0
 protected virtual void setStepPoint(int step, Point2d pt)
 {
     if (SwigDerivedClassHasMethod("setStepPoint", swigMethodTypes19))
     {
         touchvgPINVOKE.MgCommandDraw_setStepPointSwigExplicitMgCommandDraw(swigCPtr, step, Point2d.getCPtr(pt));
     }
     else
     {
         touchvgPINVOKE.MgCommandDraw_setStepPoint(swigCPtr, step, Point2d.getCPtr(pt));
     }
     if (touchvgPINVOKE.SWIGPendingException.Pending)
     {
         throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 11
0
        public Point2d snapPoint(MgMotion sender)
        {
            Point2d ret = new Point2d(touchvgPINVOKE.MgCommandDraw_snapPoint__SWIG_1(swigCPtr, MgMotion.getCPtr(sender)), true);

            return(ret);
        }
Exemplo n.º 12
0
        public bool setTanStartEnd(Vector2d startTan, Point2d start, Point2d end)
        {
            bool ret = touchvgPINVOKE.MgArc_setTanStartEnd(swigCPtr, Vector2d.getCPtr(startTan), Point2d.getCPtr(start), Point2d.getCPtr(end));

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 13
0
        public bool setCenterStartEnd(Point2d center, Point2d start, Point2d end)
        {
            bool ret = touchvgPINVOKE.MgArc_setCenterStartEnd__SWIG_1(swigCPtr, Point2d.getCPtr(center), Point2d.getCPtr(start), Point2d.getCPtr(end));

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 14
0
        public bool setStartMidEnd(Point2d start, Point2d point, Point2d end)
        {
            bool ret = touchvgPINVOKE.MgArc_setStartMidEnd(swigCPtr, Point2d.getCPtr(start), Point2d.getCPtr(point), Point2d.getCPtr(end));

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 15
0
 public Point2d scaleBy(float s)
 {
     Point2d ret = new Point2d(touchvgPINVOKE.Point2d_scaleBy__SWIG_1(swigCPtr, s), false);
     return ret;
 }
Exemplo n.º 16
0
        public virtual bool insertPoint(int segment, Point2d pt)
        {
            bool ret = (SwigDerivedClassHasMethod("insertPoint", swigMethodTypes35) ? touchvgPINVOKE.MgBaseLines_insertPointSwigExplicitMgBaseLines(swigCPtr, segment, Point2d.getCPtr(pt)) : touchvgPINVOKE.MgBaseLines_insertPoint(swigCPtr, segment, Point2d.getCPtr(pt)));

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 17
0
 public Point2d set(Point2d pnt)
 {
     Point2d ret = new Point2d(touchvgPINVOKE.Point2d_set__SWIG_1(swigCPtr, Point2d.getCPtr(pnt)), false);
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Exemplo n.º 18
0
        public virtual Point2d getPoint(int index)
        {
            Point2d ret = new Point2d(touchvgPINVOKE.MgBaseShape_getPoint(swigCPtr, index), true);

            return(ret);
        }
Exemplo n.º 19
0
 internal static HandleRef getCPtr(Point2d obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Exemplo n.º 20
0
        public float hitTest2(Point2d pt, float tol, Point2d nearpt)
        {
            float ret = touchvgPINVOKE.MgBaseShape_hitTest2(swigCPtr, Point2d.getCPtr(pt), tol, Point2d.getCPtr(nearpt));

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 21
0
 public static void moveRectHandle(Box2d rect, int index, Point2d pt)
 {
     touchvgPINVOKE.mgnear_moveRectHandle__SWIG_1(Box2d.getCPtr(rect), index, Point2d.getCPtr(pt));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
 }
Exemplo n.º 22
0
        public virtual Point2d getHandlePoint(int index)
        {
            Point2d ret = new Point2d((SwigDerivedClassHasMethod("getHandlePoint", swigMethodTypes27) ? touchvgPINVOKE.MgBaseShape_getHandlePointSwigExplicitMgBaseShape(swigCPtr, index) : touchvgPINVOKE.MgBaseShape_getHandlePoint(swigCPtr, index)), true);

            return(ret);
        }
Exemplo n.º 23
0
 public static void cubicSplinesBox(Box2d box, int n, Point2d knots, Vector2d knotvs)
 {
     touchvgPINVOKE.mgnear_cubicSplinesBox__SWIG_2(Box2d.getCPtr(box), n, Point2d.getCPtr(knots), Vector2d.getCPtr(knotvs));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
 }
Exemplo n.º 24
0
        public virtual bool setHandlePoint(int index, Point2d pt, float tol)
        {
            bool ret = (SwigDerivedClassHasMethod("setHandlePoint", swigMethodTypes28) ? touchvgPINVOKE.MgBaseShape_setHandlePointSwigExplicitMgBaseShape(swigCPtr, index, Point2d.getCPtr(pt), tol) : touchvgPINVOKE.MgBaseShape_setHandlePoint(swigCPtr, index, Point2d.getCPtr(pt), tol));

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 25
0
 public override float hitTest(Point2d pt, float tol, MgHitResult res)
 {
     float ret = touchvgPINVOKE.MgEllipse_hitTest(swigCPtr, Point2d.getCPtr(pt), tol, MgHitResult.getCPtr(res));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Exemplo n.º 26
0
 private IntPtr SwigDirectorgetHandlePoint(int index)
 {
     return(Point2d.getCPtr(getHandlePoint(index)).Handle);
 }
Exemplo n.º 27
0
 public override void setPoint(int index, Point2d pt)
 {
     touchvgPINVOKE.MgEllipse_setPoint(swigCPtr, index, Point2d.getCPtr(pt));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
 }
Exemplo n.º 28
0
        public static bool cubicSplinesIntersectBox(Box2d box, int n, Point2d knots, Vector2d knotvs)
        {
            bool ret = touchvgPINVOKE.mgnear_cubicSplinesIntersectBox__SWIG_2(Box2d.getCPtr(box), n, Point2d.getCPtr(knots), Vector2d.getCPtr(knotvs));

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 29
0
 public bool isEqualTo(Point2d pnt)
 {
     bool ret = touchvgPINVOKE.Point2d_isEqualTo__SWIG_1(swigCPtr, Point2d.getCPtr(pnt));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Exemplo n.º 30
0
        public static float nearestOnBezier(Point2d pt, Point2d pts, Point2d nearpt)
        {
            float ret = touchvgPINVOKE.mgnear_nearestOnBezier(Point2d.getCPtr(pt), Point2d.getCPtr(pts), Point2d.getCPtr(nearpt));

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 31
0
 public Point2d rulerPoint(Point2d dir, float xoff, float yoff)
 {
     Point2d ret = new Point2d(touchvgPINVOKE.Point2d_rulerPoint__SWIG_1(swigCPtr, Point2d.getCPtr(dir), xoff, yoff), true);
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Exemplo n.º 32
0
        public static bool beziersIntersectBox(Box2d box, int count, Point2d points)
        {
            bool ret = touchvgPINVOKE.mgnear_beziersIntersectBox__SWIG_1(Box2d.getCPtr(box), count, Point2d.getCPtr(points));

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 33
0
 public Point2d set(float xx, float yy)
 {
     Point2d ret = new Point2d(touchvgPINVOKE.Point2d_set__SWIG_0(swigCPtr, xx, yy), false);
     return ret;
 }
Exemplo n.º 34
0
 public BoundBox extend(Point2d pnt) {
   BoundBox ret = new BoundBox(touchvgPINVOKE.BoundBox_extend(swigCPtr, Point2d.getCPtr(pnt)), false);
   if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
Exemplo n.º 35
0
 public Vector2d subtract(Point2d pnt)
 {
     Vector2d ret = new Vector2d(touchvgPINVOKE.Point2d_subtract__SWIG_0(swigCPtr, Point2d.getCPtr(pnt)), true);
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Exemplo n.º 36
0
 public bool contains(Point2d pnt) {
   bool ret = touchvgPINVOKE.BoundBox_contains(swigCPtr, Point2d.getCPtr(pnt));
   if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
Exemplo n.º 37
0
 public Point2d transform(Matrix2d m)
 {
     Point2d ret = new Point2d(touchvgPINVOKE.Point2d_transform(swigCPtr, Matrix2d.getCPtr(m)), true);
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Exemplo n.º 38
0
 public Point2d getCenter() {
   Point2d ret = new Point2d(touchvgPINVOKE.MgBaseRect_getCenter(swigCPtr), true);
   return ret;
 }
Exemplo n.º 39
0
 public Point2d(Point2d src)
     : this(touchvgPINVOKE.new_Point2d__SWIG_2(Point2d.getCPtr(src)), true)
 {
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
 }
Exemplo n.º 40
0
 public void setRectWithAngle(Point2d pt1, Point2d pt2, float angle, Point2d basept) {
   touchvgPINVOKE.MgBaseRect_setRectWithAngle(swigCPtr, Point2d.getCPtr(pt1), Point2d.getCPtr(pt2), angle, Point2d.getCPtr(basept));
   if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
 }
Exemplo n.º 41
0
 public Point2d add(Point2d pnt)
 {
     Point2d ret = new Point2d(touchvgPINVOKE.Point2d_add(swigCPtr, Point2d.getCPtr(pnt)), true);
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Exemplo n.º 42
0
 public void setRect4P(Point2d points) {
   touchvgPINVOKE.MgBaseRect_setRect4P(swigCPtr, Point2d.getCPtr(points));
 }
Exemplo n.º 43
0
 public static float nearestOnBezier(Point2d pt, Point2d pts, Point2d nearpt)
 {
     float ret = touchvgPINVOKE.mgnear_nearestOnBezier(Point2d.getCPtr(pt), Point2d.getCPtr(pts), Point2d.getCPtr(nearpt));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Exemplo n.º 44
0
 public void setCenter(Point2d pt) {
   touchvgPINVOKE.MgBaseRect_setCenter(swigCPtr, Point2d.getCPtr(pt));
   if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
 }
Exemplo n.º 45
0
 public static bool beziersIntersectBox(Box2d box, int count, Point2d points)
 {
     bool ret = touchvgPINVOKE.mgnear_beziersIntersectBox__SWIG_1(Box2d.getCPtr(box), count, Point2d.getCPtr(points));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Exemplo n.º 46
0
 public override Point2d getPoint(int index)
 {
     Point2d ret = new Point2d(touchvgPINVOKE.MgEllipse_getPoint(swigCPtr, index), true);
     return ret;
 }
Exemplo n.º 47
0
 public static bool cubicSplinesIntersectBox(Box2d box, int n, Point2d knots, Vector2d knotvs, bool closed)
 {
     bool ret = touchvgPINVOKE.mgnear_cubicSplinesIntersectBox__SWIG_1(Box2d.getCPtr(box), n, Point2d.getCPtr(knots), Vector2d.getCPtr(knotvs), closed);
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Exemplo n.º 48
0
        public override Point2d getHandlePoint(int index)
        {
            Point2d ret = new Point2d(touchvgPINVOKE.MgArc_getHandlePoint(swigCPtr, index), true);

            return(ret);
        }