getCPtr() static private méthode

static private getCPtr ( Point2d obj ) : HandleRef
obj Point2d
Résultat HandleRef
Exemple #1
0
        public static Matrix2d scaling(float scaleX, float scaleY, Point2d center)
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_scaling__SWIG_2(scaleX, scaleY, Point2d.getCPtr(center)), true);

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemple #2
0
 public void setRect4P(Point2d points)
 {
     touchvgPINVOKE.MgBaseRect_setRect4P(swigCPtr, Point2d.getCPtr(points));
 }
Exemple #3
0
        public static Matrix2d rotation(float angle, Point2d center)
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_rotation__SWIG_0(angle, Point2d.getCPtr(center)), true);

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemple #4
0
        public bool genericRoundLines(int count, Point2d points, float radius)
        {
            bool ret = touchvgPINVOKE.GiPath_genericRoundLines__SWIG_1(swigCPtr, count, Point2d.getCPtr(points), radius);

            return(ret);
        }
Exemple #5
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);
        }
Exemple #6
0
        public bool linesTo(int count, Point2d points)
        {
            bool ret = touchvgPINVOKE.GiPath_linesTo(swigCPtr, count, Point2d.getCPtr(points));

            return(ret);
        }
Exemple #7
0
        public bool arcTo(Point2d point, Point2d end)
        {
            bool ret = touchvgPINVOKE.GiPath_arcTo__SWIG_1(swigCPtr, Point2d.getCPtr(point), Point2d.getCPtr(end));

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemple #8
0
 public Matrix2d(Vector2d e0, Vector2d e1, Point2d origin) : this(touchvgPINVOKE.new_Matrix2d__SWIG_3(Vector2d.getCPtr(e0), Vector2d.getCPtr(e1), Point2d.getCPtr(origin)), true)
 {
     if (touchvgPINVOKE.SWIGPendingException.Pending)
     {
         throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #9
0
 public void TransformPoints(int count, Point2d points)
 {
     touchvgPINVOKE.Matrix2d_TransformPoints(swigCPtr, count, Point2d.getCPtr(points));
 }
Exemple #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();
     }
 }
Exemple #11
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);
        }
Exemple #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);
        }
Exemple #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);
        }
Exemple #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);
        }
Exemple #15
0
        public static Matrix2d shearing(float sx, float sy, Point2d pnt)
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_shearing__SWIG_0(sx, sy, Point2d.getCPtr(pnt)), true);

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemple #16
0
        public Matrix2d setCoordSystem(Vector2d e0, Vector2d e1, Point2d origin)
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setCoordSystem(swigCPtr, Vector2d.getCPtr(e0), Vector2d.getCPtr(e1), Point2d.getCPtr(origin)), false);

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemple #17
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);
        }
Exemple #18
0
 public void getCoordSystem(Vector2d e0, Vector2d e1, Point2d origin)
 {
     touchvgPINVOKE.Matrix2d_getCoordSystem(swigCPtr, Vector2d.getCPtr(e0), Vector2d.getCPtr(e1), Point2d.getCPtr(origin));
     if (touchvgPINVOKE.SWIGPendingException.Pending)
     {
         throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #19
0
        public bool beziersTo(int count, Point2d points)
        {
            bool ret = touchvgPINVOKE.GiPath_beziersTo__SWIG_1(swigCPtr, count, Point2d.getCPtr(points));

            return(ret);
        }
Exemple #20
0
        public static Matrix2d coordSystem(Vector2d e0, Vector2d e1, Point2d origin)
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_coordSystem__SWIG_0(Vector2d.getCPtr(e0), Vector2d.getCPtr(e1), Point2d.getCPtr(origin)), true);

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemple #21
0
 public GiPath(int count, Point2d points, string types) : this(touchvgPINVOKE.new_GiPath__SWIG_2(count, Point2d.getCPtr(points), types), true)
 {
 }
Exemple #22
0
        public Matrix2d setToScaling(float scale, Point2d center)
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setToScaling__SWIG_0(swigCPtr, scale, Point2d.getCPtr(center)), false);

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemple #23
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);
        }
Exemple #24
0
        public Matrix2d setToMirroring(Point2d pnt, Vector2d dir)
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setToMirroring__SWIG_2(swigCPtr, Point2d.getCPtr(pnt), Vector2d.getCPtr(dir)), false);

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemple #25
0
 private IntPtr SwigDirectorgetHandlePoint(int index)
 {
     return(Point2d.getCPtr(getHandlePoint(index)).Handle);
 }
Exemple #26
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();
     }
 }