public ROILine() { base.Anchors.Add(AnchorsFactory.Create(AnchorType.Resize, this)); base.Anchors.Add(AnchorsFactory.Create(AnchorType.Resize, this)); base.MouseLeftButtonDown += OnLineROIMouseLeftButtonDown; base.MouseLeftButtonUp += OnLineROIMouseLeftButtonUp; base.MouseMove += OnLineROIMouseMove; }
public ROIRect() { //four anchor points and one center point for (int i = 0; i < 4; i++) { base.Anchors.Add(AnchorsFactory.Create(AnchorType.Resize, this)); } base.Anchors.Add(AnchorsFactory.Create(AnchorType.Move, this)); base.MouseLeftButtonDown += OnRectROIMouseLeftButtonDown; base.MouseLeftButtonUp += OnRectROIMouseLeftButtonUp; base.MouseMove += OnRectROIMouseMove; }
public ROIOval() { µCore.OutputDebugString("create - begin"); //four anchor points and one center point for (int i = 0; i < 4; i++) { base.Anchors.Add(AnchorsFactory.Create(AnchorType.Resize, this)); } base.Anchors.Add(AnchorsFactory.Create(AnchorType.Move, this)); base.MouseLeftButtonDown += OnOvalROIMouseLeftButtonDown; base.MouseLeftButtonUp += OnOvalROIMouseLeftButtonUp; base.MouseMove += OnOvalROIMouseMove; µCore.OutputDebugString("create - end"); }