예제 #1
0
        ///////////////////////////////////////////////////////////////////////////////
        // Construction and Initializing methods                                     //
        ///////////////////////////////////////////////////////////////////////////////
        #region CONSTRUCTION

        /// <summary>
        /// Initializes a new instance of the GazetrackerDirectClientTracker class.
        /// <remarks>
        /// Note that the xml settings file is set, but not used,
        /// GazeTracker internally saves it state in another location.
        /// </remarks>
        /// </summary>
        /// <param name="owningRecordModule">The <see cref="RecordModule"/>
        /// form wich host the recorder.</param>
        /// <param name="trackerEyeVideoControl">The <see cref="EyeVideoControl"/>
        /// which displays the eye video of the gazetracker.</param>
        /// <param name="trackerShowOnSecondaryScreenButton">The <see cref="Button"/>
        /// named "ShowOnPresentationScreenButton" at the tab page of the Tobii device.</param>
        /// <param name="trackerConnectButton">The <see cref="Button"/>
        /// named "Connect" at the tab page of the device.</param>
        /// <param name="trackerAdjustButton">The <see cref="Button"/>
        /// named "Adjust" at the tab page of the device.</param>
        /// <param name="trackerSubjectButton">The <see cref="Button"/>
        /// named "Subject" at the tab page of the device.</param>
        /// <param name="trackerCalibrateButton">The <see cref="Button"/>
        /// named "Calibrate" at the tab page of the device.</param>
        /// <param name="trackerRecordButton">The <see cref="Button"/>
        /// named "Record" at the tab page of the device.</param>
        /// <param name="trackerSubjectNameTextBox">The <see cref="TextBox"/>
        /// which should contain the subject name at the tab page of the device.</param>
        public GazetrackerDirectClientTracker(
            RecordModule owningRecordModule,
            EyeVideoControl trackerEyeVideoControl,
            Button trackerShowOnSecondaryScreenButton,
            Button trackerConnectButton,
            Button trackerAdjustButton,
            Button trackerSubjectButton,
            Button trackerCalibrateButton,
            Button trackerRecordButton,
            TextBox trackerSubjectNameTextBox)
            : base(
                owningRecordModule,
                trackerConnectButton,
                trackerSubjectButton,
                trackerCalibrateButton,
                trackerRecordButton,
                trackerSubjectNameTextBox,
                Properties.Settings.Default.EyeTrackerSettingsPath + "GazetrackerDirectClientSetting.xml")
        {
            this.adjustButton                       = trackerAdjustButton;
            this.adjustButton.Click                += this.AdjustButtonClick;
            this.showOnSecondaryScreenButton        = trackerShowOnSecondaryScreenButton;
            this.showOnSecondaryScreenButton.Click += this.BtnShowOnPresentationScreenClick;
            this.eyeVideo = trackerEyeVideoControl;
            this.Initialize();
        }
예제 #2
0
 /// <summary>
 /// This method initializes custom components of the
 /// implemented tracking device.
 /// </summary>
 /// <param name="clientEyeVideoConrol">The <see cref="EyeVideoControl"/>
 /// of the client where to display the eye video.</param>
 public void Initialize(EyeVideoControl clientEyeVideoConrol)
 {
     try
     {
         this.eyeVideoControl = clientEyeVideoConrol;
         this.eyeVideoControl.ShowInitialImage();
     }
     catch (Exception ex)
     {
         this.OnTrackerError(ex.Message);
     }
 }