public MagnifierWindowLeftEyeAndHead(Form form, Configuration configuration, OverlayEyeNew overlayEyeNewForm) { mConfiguration = configuration; if (form == null) { throw new ArgumentNullException("form"); } magnification = mConfiguration.ZoomFactor; this.overlayEyeNewForm = overlayEyeNewForm; //mTargetPoint = gazePoint; m_MAGFACTOR = mConfiguration.ZoomFactor; leftEyeGaze = new OneEyeLeft(mConfiguration); headPoints = new EyeXPrecisionPointer(mConfiguration.senitivityOfHeadTracking); this.form = form; this.form.Resize += new EventHandler(form_Resize); this.form.FormClosing += new FormClosingEventHandler(form_FormClosing); timer = new Timer(); timer.Tick += new EventHandler(timer_Tick); timer.Tick += new EventHandler(overlayEyeNewForm.HandleTimer); initialized = NativeMethods.MagInitialize(); if (initialized) { SetupMagnifier(); timer.Interval = NativeMethods.USER_TIMER_MINIMUM; timer.Enabled = true; } }
public WhereAmI(OverlayEyeNew form, PointF currentPoint) { InitializeComponent(); FormBorderStyle = FormBorderStyle.None; mCurrentPoint = currentPoint; overlayEyeNew = form; this.KeyDown += new KeyEventHandler(HandleEsc); }
private void button4_Click(object sender, EventArgs e) { // OverlayEyeNew mg = new OverlayEyeNew(mConfiguration, true, this); mg = new OverlayEyeNew(mConfiguration, true, this); mg.Show(); mgIsOpen = true; TobiiCalibration_button.Enabled = false; MagniferUsingMouse_button.Enabled = false; FullscreenMaginfierEye_Button.Enabled = false; MaginfierEye_Button.Enabled = false; FullScreenMouse_Button.Enabled = false; Evaluation_button.Enabled = false; }
private void button3_Click(object sender, EventArgs e) { mgIsOpen = true; //Window Mode button_BackToMain.Show(); // OverlayEyeNew mg = new OverlayEyeNew(mConfiguration , this); mg = new OverlayEyeNew(mConfiguration, this); mg.Show(); MagniferUsingMouse_button.Enabled = false; FullscreenMaginfierEye_Button.Enabled = false; MaginfierEye_Button.Enabled = false; FullScreenMouse_Button.Enabled = false; Evaluation_button.Enabled = false; }
public MagnifierWindowsBothEye(Form form, Configuration configuration, OverlayEyeNew overlayEyeNewForm, MouseController mController) { mConfiguration = configuration; hwndMag = form.Handle; if (form == null) { throw new ArgumentNullException("form"); } magnification = mConfiguration.ZoomFactor; this.overlayEyeNewForm = overlayEyeNewForm; //mTargetPoint = gazePoint; m_MAGFACTOR = mConfiguration.ZoomFactor; eyeXWarpPointer = new EyeXWarpPointer(mConfiguration); combineEyeGaze = new combineEyes(mConfiguration); leftEyeGaze = new OneEyeLeft(mConfiguration); rightEyeGaze = new OneEyeRight(mConfiguration); controller = mController; this.form = form; this.form.Resize += new EventHandler(form_Resize); this.form.FormClosing += new FormClosingEventHandler(form_FormClosing); timer = new Timer(); timer.Tick += new EventHandler(timer_Tick); if (overlayEyeNewForm.fullScreen == false) //if window mode { timer.Tick += new EventHandler(overlayEyeNewForm.HandleTimer); } initialized = NativeMethods.MagInitialize(); if (initialized) { SetupMagnifier(); timer.Interval = NativeMethods.USER_TIMER_MINIMUM; timer.Enabled = true; } }
public MagnifierWindowHead(Form form, Configuration configuration, OverlayEyeNew overlayEyeNewForm, MouseController mController) { mConfiguration = configuration; if (form == null) { throw new ArgumentNullException("form"); } magnification = mConfiguration.ZoomFactor; this.overlayEyeNewForm = overlayEyeNewForm; //mTargetPoint = gazePoint; m_MAGFACTOR = mConfiguration.ZoomFactor; headPoints = new EyeXPrecisionPointer(sensitivity); controller = mController; this.form = form; this.form.Resize += new EventHandler(form_Resize); this.form.FormClosing += new FormClosingEventHandler(form_FormClosing); timer = new Timer(); timer.Tick += new EventHandler(timer_Tick); if (overlayEyeNewForm.fullScreen == false) //if window mode { timer.Tick += new EventHandler(overlayEyeNewForm.HandleTimer); } initialized = NativeMethods.MagInitialize(); if (initialized) { SetupMagnifier(); timer.Interval = NativeMethods.USER_TIMER_MINIMUM; timer.Enabled = true; } }