示例#1
0
        /// <summary>
        /// shows a waiting dialog and start creation of skeleton movie in another thread
        /// </summary>
        private void startSkeletonMovieCreation()
        {
            SkeletonMovieCreatorWorker worker = new SkeletonMovieCreatorWorker(recorded_skeleton_frames, casePath + "/Skeleton-Film.avi");

            worker.OnWorkerComplete += new SkeletonMovieCreatorWorker.OnWorkerMethodCompleteDelegate(OnSkeletonWorkerMethodComplete);
            ThreadStart tStart = new ThreadStart(worker.WorkerMethod);
            Thread      t      = new Thread(tStart);

            progressWindow       = new progressDialog("Making Skeleton film. Please wait...");
            progressWindow.Owner = this;
            progressWindow.Show();
            t.Start();
        }
示例#2
0
        /// <summary>
        /// shows a waiting dialog and start creation of movement log file in another thread
        /// </summary>
        private void startMovementLogCreation()
        {
            MovementLogCtreationWorker worker = new MovementLogCtreationWorker(recorded_skeleton_frames, casePath + "/log.txt");

            worker.OnWorkerComplete += new MovementLogCtreationWorker.OnWorkerMethodCompleteDelegate(OnLogWorkerMethodComplete);
            ThreadStart tStart = new ThreadStart(worker.WorkerMethod);
            Thread      t      = new Thread(tStart);

            progressWindow       = new progressDialog("Making movement log file. Please wait...");
            progressWindow.Owner = this;
            progressWindow.Show();
            t.Start();
        }
示例#3
0
        /// <summary>
        /// shows a waiting dialog and start creation of overlay movie in another thread
        /// </summary>
        private void startOverlayMovieCreation()
        {
            OverlayMovieCreatorWorker worker = new OverlayMovieCreatorWorker(ref recorded_color_frames, ref recorded_skeleton_frames, casePath + "/Overlay-Film.avi");

            worker.OnWorkerComplete += new OverlayMovieCreatorWorker.OnWorkerMethodCompleteDelegate(OnOverlayWorkerMethodComplete);
            ThreadStart tStart = new ThreadStart(worker.WorkerMethod);
            Thread      t      = new Thread(tStart);

            progressWindow       = new progressDialog("Making overlay film. Please wait...");
            progressWindow.Owner = this;
            progressWindow.Show();
            t.Start();
        }