/// <summary>
        /// Constructor
        /// </summary>
        /// <param name="parent">
        /// Parent <see cref="Kinect"/> device that this depth camera is part of
        /// </param>
        internal DepthCamera(Kinect parent) : base(parent)
        {
            // Update lsit of available modes for this camera
            this.UpdateDepthModes();

            // Set the mode to the first available mode
            this.Mode = this.Modes[0];

            // Setup callbacks
            KinectNative.freenect_set_depth_callback(parent.devicePointer, this.DataCallback);
        }
Esempio n. 2
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="parent">
        /// Parent <see cref="Kinect"/> device that this depth camera is part of
        /// </param>
        internal DepthCamera(Kinect parent)
        {
            // Save parent device
            this.parentDevice = parent;

            // Not running by default
            this.IsRunning = false;

            // Set format to 11 bit by default
            this.DataFormat = DataFormatOption.Format11Bit;

            // Setup callbacks
            KinectNative.freenect_set_depth_callback(parent.devicePointer, DepthCallback);
        }