예제 #1
0
        public static GiCoreView createMagnifierView(GiView newview, GiCoreView mainView, GiView mainDevView)
        {
            global::System.IntPtr cPtr = touchvgPINVOKE.GiCoreView_createMagnifierView(GiView.getCPtr(newview), GiCoreView.getCPtr(mainView), GiView.getCPtr(mainDevView));
            GiCoreView            ret  = (cPtr == global::System.IntPtr.Zero) ? null : new GiCoreView(cPtr, false);

            return(ret);
        }
예제 #2
0
 //! 构造普通绘图视图
 public WPFGraphView(Panel container)
 {
     this._view    = new WPFViewAdapter(this);
     this.CoreView = GiCoreView.createView(this._view);
     init(container);
     ActiveView = this;
 }
예제 #3
0
        public static GiCoreView createView(GiView view)
        {
            global::System.IntPtr cPtr = touchvgPINVOKE.GiCoreView_createView__SWIG_1(GiView.getCPtr(view));
            GiCoreView            ret  = (cPtr == global::System.IntPtr.Zero) ? null : new GiCoreView(cPtr, false);

            return(ret);
        }
예제 #4
0
        //! 查找指定Tag的图形对象ID
        public int FindShapeByTag(int tag)
        {
            int doc = CoreView.acquireFrontDoc();
            int sid = CoreView.findShapeByTag(doc, tag);

            GiCoreView.releaseDoc(doc);
            return(sid);
        }
예제 #5
0
 public WPFTempCanvas(GiCoreView coreView, GiView view)
 {
     this._coreView  = coreView;
     this._view      = view;
     this._adapter   = new WPFCanvasAdapter();
     _helper         = new GiMouseHelper(this._view, this._coreView);
     this.MouseDown += new MouseButtonEventHandler(TempCanvas_MouseDown);
     this.MouseUp   += new MouseButtonEventHandler(TempCanvas_MouseUp);
 }
예제 #6
0
 public void clean()
 {
     _coreView = null;
     _view     = null;
     if (_adapter != null)
     {
         _adapter.Dispose();
         _adapter = null;
     }
 }
예제 #7
0
 public WPFMainCanvas(GiCoreView coreView, GiView view)
 {
     this._coreView = coreView;
     this._view     = view;
     this._adapter  = new WPFCanvasAdapter();
 }
예제 #8
0
파일: GiCoreView.cs 프로젝트: rhcad/vgwpf
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(GiCoreView obj)
 {
     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
 }
예제 #9
0
파일: GiCoreView.cs 프로젝트: rhcad/vgwpf
 public static GiCoreView createMagnifierView(GiView newview, GiCoreView mainView, GiView mainDevView)
 {
     global::System.IntPtr cPtr = touchvgPINVOKE.GiCoreView_createMagnifierView(GiView.getCPtr(newview), GiCoreView.getCPtr(mainView), GiView.getCPtr(mainDevView));
     GiCoreView ret = (cPtr == global::System.IntPtr.Zero) ? null : new GiCoreView(cPtr, false);
     return ret;
 }
예제 #10
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(GiCoreView obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
예제 #11
0
 //! 构造放大镜绘图视图
 public WPFGraphView(WPFGraphView mainView, Panel container)
 {
     this._view    = new WPFViewAdapter(this);
     this.CoreView = GiCoreView.createMagnifierView(this._view, mainView.CoreView, mainView.ViewAdapter);
     init(container);
 }
예제 #12
0
 public GiMouseHelper(GiView view, GiCoreView coreView) : this(touchvgPINVOKE.new_GiMouseHelper(GiView.getCPtr(view), GiCoreView.getCPtr(coreView)), true)
 {
 }
예제 #13
0
 public GiMouseHelper(GiView view, GiCoreView coreView)
     : this(touchvgPINVOKE.new_GiMouseHelper(GiView.getCPtr(view), GiCoreView.getCPtr(coreView)), true)
 {
 }