Widget allowing to play / record ToF data.
More...
#include <QmitkToFRecorderWidget.h>
|
| void | OnPlay () |
| | slot invoking to start the camera. Calls StartCamera() and emits ToFCameraStarted signal
|
| |
| void | OnStop () |
| | slot invoking to stop the camera and the recorder. Calls StopCamera() and StopRecorder and emits ToFCameraStarted signal. Resets GUI to initial state.
|
| |
| void | OnStartRecorder () |
| | slot invoking to start the recording After letting the user chose a file location for the record, m_ImageRecorder->StartRecording() is inoved.
|
| |
| void | OnRecordingStopped () |
| | slot resetting the GUI elements of the recording box
|
| |
| void | OnChangeRecordModeComboBox (int index) |
| | slot activating/deactivating "number of frames" spin box dependent on recording mode (PerFrame / Infinite)
|
| |
|
| static const std::string | VIEW_ID = "org.mitk.views.qmitktofrecorderwidget" |
| |
|
| void | StartCamera () |
| | starts the camera by calling ToFImageGrabber::StartCamera()
|
| |
| void | StopCamera () |
| | stops the camera by calling ToFImageGrabber::StopCamera()
|
| |
| void | StopRecorder () |
| | stops the recording by calling ToFImageRecorder::StopRecording()
|
| |
| void | StopRecordingCallback () |
| | emits RecordingStopped signal.
|
| |
| std::string | prepareFilename (std::string dir, std::string baseFilename, std::string modulationFreq, std::string integrationTime, std::string numOfFrames, std::string extension, std::string imageType) |
| | method creating a filename from the given information
|
| |
|
| static QString | getSaveFileName (mitk::ToFImageWriter::ToFImageType &tofImageType, bool &distanceImageSelected, bool &litudeImageSelected, bool &intensityImageSelected, bool &rgbImageSelected, bool &rawDataSelected, QWidget *parent=nullptr, const QString &caption=QString(), const QString &dir=QString(), const QString &filter=QString(), QString *selectedFilter=nullptr, QFileDialog::Options options={}) |
| | adapted version of QFileDialog::getSaveFileName() The user is now asked to choose which images he wants to save (Distance and/or Intensity and/or Amplitude image) and which type the saved image should have (3D, 2D+t).
|
| |
Widget allowing to play / record ToF data.
Definition at line 41 of file QmitkToFRecorderWidget.h.
◆ CommandType
◆ QmitkToFRecorderWidget()
| QmitkToFRecorderWidget::QmitkToFRecorderWidget |
( |
QWidget * | p = nullptr, |
|
|
Qt::WindowFlags | f1 = {} ) |
◆ ~QmitkToFRecorderWidget()
| QmitkToFRecorderWidget::~QmitkToFRecorderWidget |
( |
| ) |
|
|
override |
◆ CreateConnections()
| void QmitkToFRecorderWidget::CreateConnections |
( |
| ) |
|
|
virtual |
◆ CreateQtPartControl()
| void QmitkToFRecorderWidget::CreateQtPartControl |
( |
QWidget * | parent | ) |
|
|
virtual |
◆ getSaveFileName()
| QString QmitkToFRecorderWidget::getSaveFileName |
( |
mitk::ToFImageWriter::ToFImageType & | tofImageType, |
|
|
bool & | distanceImageSelected, |
|
|
bool & | amplitudeImageSelected, |
|
|
bool & | intensityImageSelected, |
|
|
bool & | rgbImageSelected, |
|
|
bool & | rawDataSelected, |
|
|
QWidget * | parent = nullptr, |
|
|
const QString & | caption = QString(), |
|
|
const QString & | dir = QString(), |
|
|
const QString & | filter = QString(), |
|
|
QString * | selectedFilter = nullptr, |
|
|
QFileDialog::Options | options = {} ) |
|
staticprotected |
adapted version of QFileDialog::getSaveFileName() The user is now asked to choose which images he wants to save (Distance and/or Intensity and/or Amplitude image) and which type the saved image should have (3D, 2D+t).
Definition at line 271 of file QmitkToFRecorderWidget.cpp.
◆ OnChangeRecordModeComboBox
| void QmitkToFRecorderWidget::OnChangeRecordModeComboBox |
( |
int | index | ) |
|
|
slot |
slot activating/deactivating "number of frames" spin box dependent on recording mode (PerFrame / Infinite)
Definition at line 403 of file QmitkToFRecorderWidget.cpp.
◆ OnPlay
| void QmitkToFRecorderWidget::OnPlay |
( |
| ) |
|
|
slot |
◆ OnRecordingStopped
| void QmitkToFRecorderWidget::OnRecordingStopped |
( |
| ) |
|
|
slot |
◆ OnStartRecorder
| void QmitkToFRecorderWidget::OnStartRecorder |
( |
| ) |
|
|
slot |
slot invoking to start the recording After letting the user chose a file location for the record, m_ImageRecorder->StartRecording() is inoved.
Definition at line 156 of file QmitkToFRecorderWidget.cpp.
◆ OnStop
| void QmitkToFRecorderWidget::OnStop |
( |
| ) |
|
|
slot |
slot invoking to stop the camera and the recorder. Calls StopCamera() and StopRecorder and emits ToFCameraStarted signal. Resets GUI to initial state.
Definition at line 112 of file QmitkToFRecorderWidget.cpp.
◆ prepareFilename()
| std::string QmitkToFRecorderWidget::prepareFilename |
( |
std::string | dir, |
|
|
std::string | baseFilename, |
|
|
std::string | modulationFreq, |
|
|
std::string | integrationTime, |
|
|
std::string | numOfFrames, |
|
|
std::string | extension, |
|
|
std::string | imageType ) |
|
protected |
method creating a filename from the given information
- Parameters
-
| dir | directory to save the file |
| baseFilename | base file name entered by the user |
| modulationFreq | modulation frequency of the camera |
| integrationTime | integration time of the camera |
| numOfFrames | number of frames recorded |
| extension | file extension |
| imageType | type of image (DistanceImage, IntensityImage, AmplitudeImage) |
- Returns
- dir+"/"+baseFilename+"_MF"+modulationFreq+"_IT"+integrationTime+"_"+numOfFrames+"Images"+imageType+extension
Definition at line 379 of file QmitkToFRecorderWidget.cpp.
◆ RecordingStarted
| void QmitkToFRecorderWidget::RecordingStarted |
( |
| ) |
|
|
signal |
signal emitted when recording is started
◆ RecordingStopped
| void QmitkToFRecorderWidget::RecordingStopped |
( |
| ) |
|
|
signal |
signal emitted AbortEvent() in ToFImageRecorder is observed
◆ ResetGUIToInitial()
| void QmitkToFRecorderWidget::ResetGUIToInitial |
( |
| ) |
|
resets the GUI elements to the initial state. Play button: enabled, Stop button: disabled, Recording box: disabled
Definition at line 99 of file QmitkToFRecorderWidget.cpp.
◆ SetParameter()
Set the parameters used for this widget.
- Parameters
-
| ToFImageGrabber | image grabber providing images from a ToF device |
| toFImageRecorder | image recorder allowing to record ToF images |
Definition at line 77 of file QmitkToFRecorderWidget.cpp.
◆ StartCamera()
| void QmitkToFRecorderWidget::StartCamera |
( |
| ) |
|
|
protected |
◆ StopCamera()
| void QmitkToFRecorderWidget::StopCamera |
( |
| ) |
|
|
protected |
◆ StopRecorder()
| void QmitkToFRecorderWidget::StopRecorder |
( |
| ) |
|
|
protected |
◆ StopRecordingCallback()
| void QmitkToFRecorderWidget::StopRecordingCallback |
( |
| ) |
|
|
protected |
◆ ToFCameraStarted
| void QmitkToFRecorderWidget::ToFCameraStarted |
( |
| ) |
|
|
signal |
signal emitted when "Play" button is pressed
◆ ToFCameraStopped
| void QmitkToFRecorderWidget::ToFCameraStopped |
( |
| ) |
|
|
signal |
signal emitted when "Stop" button is pressed
◆ m_Controls
| Ui::QmitkToFRecorderWidgetControls* QmitkToFRecorderWidget::m_Controls |
|
protected |
◆ m_RecordMode
◆ m_StopRecordingCommand
| CommandType::Pointer QmitkToFRecorderWidget::m_StopRecordingCommand |
|
protected |
◆ m_ToFImageGrabber
| mitk::ToFImageGrabber::Pointer QmitkToFRecorderWidget::m_ToFImageGrabber |
|
protected |
◆ m_ToFImageRecorder
| mitk::ToFImageRecorder::Pointer QmitkToFRecorderWidget::m_ToFImageRecorder |
|
protected |
◆ VIEW_ID
| const std::string QmitkToFRecorderWidget::VIEW_ID = "org.mitk.views.qmitktofrecorderwidget" |
|
static |
The documentation for this class was generated from the following files: