public void loadFrameOverlayHeader() { try { CSVFileParser l_Parser = new CSVFileParser(); l_Parser.startParsingCSVData(mVideoInfoFilepath, 0, 0); string[] row; row = l_Parser.getNextRow(0); mVideoFilepath = ProjectConstants.PROJECT_MEDIA_PATH + @"\" + row[1]; row = l_Parser.getNextRow(0); mSlowMoVideoFilepath = ProjectConstants.PROJECT_MEDIA_PATH + @"\" + row[1]; row = l_Parser.getNextRow(0); FPS = Convert.ToInt32(row[1]); row = l_Parser.getNextRow(0); Duration = Convert.ToInt32(row[1]); row = l_Parser.getNextRow(0); SlowMoRatio = Convert.ToDouble(row[1]); } catch (CSVFileException e) { throw e; } }
public void loadShapeData(List <Shape> p_DynamicShapes) { m_Parser = new CSVFileParser(); m_Parser.startParsingCSVData(ProjectConstants.SHAPE_LIST_PATH, 0, 0); string[] row; while ((row = m_Parser.getNextRow(0)) != null) { Shape l_Shape = Shape.getShape(row); p_DynamicShapes.Add(l_Shape); } }
private string getVideoFilename(string pVideoInfoFilepath) { try { CSVFileParser l_Parser = new CSVFileParser(); l_Parser.startParsingCSVData(pVideoInfoFilepath, 0, 0); string[] row = l_Parser.getNextRow(0); l_Parser.close(); return(row[VIDEO_FILEPATH_INDEX]); } catch (CSVFileException e) { throw e; } }
private void SpaceSensorRecordingThreadSimulation() { CSVFileParser l_Parser = new CSVFileParser(); l_Parser.startParsingCSVData(ProjectConstants.SPACE_SENSOR_SIMULATED_DATA_PATH, 0, 14); string[] row; while ((row = l_Parser.getNextRow(0)) != null) { SensorData sensor1DataObj = new SensorData(); ReadSimulationSensorData(sensor1DataObj, row, 2); SensorData sensor2DataObj = new SensorData(); ReadSimulationSensorData(sensor2DataObj, row, 12); mParent.ReceivedEventRecordingData(sensor2DataObj, sensor2DataObj); Thread.Sleep(1); } l_Parser.close(); }
public void loadFrameOverlayData(int pVideoWidth, int pVideoHeight) { try { CSVFileParser l_Parser = new CSVFileParser(); l_Parser.startParsingCSVData(mVideoInfoFilepath, 0, 0); string[] row; //Skip 6 Row l_Parser.getNextRow(0); l_Parser.getNextRow(0); l_Parser.getNextRow(0); l_Parser.getNextRow(0); l_Parser.getNextRow(0); l_Parser.getNextRow(0); while ((row = l_Parser.getNextRow(0)) != null) { FrameOverlayItem lFrameOverlayItem = new FrameOverlayItem(this, row, pVideoWidth, pVideoHeight); mFrameOverlayItemList.Add(lFrameOverlayItem); if (lFrameOverlayItem.FrameEvent) { mFrameMilestoneEventList.Add(lFrameOverlayItem.FrameEventName); } } l_Parser.close(); setMaxFrameCountForOverlayItems(); createFrameOverlayStructure(); } catch (CSVFileException e) { throw e; } }
public string[] getNextDataRow(int rowSkipStep) { try { if (m_CSVDataParsingInProgress == false) { m_CSVFileParser = new CSVFileParser(); m_CSVFileParser.startParsingCSVData(FilePath, NUMBER_OF_HEADER_ROWS, NUMBER_OF_UNUSEDDATA_ROWS_TO_SKIP); m_CSVDataParsingInProgress = true; } string[] rows = m_CSVFileParser.getNextRow(rowSkipStep); if (rows == null) { stopCSVParsing(); } return(rows); } catch (CSVFileException e) { throw e; } }
public void loadShapeData(List<WiimoteOrgeControlShape> p_DynamicShapes) { m_Parser = new CSVFileParser(); m_Parser.startParsingCSVData(ProjectConstants.SHAPE_LIST_PATH, 0, 0); string[] row; while ((row = m_Parser.getNextRow(0)) != null) { WiimoteOrgeControlShape l_Shape = WiimoteOrgeControlShape.getShape(row); p_DynamicShapes.Add(l_Shape); } }
private string getVideoFilename(string pVideoInfoFilepath) { try { CSVFileParser l_Parser = new CSVFileParser(); l_Parser.startParsingCSVData(pVideoInfoFilepath, 0, 0); string[] row = l_Parser.getNextRow(0); l_Parser.close(); return row[VIDEO_FILEPATH_INDEX]; } catch (CSVFileException e) { throw e; } }
private void SpaceSensorRecordingThreadSimulation() { CSVFileParser l_Parser = new CSVFileParser(); l_Parser.startParsingCSVData(ProjectConstants.SPACE_SENSOR_SIMULATED_DATA_PATH, 0, 14); string[] row; while ((row = l_Parser.getNextRow(0)) != null) { SensorData sensor1DataObj = new SensorData(); ReadSimulationSensorData(sensor1DataObj,row,2); SensorData sensor2DataObj = new SensorData(); ReadSimulationSensorData(sensor2DataObj, row, 12); mParent.ReceivedEventRecordingData(sensor2DataObj, sensor2DataObj); Thread.Sleep(1); } l_Parser.close(); }
public void loadFrameOverlayData(int pVideoWidth,int pVideoHeight) { try { CSVFileParser l_Parser = new CSVFileParser(); l_Parser.startParsingCSVData(mVideoInfoFilepath, 0, 0); string[] row; //Skip 6 Row l_Parser.getNextRow(0); l_Parser.getNextRow(0); l_Parser.getNextRow(0); l_Parser.getNextRow(0); l_Parser.getNextRow(0); l_Parser.getNextRow(0); while ((row = l_Parser.getNextRow(0)) != null) { FrameOverlayItem lFrameOverlayItem = new FrameOverlayItem(this, row, pVideoWidth, pVideoHeight); mFrameOverlayItemList.Add(lFrameOverlayItem); if (lFrameOverlayItem.FrameEvent) mFrameMilestoneEventList.Add(lFrameOverlayItem.FrameEventName); } l_Parser.close(); setMaxFrameCountForOverlayItems(); createFrameOverlayStructure(); } catch (CSVFileException e) { throw e; } }