public ViewWindow(HWindowControl window) { this._hWndControl = new Model.HWndCtrl(window); this._roiController = new Model.ROIController(); this._hWndControl.setROIController(this._roiController); this._hWndControl.setViewState(Model.HWndCtrl.MODE_VIEW_NONE); }
/// <summary> /// Registers an instance of an ROIController with this window /// controller (and vice versa). /// </summary> /// <param name="rC"> /// Controller that manages interactive ROIs for the HALCON window /// </param> protected internal void setROIController(ROIController rC) { roiManager = rC; rC.setViewController(this); this.setViewState(HWndCtrl.MODE_VIEW_NONE); }