/////////////////////////////////////////////////////////////////////////////// // Construction and Initializing methods // /////////////////////////////////////////////////////////////////////////////// #region CONSTRUCTION /// <summary> /// Initializes a new instance of the Client class. /// </summary> public Client() { // Will attempt to load "GazeTrackerSettings.xml" from execution dir. or set default this.settings = new Settings(); this.socketUdpReceive = new Socket( AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); this.commands = new Commands(); this.stream = new Stream(this); this.streamformat = new StreamFormat { TimeStampMilliseconds = true, GazePosition = true, EyetrackingType = StreamFormat.EyeTrackingType.Left }; this.stream.StreamFormat = this.streamformat; this.tracker = new Tracker(); this.camera = new Camera(this); this.calibration = new Calibration(this); this.uiControl = new UIControl(this); this.log = new Log(this); // Not fully implemented yet.. this.MouseControl = new MouseControl(); // On new gaze data this.gazeData = new GazeData(); this.gazeData.OnSmoothedGazeData += this.MouseControl.Move; }