CustusX  2023.01.05-dev+develop.0da12
An IGT application
cx::USSavingRecorder Class Reference

Record and save ultrasound data.Use the start/stop pair to record video from the input streams during that period. A cancel instead of stop will clear the recording. More...

#include <cxUSSavingRecorder.h>

Inheritance diagram for cx::USSavingRecorder:

Signals

void saveDataCompleted (QString mhdFilename)
 emitted when data has been saved to file More...
 

Public Member Functions

 USSavingRecorder ()
 
virtual ~USSavingRecorder ()
 
void startRecord (RecordSessionPtr session, ToolPtr tool, ToolPtr reference, std::vector< VideoSourcePtr > video, FileManagerServicePtr filemanager)
 
void stopRecord ()
 
void cancelRecord ()
 
void setWriteColor (bool on)
 
void set_rMpr (Transform3D rMpr)
 
USReconstructInputData getDataForStream (QString streamUid)
 
void startSaveData (QString baseFolder, bool compressImages)
 
size_t getNumberOfSavingThreads () const
 
void clearRecording ()
 

Detailed Description

Record and save ultrasound data.

Use the start/stop pair to record video from the input streams during that period. A cancel instead of stop will clear the recording.

After stopping, use

Use clearRecording() to free memory and temporary files (this can be a lot of disk space).

Intended to be a unit-testable part of the USAcquisition class.

Date
April 17, 2013
Author
christiana

Definition at line 56 of file cxUSSavingRecorder.h.

Constructor & Destructor Documentation

cx::USSavingRecorder::USSavingRecorder ( )

Definition at line 35 of file cxUSSavingRecorder.cpp.

cx::USSavingRecorder::~USSavingRecorder ( )
virtual

Definition at line 40 of file cxUSSavingRecorder.cpp.

Member Function Documentation

void cx::USSavingRecorder::cancelRecord ( )

Definition at line 101 of file cxUSSavingRecorder.cpp.

void cx::USSavingRecorder::clearRecording ( )

Definition at line 166 of file cxUSSavingRecorder.cpp.

USReconstructInputData cx::USSavingRecorder::getDataForStream ( QString  streamUid)

Retrieve an in-memory data set for the given stream uid.

Definition at line 107 of file cxUSSavingRecorder.cpp.

size_t cx::USSavingRecorder::getNumberOfSavingThreads ( ) const

Definition at line 174 of file cxUSSavingRecorder.cpp.

void cx::USSavingRecorder::saveDataCompleted ( QString  mhdFilename)
signal

emitted when data has been saved to file

void cx::USSavingRecorder::set_rMpr ( Transform3D  rMpr)

Definition at line 54 of file cxUSSavingRecorder.cpp.

void cx::USSavingRecorder::setWriteColor ( bool  on)

Definition at line 49 of file cxUSSavingRecorder.cpp.

void cx::USSavingRecorder::startRecord ( RecordSessionPtr  session,
ToolPtr  tool,
ToolPtr  reference,
std::vector< VideoSourcePtr video,
FileManagerServicePtr  filemanager 
)

Start recording

Definition at line 59 of file cxUSSavingRecorder.cpp.

void cx::USSavingRecorder::startSaveData ( QString  baseFolder,
bool  compressImages 
)

Start saving all data acquired after a start/stop record. A separate saveDataCompleted() signal is emitted for each completed saved stream.

Definition at line 150 of file cxUSSavingRecorder.cpp.

void cx::USSavingRecorder::stopRecord ( )

Definition at line 88 of file cxUSSavingRecorder.cpp.


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