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); }
//! 构造普通绘图视图 public WPFGraphView(Panel container) { this._view = new WPFViewAdapter(this); this.CoreView = GiCoreView.createView(this._view); init(container); ActiveView = this; }
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); }
//! 查找指定Tag的图形对象ID public int FindShapeByTag(int tag) { int doc = CoreView.acquireFrontDoc(); int sid = CoreView.findShapeByTag(doc, tag); GiCoreView.releaseDoc(doc); return(sid); }
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); }
public void clean() { _coreView = null; _view = null; if (_adapter != null) { _adapter.Dispose(); _adapter = null; } }
public WPFMainCanvas(GiCoreView coreView, GiView view) { this._coreView = coreView; this._view = view; this._adapter = new WPFCanvasAdapter(); }
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; }
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; }
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); }
//! 构造放大镜绘图视图 public WPFGraphView(WPFGraphView mainView, Panel container) { this._view = new WPFViewAdapter(this); this.CoreView = GiCoreView.createMagnifierView(this._view, mainView.CoreView, mainView.ViewAdapter); init(container); }
public GiMouseHelper(GiView view, GiCoreView coreView) : this(touchvgPINVOKE.new_GiMouseHelper(GiView.getCPtr(view), GiCoreView.getCPtr(coreView)), true) { }