Пример #1
0
        public virtual MgBaseShape shape()
        {
            global::System.IntPtr cPtr = touchvgPINVOKE.MgShape_shape(swigCPtr);
            MgBaseShape           ret  = (cPtr == global::System.IntPtr.Zero) ? null : new MgBaseShape(cPtr, false);

            return(ret);
        }
Пример #2
0
        public override MgBaseShape createShape(MgMotion sender, int type)
        {
            global::System.IntPtr cPtr = (SwigDerivedClassHasMethod("createShape", swigMethodTypes22) ? touchvgPINVOKE.CmdObserverDefault_createShapeSwigExplicitCmdObserverDefault(swigCPtr, MgMotion.getCPtr(sender), type) : touchvgPINVOKE.CmdObserverDefault_createShape(swigCPtr, MgMotion.getCPtr(sender), type));
            MgBaseShape           ret  = (cPtr == global::System.IntPtr.Zero) ? null : new MgBaseShape(cPtr, false);

            return(ret);
        }
Пример #3
0
        public virtual MgBaseShape createShape(MgMotion sender, int type)
        {
            global::System.IntPtr cPtr = touchvgPINVOKE.CmdObserver_createShape(swigCPtr, MgMotion.getCPtr(sender), type);
            MgBaseShape           ret  = (cPtr == global::System.IntPtr.Zero) ? null : new MgBaseShape(cPtr, false);

            return(ret);
        }
Пример #4
0
        public static MgDiamond cast(MgBaseShape obj)
        {
            global::System.IntPtr cPtr = touchvgPINVOKE.MgDiamond_cast(MgBaseShape.getCPtr(obj));
            MgDiamond             ret  = (cPtr == global::System.IntPtr.Zero) ? null : new MgDiamond(cPtr, false);

            return(ret);
        }
Пример #5
0
        public MgBaseShape createShape(int type)
        {
            global::System.IntPtr cPtr = touchvgPINVOKE.MgCoreShapeFactory_createShape(swigCPtr, type);
            MgBaseShape           ret  = (cPtr == global::System.IntPtr.Zero) ? null : new MgBaseShape(cPtr, false);

            return(ret);
        }
