33 lines
851 B
C#
33 lines
851 B
C#
using Aurora.Api;
|
|
using Matrox.MatroxImagingLibrary;
|
|
using System;
|
|
using VisionCommon;
|
|
|
|
namespace MilUI {
|
|
internal class ForceOkMode : DisplayMode {
|
|
private Logger _logger = new Logger(typeof(ForceOkMode).Name);
|
|
public Action<ImagePoint, Angle> SetForceOkPoint;
|
|
|
|
public ForceOkMode() {
|
|
}
|
|
|
|
public override void MouseLeftDown(MIL_ID EventID) {
|
|
}
|
|
|
|
public override void MouseMove(MIL_ID EventID) {
|
|
}
|
|
|
|
public override void MouseRightDown(MIL_ID EventID) {
|
|
var mousePoint = GetMousePoint(EventID);
|
|
_logger.I($"Mouse right clicked : {mousePoint}");
|
|
SetForceOkPoint?.Invoke(mousePoint, null);
|
|
}
|
|
|
|
public override void GraphicSelectionModified(MIL_ID EventID) {
|
|
}
|
|
|
|
public override void Clear() {
|
|
}
|
|
}
|
|
}
|