NorMIT-nav  18.04
An IGT application
cx::VideoRecorder Class Reference

Recorder for a VideoSource. More...

#include <cxVideoRecorder.h>

Inheritance diagram for cx::VideoRecorder:

Public Types

typedef std::map< double, vtkImageDataPtrDataType
 <timestamp, frame> More...
 

Public Member Functions

 VideoRecorder (VideoSourcePtr source, bool sync=true)
 
virtual ~VideoRecorder ()
 
virtual void startRecord ()
 
virtual void stopRecord ()
 
virtual DataType getRecording (double start, double stop)
 

Detailed Description

Recorder for a VideoSource.

The class has an autosync feature that is useful if the realtimestream clock is unsynced with the master clock. The first received frame is used to estimate a shift between the master and source clocks. This shift is then added to the input times in getRecording in order to retrieve data using the source clock.

Definition at line 46 of file cxVideoRecorder.h.

Member Typedef Documentation

typedef std::map<double, vtkImageDataPtr> cx::VideoRecorder::DataType

<timestamp, frame>

Definition at line 50 of file cxVideoRecorder.h.

Constructor & Destructor Documentation

cx::VideoRecorder::VideoRecorder ( VideoSourcePtr  source,
bool  sync = true 
)

Definition at line 28 of file cxVideoRecorder.cpp.

cx::VideoRecorder::~VideoRecorder ( )
virtual

Definition at line 35 of file cxVideoRecorder.cpp.

Member Function Documentation

VideoRecorder::DataType cx::VideoRecorder::getRecording ( double  start,
double  stop 
)
virtual

Definition at line 94 of file cxVideoRecorder.cpp.

void cx::VideoRecorder::startRecord ( )
virtual

Definition at line 48 of file cxVideoRecorder.cpp.

void cx::VideoRecorder::stopRecord ( )
virtual

Definition at line 53 of file cxVideoRecorder.cpp.


The documentation for this class was generated from the following files: