Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
This Widget enables the USer to create and connect Video Devices. More...
#include <QmitkUSNewVideoDeviceWidget.h>
Public Slots | |
void | EditDevice (mitk::USDevice::Pointer device) |
void | CreateNewDevice () |
Signals | |
void | Finished () |
Public Member Functions | |
QmitkUSNewVideoDeviceWidget (QWidget *p=nullptr, Qt::WindowFlags f1=nullptr) | |
~QmitkUSNewVideoDeviceWidget () override | |
virtual void | CreateQtPartControl (QWidget *parent) |
virtual void | CreateConnections () |
Static Public Attributes | |
static const std::string | VIEW_ID |
Protected Slots | |
void | OnClickedDone () |
void | OnClickedFinishedEditing () |
void | OnClickedCancel () |
void | OnDeviceTypeSelection () |
void | OnOpenFileButtonClicked () |
void | OnClickedRemoveProbe () |
void | OnClickedRemoveDepth () |
void | OnClickedAddDepths () |
void | OnProbeChanged (const QString &probename) |
void | OnDepthChanged (int depth, mitk::USProbe::Pointer probe) |
void | OnDepthChanged (const QString &depth) |
void | OnSaveButtonClicked () |
void | OnLoadConfigurationButtonClicked () |
void | OnAddNewProbeClicked () |
void | OnXSpacingSpinBoxChanged (double value) |
void | OnYSpacingSpinBoxChanged (double value) |
void | OnCroppingTopSpinBoxChanged (int value) |
void | OnCroppingRightSpinBoxChanged (int value) |
void | OnCroppingBottomSpinBoxChanged (int value) |
void | OnCroppingLeftSpinBoxChanged (int value) |
Protected Member Functions | |
QListWidgetItem * | ConstructItemFromDevice (mitk::USDevice::Pointer device) |
void | ChangeUIEditingUSVideoDevice () |
void | CleanUpAfterEditingOfDevice () |
void | CleanUpAfterCreatingNewDevice () |
void | AddProbesToDevice (mitk::USDevice::Pointer device) |
mitk::USProbe::Pointer | CheckIfProbeExistsAlready (const std::string &probe) |
void | CollectUltrasoundDeviceConfigInformation (mitk::USDeviceReaderXML::USDeviceConfigData &config) |
void | EnableDisableSpacingAndCropping (bool enable) |
Enables or disables the GUI elements of the spacing and cropping options. More... | |
Protected Attributes | |
Ui::QmitkUSNewVideoDeviceWidgetControls * | m_Controls |
member holding the UI elements of this widget More... | |
bool | m_Active |
mitk::USDevice::Pointer | m_TargetDevice |
This is the device to edit. It is either the device transmitted in the "EditDevice" signal, or a new one if the "CreateNewDevice slot was called. As device type: either mitkUSVideoDevice or mitkUSIGTLDevice. More... | |
std::vector< mitk::USProbe::Pointer > | m_ConfigProbes |
The config probes are used to have a possibility to configure ultrasound probes without having an existing created USVideoDevice yet. More... | |
This Widget enables the USer to create and connect Video Devices.
Definition at line 33 of file QmitkUSNewVideoDeviceWidget.h.
QmitkUSNewVideoDeviceWidget::QmitkUSNewVideoDeviceWidget | ( | QWidget * | p = nullptr , |
Qt::WindowFlags | f1 = nullptr |
||
) |
Definition at line 30 of file QmitkUSNewVideoDeviceWidget.cpp.
References CreateQtPartControl(), and m_Controls.
|
override |
Definition at line 38 of file QmitkUSNewVideoDeviceWidget.cpp.
|
protected |
Definition at line 782 of file QmitkUSNewVideoDeviceWidget.cpp.
References m_ConfigProbes.
Referenced by OnClickedDone(), and OnClickedFinishedEditing().
|
protected |
Definition at line 313 of file QmitkUSNewVideoDeviceWidget.cpp.
References m_ConfigProbes, m_Controls, m_TargetDevice, OnClickedFinishedEditing(), and OnProbeChanged().
Referenced by EditDevice().
|
protected |
Definition at line 796 of file QmitkUSNewVideoDeviceWidget.cpp.
References m_ConfigProbes.
Referenced by OnAddNewProbeClicked(), OnClickedAddDepths(), OnClickedRemoveDepth(), OnCroppingBottomSpinBoxChanged(), OnCroppingLeftSpinBoxChanged(), OnCroppingRightSpinBoxChanged(), OnCroppingTopSpinBoxChanged(), OnDepthChanged(), OnProbeChanged(), OnXSpacingSpinBoxChanged(), and OnYSpacingSpinBoxChanged().
|
protected |
Definition at line 763 of file QmitkUSNewVideoDeviceWidget.cpp.
References m_ConfigProbes, m_Controls, and OnClickedDone().
Referenced by OnClickedCancel(), and OnClickedDone().
|
protected |
Definition at line 773 of file QmitkUSNewVideoDeviceWidget.cpp.
References m_ConfigProbes, m_Controls, and OnClickedFinishedEditing().
Referenced by OnClickedCancel(), and OnClickedFinishedEditing().
|
protected |
Definition at line 807 of file QmitkUSNewVideoDeviceWidget.cpp.
References mitk::USDeviceReaderXML::USDeviceConfigData_::comment, mitk::USDeviceReaderXML::USDeviceConfigData_::deviceName, mitk::USDeviceReaderXML::USDeviceConfigData_::deviceType, mitk::USDeviceReaderXML::USDeviceConfigData_::filepathVideoSource, mitk::USDeviceReaderXML::USDeviceConfigData_::fileversion, mitk::USDeviceReaderXML::USDeviceConfigData_::host, m_ConfigProbes, m_Controls, mitk::USDeviceReaderXML::USDeviceConfigData_::manufacturer, mitk::USDeviceReaderXML::USDeviceConfigData_::model, mitk::USDeviceReaderXML::USDeviceConfigData_::port, mitk::USDeviceReaderXML::USDeviceConfigData_::probes, mitk::USDeviceReaderXML::USDeviceConfigData_::resolutionHeight, mitk::USDeviceReaderXML::USDeviceConfigData_::resolutionWidth, mitk::USDeviceReaderXML::USDeviceConfigData_::server, mitk::USDeviceReaderXML::USDeviceConfigData_::sourceID, mitk::USDeviceReaderXML::USDeviceConfigData_::useGreyscale, and mitk::USDeviceReaderXML::USDeviceConfigData_::useResolutionOverride.
Referenced by OnSaveButtonClicked().
|
protected |
Definition at line 303 of file QmitkUSNewVideoDeviceWidget.cpp.
|
virtual |
Definition at line 53 of file QmitkUSNewVideoDeviceWidget.cpp.
References m_Controls, OnAddNewProbeClicked(), OnClickedAddDepths(), OnClickedCancel(), OnClickedRemoveDepth(), OnClickedRemoveProbe(), OnCroppingBottomSpinBoxChanged(), OnCroppingLeftSpinBoxChanged(), OnCroppingRightSpinBoxChanged(), OnCroppingTopSpinBoxChanged(), OnDepthChanged(), OnDeviceTypeSelection(), OnLoadConfigurationButtonClicked(), OnOpenFileButtonClicked(), OnProbeChanged(), OnSaveButtonClicked(), OnXSpacingSpinBoxChanged(), and OnYSpacingSpinBoxChanged().
Referenced by CreateQtPartControl().
|
slot |
Definition at line 281 of file QmitkUSNewVideoDeviceWidget.cpp.
References m_Active, m_ConfigProbes, m_Controls, m_TargetDevice, and OnClickedDone().
|
virtual |
Definition at line 42 of file QmitkUSNewVideoDeviceWidget.cpp.
References CreateConnections(), and m_Controls.
Referenced by QmitkUSNewVideoDeviceWidget().
|
slot |
Definition at line 263 of file QmitkUSNewVideoDeviceWidget.cpp.
References ChangeUIEditingUSVideoDevice(), m_Active, m_ConfigProbes, m_TargetDevice, and mitkThrow.
|
protected |
Enables or disables the GUI elements of the spacing and cropping options.
enable | If true: the GUI elements are enabled. If false: elements are disabled. |
Definition at line 852 of file QmitkUSNewVideoDeviceWidget.cpp.
References m_Controls.
Referenced by OnClickedRemoveDepth(), OnClickedRemoveProbe(), and OnDepthChanged().
|
signal |
Referenced by OnClickedCancel(), OnClickedDone(), and OnClickedFinishedEditing().
|
protectedslot |
Definition at line 608 of file QmitkUSNewVideoDeviceWidget.cpp.
References CheckIfProbeExistsAlready(), m_ConfigProbes, m_Controls, and mitk::USProbe::New().
Referenced by CreateConnections().
|
protectedslot |
Definition at line 332 of file QmitkUSNewVideoDeviceWidget.cpp.
References CheckIfProbeExistsAlready(), m_Controls, and OnProbeChanged().
Referenced by CreateConnections().
|
protectedslot |
Definition at line 222 of file QmitkUSNewVideoDeviceWidget.cpp.
References CleanUpAfterCreatingNewDevice(), CleanUpAfterEditingOfDevice(), Finished(), m_Active, and m_TargetDevice.
Referenced by CreateConnections().
|
protectedslot |
Definition at line 96 of file QmitkUSNewVideoDeviceWidget.cpp.
References AddProbesToDevice(), CleanUpAfterCreatingNewDevice(), Finished(), m_Active, m_Controls, mitk::USProbe::New(), mitk::ImageSource::New(), and mitk::USImageVideoSource::SetColorOutput().
Referenced by CleanUpAfterCreatingNewDevice(), and CreateNewDevice().
|
protectedslot |
Definition at line 179 of file QmitkUSNewVideoDeviceWidget.cpp.
References AddProbesToDevice(), CleanUpAfterEditingOfDevice(), Finished(), m_Active, m_Controls, m_TargetDevice, MITK_INFO, mitk::USProbe::New(), and mitk::USImageVideoSource::SetColorOutput().
Referenced by ChangeUIEditingUSVideoDevice(), and CleanUpAfterEditingOfDevice().
|
protectedslot |
Definition at line 355 of file QmitkUSNewVideoDeviceWidget.cpp.
References CheckIfProbeExistsAlready(), EnableDisableSpacingAndCropping(), and m_Controls.
Referenced by CreateConnections().
|
protectedslot |
Definition at line 375 of file QmitkUSNewVideoDeviceWidget.cpp.
References EnableDisableSpacingAndCropping(), m_ConfigProbes, and m_Controls.
Referenced by CreateConnections().
|
protectedslot |
Definition at line 723 of file QmitkUSNewVideoDeviceWidget.cpp.
References CheckIfProbeExistsAlready(), mitk::USProbe::USProbeCropping_::left, m_Controls, MITK_INFO, mitk::USProbe::USProbeCropping_::right, and mitk::USProbe::USProbeCropping_::top.
Referenced by CreateConnections().
|
protectedslot |
Definition at line 743 of file QmitkUSNewVideoDeviceWidget.cpp.
References mitk::USProbe::USProbeCropping_::bottom, CheckIfProbeExistsAlready(), m_Controls, MITK_INFO, mitk::USProbe::USProbeCropping_::right, and mitk::USProbe::USProbeCropping_::top.
Referenced by CreateConnections().
|
protectedslot |
Definition at line 703 of file QmitkUSNewVideoDeviceWidget.cpp.
References mitk::USProbe::USProbeCropping_::bottom, CheckIfProbeExistsAlready(), mitk::USProbe::USProbeCropping_::left, m_Controls, MITK_INFO, and mitk::USProbe::USProbeCropping_::top.
Referenced by CreateConnections().
|
protectedslot |
Definition at line 683 of file QmitkUSNewVideoDeviceWidget.cpp.
References mitk::USProbe::USProbeCropping_::bottom, CheckIfProbeExistsAlready(), mitk::USProbe::USProbeCropping_::left, m_Controls, MITK_INFO, and mitk::USProbe::USProbeCropping_::right.
Referenced by CreateConnections().
|
protectedslot |
Definition at line 423 of file QmitkUSNewVideoDeviceWidget.cpp.
References mitk::USProbe::USProbeCropping_::bottom, EnableDisableSpacingAndCropping(), mitk::USProbe::USProbeCropping_::left, m_Controls, mitk::USProbe::USProbeCropping_::right, and mitk::USProbe::USProbeCropping_::top.
Referenced by CreateConnections(), OnDepthChanged(), and OnProbeChanged().
|
protectedslot |
Definition at line 457 of file QmitkUSNewVideoDeviceWidget.cpp.
References CheckIfProbeExistsAlready(), EnableDisableSpacingAndCropping(), m_Controls, MITK_INFO, and OnDepthChanged().
|
protectedslot |
Definition at line 231 of file QmitkUSNewVideoDeviceWidget.cpp.
References m_Controls.
Referenced by CreateConnections(), OnLoadConfigurationButtonClicked(), and OnOpenFileButtonClicked().
|
protectedslot |
Definition at line 494 of file QmitkUSNewVideoDeviceWidget.cpp.
References mitk::USDeviceReaderXML::USDeviceConfigData_::comment, mitk::USDeviceReaderXML::USDeviceConfigData_::deviceName, mitk::USDeviceReaderXML::USDeviceConfigData_::deviceType, mitk::USDeviceReaderXML::USDeviceConfigData_::filepathVideoSource, mitk::USDeviceReaderXML::USDeviceConfigData_::fileversion, mitk::USDeviceReaderXML::GetUSDeviceConfigData(), mitk::USDeviceReaderXML::USDeviceConfigData_::host, m_ConfigProbes, m_Controls, mitk::USDeviceReaderXML::USDeviceConfigData_::manufacturer, MITK_WARN, mitk::USDeviceReaderXML::USDeviceConfigData_::model, OnDeviceTypeSelection(), OnProbeChanged(), mitk::USDeviceReaderXML::USDeviceConfigData_::port, mitk::USDeviceReaderXML::USDeviceConfigData_::probes, mitk::USDeviceReaderXML::ReadUltrasoundDeviceConfiguration(), mitk::USDeviceReaderXML::USDeviceConfigData_::resolutionHeight, mitk::USDeviceReaderXML::USDeviceConfigData_::resolutionWidth, mitk::USDeviceReaderXML::USDeviceConfigData_::server, mitk::USDeviceReaderXML::SetFilename(), mitk::USDeviceReaderXML::USDeviceConfigData_::sourceID, mitk::USDeviceReaderXML::USDeviceConfigData_::useGreyscale, and mitk::USDeviceReaderXML::USDeviceConfigData_::useResolutionOverride.
Referenced by CreateConnections().
|
protectedslot |
Definition at line 247 of file QmitkUSNewVideoDeviceWidget.cpp.
References m_Controls, and OnDeviceTypeSelection().
Referenced by CreateConnections().
|
protectedslot |
Definition at line 397 of file QmitkUSNewVideoDeviceWidget.cpp.
References CheckIfProbeExistsAlready(), m_Controls, and OnDepthChanged().
Referenced by ChangeUIEditingUSVideoDevice(), CreateConnections(), OnClickedAddDepths(), and OnLoadConfigurationButtonClicked().
|
protectedslot |
Definition at line 470 of file QmitkUSNewVideoDeviceWidget.cpp.
References CollectUltrasoundDeviceConfigInformation(), mitk::USDeviceWriterXML::SetFilename(), and mitk::USDeviceWriterXML::WriteUltrasoundDeviceConfiguration().
Referenced by CreateConnections().
|
protectedslot |
Definition at line 639 of file QmitkUSNewVideoDeviceWidget.cpp.
References CheckIfProbeExistsAlready(), m_Controls, and MITK_INFO.
Referenced by CreateConnections().
|
protectedslot |
Definition at line 661 of file QmitkUSNewVideoDeviceWidget.cpp.
References CheckIfProbeExistsAlready(), m_Controls, and MITK_INFO.
Referenced by CreateConnections().
|
protected |
Definition at line 150 of file QmitkUSNewVideoDeviceWidget.h.
Referenced by CreateNewDevice(), EditDevice(), OnClickedCancel(), OnClickedDone(), and OnClickedFinishedEditing().
|
protected |
The config probes are used to have a possibility to configure ultrasound probes without having an existing created USVideoDevice yet.
Definition at line 162 of file QmitkUSNewVideoDeviceWidget.h.
Referenced by AddProbesToDevice(), ChangeUIEditingUSVideoDevice(), CheckIfProbeExistsAlready(), CleanUpAfterCreatingNewDevice(), CleanUpAfterEditingOfDevice(), CollectUltrasoundDeviceConfigInformation(), CreateNewDevice(), EditDevice(), OnAddNewProbeClicked(), OnClickedRemoveProbe(), and OnLoadConfigurationButtonClicked().
|
protected |
member holding the UI elements of this widget
Definition at line 119 of file QmitkUSNewVideoDeviceWidget.h.
Referenced by ChangeUIEditingUSVideoDevice(), CleanUpAfterCreatingNewDevice(), CleanUpAfterEditingOfDevice(), CollectUltrasoundDeviceConfigInformation(), CreateConnections(), CreateNewDevice(), CreateQtPartControl(), EnableDisableSpacingAndCropping(), OnAddNewProbeClicked(), OnClickedAddDepths(), OnClickedDone(), OnClickedFinishedEditing(), OnClickedRemoveDepth(), OnClickedRemoveProbe(), OnCroppingBottomSpinBoxChanged(), OnCroppingLeftSpinBoxChanged(), OnCroppingRightSpinBoxChanged(), OnCroppingTopSpinBoxChanged(), OnDepthChanged(), OnDeviceTypeSelection(), OnLoadConfigurationButtonClicked(), OnOpenFileButtonClicked(), OnProbeChanged(), OnXSpacingSpinBoxChanged(), OnYSpacingSpinBoxChanged(), and QmitkUSNewVideoDeviceWidget().
|
protected |
This is the device to edit. It is either the device transmitted in the "EditDevice" signal, or a new one if the "CreateNewDevice slot was called. As device type: either mitkUSVideoDevice or mitkUSIGTLDevice.
Definition at line 156 of file QmitkUSNewVideoDeviceWidget.h.
Referenced by ChangeUIEditingUSVideoDevice(), CreateNewDevice(), EditDevice(), OnClickedCancel(), and OnClickedFinishedEditing().
|
static |
Definition at line 40 of file QmitkUSNewVideoDeviceWidget.h.