コード例 #1
0
 /// <summary>
 /// Starts recording a new sub session
 /// </summary>
 /// <param name="_treadmillSpeed">The starting speed</param>
 private static void RecordedSubSessionStart(float _treadmillSpeed)
 {
     _subSessionStartTime = DateTime.Now;
     _currentSubSession   = new VirtualMotionCaptureSubSession();
     _currentFrame        = new VirtualMotionCaptureFrame();
     SaveTreadmillSpeedChange(_treadmillSpeed);
 }
コード例 #2
0
 /// <summary>
 /// Saves one frame of data
 /// </summary>
 private static void SaveFrame()
 {
     _currentFrame.MarkerList    = new List <Marker>(_currentMarkerList);
     _currentFrame.TrackableList = new List <Trackable>(_currentTrackableList);
     _currentFrame.TimeStamp     = _currentTrackableTimeStamp;
     _currentSubSession.AddFrame(_currentFrame);
     _currentFrame = new VirtualMotionCaptureFrame();
 }
コード例 #3
0
 /// <summary>
 /// Gets the next frame from the database
 /// </summary>
 /// <returns></returns>
 private static bool GetNextFrame()
 {
     _currentFrame = _currentSubSession.GetNextFrame();
     if (_currentFrame == null)
     {
         _currentSubSession.ResetSubSession();
         return(false);
     }
     else
     {
         return(true);
     }
 }
コード例 #4
0
 /// <summary>
 /// Saves one frame of data
 /// </summary>
 private static void SaveFrame()
 {
     _currentFrame.MarkerList = new List<Marker>(_currentMarkerList);
     _currentFrame.TrackableList = new List<Trackable>(_currentTrackableList);
     _currentFrame.TimeStamp = _currentTrackableTimeStamp;
     _currentSubSession.AddFrame(_currentFrame);
     _currentFrame = new VirtualMotionCaptureFrame();
 }
コード例 #5
0
 /// <summary>
 /// Starts recording a new sub session
 /// </summary>
 /// <param name="_treadmillSpeed">The starting speed</param>
 private static void RecordedSubSessionStart(float _treadmillSpeed)
 {
     _subSessionStartTime = DateTime.Now;
     _currentSubSession = new VirtualMotionCaptureSubSession();
     _currentFrame = new VirtualMotionCaptureFrame();
     SaveTreadmillSpeedChange(_treadmillSpeed);
 }
コード例 #6
0
 /// <summary>
 /// Gets the next frame from the database
 /// </summary>
 /// <returns></returns>
 private static bool GetNextFrame()
 {
     _currentFrame = _currentSubSession.GetNextFrame();
     if (_currentFrame == null)
     {
         _currentSubSession.ResetSubSession();
         return false;
     }
     else return true;
 }
コード例 #7
0
 /// <summary>
 /// Adds a frame of data
 /// </summary>
 /// <param name="frame"></param>
 public void AddFrame(VirtualMotionCaptureFrame frame)
 {
     _virtualMotionCaptureFrameList.Add(frame);
 }
コード例 #8
0
 /// <summary>
 /// Adds a frame of data
 /// </summary>
 /// <param name="frame"></param>
 public void AddFrame(VirtualMotionCaptureFrame frame)
 {
     _virtualMotionCaptureFrameList.Add(frame);
 }