示例#1
0
        public static GiGraphics fromHandle(int h)
        {
            global::System.IntPtr cPtr = touchvgPINVOKE.GiGraphics_fromHandle(h);
            GiGraphics            ret  = (cPtr == global::System.IntPtr.Zero) ? null : new GiGraphics(cPtr, false);

            return(ret);
        }
示例#2
0
 public GiSaveClipBox(GiGraphics gs, Box2d rectWorld) : this(touchvgPINVOKE.new_GiSaveClipBox(GiGraphics.getCPtr(gs), Box2d.getCPtr(rectWorld)), true)
 {
     if (touchvgPINVOKE.SWIGPendingException.Pending)
     {
         throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#3
0
 public GiGraphics(GiGraphics src) : this(touchvgPINVOKE.new_GiGraphics__SWIG_3(GiGraphics.getCPtr(src)), true)
 {
     if (touchvgPINVOKE.SWIGPendingException.Pending)
     {
         throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#4
0
 public void copy(GiGraphics src)
 {
     touchvgPINVOKE.GiGraphics_copy(swigCPtr, GiGraphics.getCPtr(src));
     if (touchvgPINVOKE.SWIGPendingException.Pending)
     {
         throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#5
0
        public virtual bool draw2(MgObject owner, int mode, GiGraphics gs, GiContext ctx, int segment)
        {
            bool ret = (SwigDerivedClassHasMethod("draw2", swigMethodTypes23) ? touchvgPINVOKE.MgBaseShape_draw2SwigExplicitMgBaseShape(swigCPtr, MgObject.getCPtr(owner), mode, GiGraphics.getCPtr(gs), GiContext.getCPtr(ctx), segment) : touchvgPINVOKE.MgBaseShape_draw2(swigCPtr, MgObject.getCPtr(owner), mode, GiGraphics.getCPtr(gs), GiContext.getCPtr(ctx), segment));

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#6
0
        public int dyndraw(int mode, GiGraphics gs)
        {
            int ret = touchvgPINVOKE.MgShapeDoc_dyndraw(swigCPtr, mode, GiGraphics.getCPtr(gs));

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#7
0
        public int draw(GiGraphics gs)
        {
            int ret = touchvgPINVOKE.MgShapes_draw__SWIG_1(swigCPtr, GiGraphics.getCPtr(gs));

            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 virtual bool drawPerpMark(GiGraphics gs, GiContext ctx, Point2d a, Point2d b, Point2d perp, Point2d c, float len)
        {
            bool ret = touchvgPINVOKE.MgSnap_drawPerpMark(swigCPtr, GiGraphics.getCPtr(gs), GiContext.getCPtr(ctx), Point2d.getCPtr(a), Point2d.getCPtr(b), Point2d.getCPtr(perp), Point2d.getCPtr(c), len);

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#10
0
        public override bool draw(int mode, GiGraphics gs, GiContext ctx, int segment)
        {
            bool ret = touchvgPINVOKE.MgDiamond_draw(swigCPtr, mode, GiGraphics.getCPtr(gs), GiContext.getCPtr(ctx), segment);

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#11
0
 public override void drawInShapeCommand(MgMotion sender, MgCommand cmd, GiGraphics gs)
 {
     if (SwigDerivedClassHasMethod("drawInShapeCommand", swigMethodTypes7))
     {
         touchvgPINVOKE.CmdObserverDefault_drawInShapeCommandSwigExplicitCmdObserverDefault(swigCPtr, MgMotion.getCPtr(sender), MgCommand.getCPtr(cmd), GiGraphics.getCPtr(gs));
     }
     else
     {
         touchvgPINVOKE.CmdObserverDefault_drawInShapeCommand(swigCPtr, MgMotion.getCPtr(sender), MgCommand.getCPtr(cmd), GiGraphics.getCPtr(gs));
     }
 }
示例#12
0
        public float displayMmToModel(float mm, GiGraphics arg1)
        {
            float ret = touchvgPINVOKE.MgMotion_displayMmToModel__SWIG_0(swigCPtr, mm, GiGraphics.getCPtr(arg1));

            return(ret);
        }
示例#13
0
 public override void drawInSelectCommand(MgMotion sender, MgShape sp, int handleIndex, GiGraphics gs)
 {
     if (SwigDerivedClassHasMethod("drawInSelectCommand", swigMethodTypes8)) touchvgPINVOKE.CmdObserverDefault_drawInSelectCommandSwigExplicitCmdObserverDefault(swigCPtr, MgMotion.getCPtr(sender), MgShape.getCPtr(sp), handleIndex, GiGraphics.getCPtr(gs)); else touchvgPINVOKE.CmdObserverDefault_drawInSelectCommand(swigCPtr, MgMotion.getCPtr(sender), MgShape.getCPtr(sp), handleIndex, GiGraphics.getCPtr(gs));
 }
示例#14
0
 public override bool draw(int mode, GiGraphics gs, GiContext ctx, int segment)
 {
     bool ret = touchvgPINVOKE.MgImageShape_draw(swigCPtr, mode, GiGraphics.getCPtr(gs), GiContext.getCPtr(ctx), segment);
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
示例#15
0
 public virtual bool draw2(MgObject owner, int mode, GiGraphics gs, GiContext ctx, int segment)
 {
     bool ret = (SwigDerivedClassHasMethod("draw2", swigMethodTypes23) ? touchvgPINVOKE.MgBaseShape_draw2SwigExplicitMgBaseShape(swigCPtr, MgObject.getCPtr(owner), mode, GiGraphics.getCPtr(gs), GiContext.getCPtr(ctx), segment) : touchvgPINVOKE.MgBaseShape_draw2(swigCPtr, MgObject.getCPtr(owner), mode, GiGraphics.getCPtr(gs), GiContext.getCPtr(ctx), segment));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
示例#16
0
文件: MgShapes.cs 项目: rhcad/vgwpf
 public int draw(GiGraphics gs)
 {
     int ret = touchvgPINVOKE.MgShapes_draw__SWIG_1(swigCPtr, GiGraphics.getCPtr(gs));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
示例#17
0
文件: GiGraphics.cs 项目: rhcad/vgwpf
 public GiGraphics(GiGraphics src)
     : this(touchvgPINVOKE.new_GiGraphics__SWIG_3(GiGraphics.getCPtr(src)), true)
 {
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
 }
示例#18
0
 public virtual void drawInShapeCommand(MgMotion sender, MgCommand cmd, GiGraphics gs)
 {
     touchvgPINVOKE.CmdObserver_drawInShapeCommand(swigCPtr, MgMotion.getCPtr(sender), MgCommand.getCPtr(cmd), GiGraphics.getCPtr(gs));
 }
示例#19
0
        public override bool draw(MgMotion sender, GiGraphics gs)
        {
            bool ret = touchvgPINVOKE.MgCmdArc3P_draw(swigCPtr, MgMotion.getCPtr(sender), GiGraphics.getCPtr(gs));

            return(ret);
        }
示例#20
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(GiGraphics obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
示例#21
0
 public override void drawInSelectCommand(MgMotion sender, MgShape sp, int handleIndex, GiGraphics gs)
 {
     if (SwigDerivedClassHasMethod("drawInSelectCommand", swigMethodTypes8))
     {
         touchvgPINVOKE.CmdObserverDefault_drawInSelectCommandSwigExplicitCmdObserverDefault(swigCPtr, MgMotion.getCPtr(sender), MgShape.getCPtr(sp), handleIndex, GiGraphics.getCPtr(gs));
     }
     else
     {
         touchvgPINVOKE.CmdObserverDefault_drawInSelectCommand(swigCPtr, MgMotion.getCPtr(sender), MgShape.getCPtr(sp), handleIndex, GiGraphics.getCPtr(gs));
     }
 }
示例#22
0
        public override bool draw(MgMotion sender, GiGraphics gs)
        {
            bool ret = (SwigDerivedClassHasMethod("draw", swigMethodTypes4) ? touchvgPINVOKE.MgCommandDraw_drawSwigExplicitMgCommandDraw(swigCPtr, MgMotion.getCPtr(sender), GiGraphics.getCPtr(gs)) : touchvgPINVOKE.MgCommandDraw_draw(swigCPtr, MgMotion.getCPtr(sender), GiGraphics.getCPtr(gs)));

            return(ret);
        }
示例#23
0
 public GiSaveClipBox(GiGraphics gs, Box2d rectWorld)
     : this(touchvgPINVOKE.new_GiSaveClipBox(GiGraphics.getCPtr(gs), Box2d.getCPtr(rectWorld)), true)
 {
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
 }
示例#24
0
文件: GiGraphics.cs 项目: rhcad/vgwpf
 public void copy(GiGraphics src)
 {
     touchvgPINVOKE.GiGraphics_copy(swigCPtr, GiGraphics.getCPtr(src));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
 }
示例#25
0
文件: MgCmdArc3P.cs 项目: rhcad/vgwpf
 public override bool draw(MgMotion sender, GiGraphics gs)
 {
     bool ret = touchvgPINVOKE.MgCmdArc3P_draw(swigCPtr, MgMotion.getCPtr(sender), GiGraphics.getCPtr(gs));
     return ret;
 }
示例#26
0
 public virtual float displayMmToModel(float mm, GiGraphics gs)
 {
     float ret = touchvgPINVOKE.MgCmdManager_displayMmToModel__SWIG_0(swigCPtr, mm, GiGraphics.getCPtr(gs));
     return ret;
 }
示例#27
0
 public override void drawInShapeCommand(MgMotion sender, MgCommand cmd, GiGraphics gs)
 {
     if (SwigDerivedClassHasMethod("drawInShapeCommand", swigMethodTypes7)) touchvgPINVOKE.CmdObserverDefault_drawInShapeCommandSwigExplicitCmdObserverDefault(swigCPtr, MgMotion.getCPtr(sender), MgCommand.getCPtr(cmd), GiGraphics.getCPtr(gs)); else touchvgPINVOKE.CmdObserverDefault_drawInShapeCommand(swigCPtr, MgMotion.getCPtr(sender), MgCommand.getCPtr(cmd), GiGraphics.getCPtr(gs));
 }
示例#28
0
 public virtual void drawInShapeCommand(MgMotion sender, MgCommand cmd, GiGraphics gs)
 {
     touchvgPINVOKE.CmdObserver_drawInShapeCommand(swigCPtr, MgMotion.getCPtr(sender), MgCommand.getCPtr(cmd), GiGraphics.getCPtr(gs));
 }
示例#29
0
文件: GiGraphics.cs 项目: rhcad/vgwpf
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(GiGraphics obj)
 {
     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
 }
示例#30
0
 public virtual void drawInSelectCommand(MgMotion sender, MgShape sp, int handleIndex, GiGraphics gs)
 {
     touchvgPINVOKE.CmdObserver_drawInSelectCommand(swigCPtr, MgMotion.getCPtr(sender), MgShape.getCPtr(sp), handleIndex, GiGraphics.getCPtr(gs));
 }
示例#31
0
文件: MgShape.cs 项目: rhcad/vgwpf
 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;
 }
示例#32
0
文件: MgShapeDoc.cs 项目: rhcad/vgwpf
 public int dyndraw(int mode, GiGraphics gs)
 {
     int ret = touchvgPINVOKE.MgShapeDoc_dyndraw(swigCPtr, mode, GiGraphics.getCPtr(gs));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
示例#33
0
 public virtual void drawInSelectCommand(MgMotion sender, MgShape sp, int handleIndex, GiGraphics gs)
 {
     touchvgPINVOKE.CmdObserver_drawInSelectCommand(swigCPtr, MgMotion.getCPtr(sender), MgShape.getCPtr(sp), handleIndex, GiGraphics.getCPtr(gs));
 }
示例#34
0
        public virtual float displayMmToModel(float mm, GiGraphics gs)
        {
            float ret = touchvgPINVOKE.MgCmdManager_displayMmToModel__SWIG_0(swigCPtr, mm, GiGraphics.getCPtr(gs));

            return(ret);
        }
示例#35
0
文件: MgSnap.cs 项目: rhcad/vgwpf
 public virtual bool drawSnap(MgMotion sender, GiGraphics gs)
 {
     bool ret = touchvgPINVOKE.MgSnap_drawSnap(swigCPtr, MgMotion.getCPtr(sender), GiGraphics.getCPtr(gs));
     return ret;
 }
示例#36
0
        public virtual bool draw(MgMotion sender, GiGraphics gs)
        {
            bool ret = touchvgPINVOKE.MgCommand_draw(swigCPtr, MgMotion.getCPtr(sender), GiGraphics.getCPtr(gs));

            return(ret);
        }
示例#37
0
文件: MgMotion.cs 项目: rhcad/vgwpf
 public float displayMmToModel(float mm, GiGraphics arg1)
 {
     float ret = touchvgPINVOKE.MgMotion_displayMmToModel__SWIG_0(swigCPtr, mm, GiGraphics.getCPtr(arg1));
     return ret;
 }
示例#38
0
文件: MgSnap.cs 项目: rhcad/vgwpf
 public virtual bool drawPerpMark(GiGraphics gs, GiContext ctx, Point2d a, Point2d b, Point2d perp, Point2d c, float len)
 {
     bool ret = touchvgPINVOKE.MgSnap_drawPerpMark(swigCPtr, GiGraphics.getCPtr(gs), GiContext.getCPtr(ctx), Point2d.getCPtr(a), Point2d.getCPtr(b), Point2d.getCPtr(perp), Point2d.getCPtr(c), len);
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
示例#39
0
 public override bool draw(MgMotion sender, GiGraphics gs)
 {
     bool ret = (SwigDerivedClassHasMethod("draw", swigMethodTypes4) ? touchvgPINVOKE.MgCommandDraw_drawSwigExplicitMgCommandDraw(swigCPtr, MgMotion.getCPtr(sender), GiGraphics.getCPtr(gs)) : touchvgPINVOKE.MgCommandDraw_draw(swigCPtr, MgMotion.getCPtr(sender), GiGraphics.getCPtr(gs)));
     return ret;
 }