Пример #6
0
        public static int crossCircle(Point2d pt1, Point2d pt2, MgBaseShape sp)
        {
            int ret = touchvgPINVOKE.MgEllipse_crossCircle__SWIG_1(Point2d.getCPtr(pt1), Point2d.getCPtr(pt2), MgBaseShape.getCPtr(sp));

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #7
0
        public static bool drawShape(MgShapes shapes, MgBaseShape sp, int mode, GiGraphics gs, GiContext ctx, int segment)
        {
            bool ret = touchvgPINVOKE.MgShape_drawShape(MgShapes.getCPtr(shapes), MgBaseShape.getCPtr(sp), mode, GiGraphics.getCPtr(gs), GiContext.getCPtr(ctx), segment);

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #8
0
 public static bool drawShape(MgShapes shapes, MgBaseShape sp, int mode, GiGraphics gs, GiContext ctx, int segment)
 {
     bool ret = touchvgPINVOKE.MgShape_drawShape(MgShapes.getCPtr(shapes), MgBaseShape.getCPtr(sp), mode, GiGraphics.getCPtr(gs), GiContext.getCPtr(ctx), segment);
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Пример #9
0
 public static int crossCircle(Point2d pt1, Point2d pt2, MgBaseShape sp)
 {
     int ret = touchvgPINVOKE.MgEllipse_crossCircle__SWIG_1(Point2d.getCPtr(pt1), Point2d.getCPtr(pt2), MgBaseShape.getCPtr(sp));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Пример #10
0
 private global::System.IntPtr SwigDirectorcreateShape(global::System.IntPtr sender, int type)
 {
     return(MgBaseShape.getCPtr(createShape((sender == global::System.IntPtr.Zero) ? null : new MgMotion(sender, false), type)).Handle);
 }
Пример #11
0
 public static bool isCircle(MgBaseShape sp)
 {
     bool ret = touchvgPINVOKE.MgEllipse_isCircle__SWIG_1(MgBaseShape.getCPtr(sp));
     return ret;
 }
Пример #12
0
 public static MgImageShape cast(MgBaseShape obj) {
   global::System.IntPtr cPtr = touchvgPINVOKE.MgImageShape_cast(MgBaseShape.getCPtr(obj));
   MgImageShape ret = (cPtr == global::System.IntPtr.Zero) ? null : new MgImageShape(cPtr, false);
   return ret;
 }
Пример #13
0
 public static MgImageShape cast(MgBaseShape obj)
 {
     global::System.IntPtr cPtr = touchvgPINVOKE.MgImageShape_cast(MgBaseShape.getCPtr(obj));
     MgImageShape ret = (cPtr == global::System.IntPtr.Zero) ? null : new MgImageShape(cPtr, false);
     return ret;
 }
Пример #14
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(MgBaseShape obj)
 {
     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
 }
Пример #15
0
 public static extern void MgBaseShape_director_connect(global::System.Runtime.InteropServices.HandleRef jarg1, MgBaseShape.SwigDelegateMgBaseShape_0 delegate0, MgBaseShape.SwigDelegateMgBaseShape_1 delegate1, MgBaseShape.SwigDelegateMgBaseShape_2 delegate2, MgBaseShape.SwigDelegateMgBaseShape_3 delegate3, MgBaseShape.SwigDelegateMgBaseShape_4 delegate4, MgBaseShape.SwigDelegateMgBaseShape_5 delegate5, MgBaseShape.SwigDelegateMgBaseShape_6 delegate6, MgBaseShape.SwigDelegateMgBaseShape_7 delegate7, MgBaseShape.SwigDelegateMgBaseShape_8 delegate8, MgBaseShape.SwigDelegateMgBaseShape_9 delegate9, MgBaseShape.SwigDelegateMgBaseShape_10 delegate10, MgBaseShape.SwigDelegateMgBaseShape_11 delegate11, MgBaseShape.SwigDelegateMgBaseShape_12 delegate12, MgBaseShape.SwigDelegateMgBaseShape_13 delegate13, MgBaseShape.SwigDelegateMgBaseShape_14 delegate14, MgBaseShape.SwigDelegateMgBaseShape_15 delegate15, MgBaseShape.SwigDelegateMgBaseShape_16 delegate16, MgBaseShape.SwigDelegateMgBaseShape_17 delegate17, MgBaseShape.SwigDelegateMgBaseShape_18 delegate18, MgBaseShape.SwigDelegateMgBaseShape_19 delegate19, MgBaseShape.SwigDelegateMgBaseShape_20 delegate20, MgBaseShape.SwigDelegateMgBaseShape_21 delegate21, MgBaseShape.SwigDelegateMgBaseShape_22 delegate22, MgBaseShape.SwigDelegateMgBaseShape_23 delegate23, MgBaseShape.SwigDelegateMgBaseShape_24 delegate24, MgBaseShape.SwigDelegateMgBaseShape_25 delegate25, MgBaseShape.SwigDelegateMgBaseShape_26 delegate26, MgBaseShape.SwigDelegateMgBaseShape_27 delegate27, MgBaseShape.SwigDelegateMgBaseShape_28 delegate28, MgBaseShape.SwigDelegateMgBaseShape_29 delegate29, MgBaseShape.SwigDelegateMgBaseShape_30 delegate30, MgBaseShape.SwigDelegateMgBaseShape_31 delegate31, MgBaseShape.SwigDelegateMgBaseShape_32 delegate32, MgBaseShape.SwigDelegateMgBaseShape_33 delegate33, MgBaseShape.SwigDelegateMgBaseShape_34 delegate34, MgBaseShape.SwigDelegateMgBaseShape_35 delegate35);
Пример #16
0
        public static bool isCircle(MgBaseShape sp)
        {
            bool ret = touchvgPINVOKE.MgEllipse_isCircle__SWIG_1(MgBaseShape.getCPtr(sp));

            return(ret);
        }
Пример #17
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(MgBaseShape obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }