Beispiel #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);
        }
Beispiel #2
0
 //! 构造普通绘图视图
 public WPFGraphView(Panel container)
 {
     this._view    = new WPFViewAdapter(this);
     this.CoreView = GiCoreView.createView(this._view);
     init(container);
     ActiveView = this;
 }
Beispiel #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);
        }
Beispiel #4
0
        //! 查找指定Tag的图形对象ID
        public int FindShapeByTag(int tag)
        {
            int doc = CoreView.acquireFrontDoc();
            int sid = CoreView.findShapeByTag(doc, tag);

            GiCoreView.releaseDoc(doc);
            return(sid);
        }
Beispiel #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);
 }
Beispiel #6
0
 public void clean()
 {
     _coreView = null;
     _view     = null;
     if (_adapter != null)
     {
         _adapter.Dispose();
         _adapter = null;
     }
 }
Beispiel #7
0
 public WPFMainCanvas(GiCoreView coreView, GiView view)
 {
     this._coreView = coreView;
     this._view     = view;
     this._adapter  = new WPFCanvasAdapter();
 }
Beispiel #8
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;
 }
Beispiel #9
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;
 }
Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #12
0
 public GiMouseHelper(GiView view, GiCoreView coreView) : this(touchvgPINVOKE.new_GiMouseHelper(GiView.getCPtr(view), GiCoreView.getCPtr(coreView)), true)
 {
 }
Beispiel #13
0
 public GiMouseHelper(GiView view, GiCoreView coreView)
     : this(touchvgPINVOKE.new_GiMouseHelper(GiView.getCPtr(view), GiCoreView.getCPtr(coreView)), true)
 {
 }