Exemple #1
0
        public void setPlayerStatus(long currentTime)
        {
            if (currentTime > duration)
                return;
            if (currentTime < 0)
                return;
            if (currentTime == 0)
            {
                loadIndexEvent();
            }
            else {
                searchNearestEvent(currentTime);
            }

            KinectEventLineData currentEventLine = kinectEventLine;
            executePreviousEvent();
            kinectEventLine = currentEventLine;
            return;
        }
Exemple #2
0
 private void loadPreviousEvent()
 {
     KinectEventLineData nextEvent = kinectEventLine.loadPreviousEvent(eventRootFolder);
     kinectEventLine = nextEvent;
 }
Exemple #3
0
 private void loadIndexEvent()
 {
     kinectEventLine = ked.loadIndexEvent(eventRootFolder);
 }
Exemple #4
0
 private void loadKinectEventBySequenceIndex(int index)
 {
     kinectEventLine = ked.loadEventBySequenceNumber(eventRootFolder, index);
 }
        private void saveNextEvent(long time, string kinectEventFileName, EventType eventType)
        {
            if (!isStartRecording)
            {
                isStartRecording = true;
                lastEvent = new KinectEventLineData();
                lastEvent.set(1, "", time, kinectEventFileName, eventType);
                kinectEventIndexFileName = lastEvent.saveFileName;
                sequenceNumber = 2;
            }

            KinectEventLineData nextEvent = new KinectEventLineData();
            nextEvent.set(sequenceNumber, lastEvent.saveFileName, time, kinectEventFileName, eventType);
            lastEvent.nextFileName = nextEvent.saveFileName;
            sequenceNumber++;

            lastEvent.save(recordDirecotory);

            lastEvent = nextEvent;
        }