/// <summary> /// 确定ROI是否被选中 /// </summary> /// <param name="col_x"></param> /// <param name="row_y"></param> /// <returns></returns> internal int selectedROI(double col_x, double row_y) { int ok = -1; int num = _array_ROI.Count; for (int i = 0; i < num; i++) { ROI roi_ = (ROI)_array_ROI[i]; if (roi_.isSelected(col_x, row_y) != -1) { ok = i; this._iROI = roi_; } } if (ok != -1) { if (this._iDiJiGeRoi != null) { this._iDiJiGeRoi.IXuanZhongRoiDeIndex = ok; } } return(ok); }
/// <summary> /// 初始化 /// </summary> internal ROIControl() { _array_ROI = new ArrayList(); _iROI = null; }