public MainWindow()
        {
            InitializeComponent();

            jointsOfInterest.Clear();
            jointsOfInterest.Add(JointType.HandLeft);
            jointsOfInterest.Add(JointType.HandRight);

            jointsOfInterest.Add(JointType.Head);
            jointsOfInterest.Add(JointType.KneeLeft);
            jointsOfInterest.Add(JointType.KneeRight);
            jointsOfInterest.Add(JointType.SpineMid);

            record = new RecordMovement(jointsOfInterest, pointsToAnalyze);
            benchPress = new WorkoutTracking(jointsOfInterest, 2);

            this.dictAllMovementPositions = new Dictionary<JointType, List<Point3D>>();

            foreach(var joint in jointsOfInterest)
            {
                distanceSum[joint] = 0.0f;
            }

            foreach (var joint in jointsOfInterest)
            {
                distanceScale[joint] = 0.0f;
            }

            foreach (var joint in jointsOfInterest)
            {
                dictAllMovementPositions.Add(joint, new List<Point3D>());

            }
        }
        void NumberOfJointPoints(object sender, RoutedEventArgs e)
        {
            if (sixJoints.IsChecked == true)
            {
                jointsOfInterest.Clear();
                jointsOfInterest.Add(JointType.HandLeft);
                jointsOfInterest.Add(JointType.HandRight);
                /* jointsOfInterest.Add(JointType.ElbowLeft);
                 jointsOfInterest.Add(JointType.ElbowRight);
                 jointsOfInterest.Add(JointType.AnkleLeft);
                 jointsOfInterest.Add(JointType.AnkleRight); */
                jointsOfInterest.Add(JointType.Head);
                jointsOfInterest.Add(JointType.KneeLeft);
                jointsOfInterest.Add(JointType.KneeRight);
                jointsOfInterest.Add(JointType.SpineMid);

            /*    foreach (var joint in jointsOfInterest)
                {
                    dictAllMovementPositions.Add(joint, new List<Point3D>());
                }  */

                recordVisualization = true;

                jointsChange = true;
                PressSpaced = false;
                escape = false;

                record = new RecordMovement(jointsOfInterest, pointsToAnalyze);
                benchPress = new WorkoutTracking(jointsOfInterest, 2);
            }
            else
            {
                jointsOfInterest.Clear();
                jointsOfInterest.Add(JointType.HandLeft);
                jointsOfInterest.Add(JointType.HandRight);

              /*      foreach (var joint in jointsOfInterest)
                {
                    dictAllMovementPositions.Add(joint, new List<Point3D>());
                }  */

                jointsChange = true;
                PressSpaced = false;
                escape = false;
                recordVisualization = true;

                record = new RecordMovement(jointsOfInterest, pointsToAnalyze);
                benchPress = new WorkoutTracking(jointsOfInterest, 2);

            }
        }