Fraxinus  16.5.0-fx-rc7
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cx::VideoRecorder Class Reference

Recorder for a VideoSource. More...

#include <cxVideoRecorder.h>

Inheritance diagram for cx::VideoRecorder:

Public Types

typedef std::map< double,
vtkImageDataPtr
DataType
 <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 67 of file cxVideoRecorder.h.

Member Typedef Documentation

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

<timestamp, frame>

Definition at line 71 of file cxVideoRecorder.h.

Constructor & Destructor Documentation

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

Definition at line 49 of file cxVideoRecorder.cpp.

cx::VideoRecorder::~VideoRecorder ( )
virtual

Definition at line 56 of file cxVideoRecorder.cpp.

Member Function Documentation

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

Definition at line 115 of file cxVideoRecorder.cpp.

void cx::VideoRecorder::startRecord ( )
virtual

Definition at line 69 of file cxVideoRecorder.cpp.

void cx::VideoRecorder::stopRecord ( )
virtual

Definition at line 74 of file cxVideoRecorder.cpp.


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