/// <summary>Constructor</summary> public ROIController() { stateROIOperation = ROIOperation.Positive; activeROIidx = -1; modelROI = new HRegion(); deletedIdx = -1; currX = currY = -1; }
/// <summary> /// Sets the sign of a ROI object to the value 'mode' (MODE_ROI_NONE, /// MODE_ROI_POS,MODE_ROI_NEG) /// </summary> public void SetROISign(ROIOperation mode) { stateROIOperation = mode; if (activeROIidx != -1) { (ROIList[activeROIidx]).OperatorFlag = stateROIOperation; viewController.Repaint(); TiggerROINotifyEvent(new ViewEventArgs(ViewMessage.ChangedROISign)); } }
/// <summary> /// Sets the sign of a ROI object to the value 'mode' (MODE_ROI_NONE, /// MODE_ROI_POS,MODE_ROI_NEG) /// </summary> public void SetROISign(ROIOperation mode) { stateROIOperation = mode; if (activeROIidx != -1) { if (stateROIOperation == ROIOperation.Tuya) { return; } ROIList[activeROIidx].OperatorFlag = stateROIOperation; if (viewController != null) { viewController.Repaint(); } TiggerROINotifyEvent(new ViewEventArgs(ViewMessage.ChangedROISign)); } }