Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of the Graph class.
        /// </summary>
        public GraphWindow(Microsoft.Samples.Kinect.SkeletonBasics.MainWindow owningWindow)
        {
            InitializeComponent();

            this.owningWindow = owningWindow;

            MaxWindowDistSeen = 0;

            if (CurrentObjectBag.SCurrentGestureValidator != null)
            {
                CurrentObjectBag.SCurrentGestureValidator.OnDistanceUpdated += new UpdateTargetDistance(AddDistance);
            }
            CurrentObjectBag.SOnGestureValidatorChanged += SetGestureValidator;
        }
Esempio n. 2
0
        /// <summary>
        /// Initializes a new instance of the Graph class.
        /// </summary>
        public GraphWindow(Microsoft.Samples.Kinect.SkeletonBasics.MainWindow owningWindow)
        {
            InitializeComponent();

            this.owningWindow = owningWindow;

            MaxWindowDistSeen = 0;

            if (CurrentObjectBag.SCurrentGestureValidator != null)
            {
                CurrentObjectBag.SCurrentGestureValidator.OnDistanceUpdated += new UpdateTargetDistance(AddDistance);
            }
            CurrentObjectBag.SOnGestureValidatorChanged += SetGestureValidator;
        }