Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
QmitkUSNewVideoDeviceWidget Class Reference

This Widget enables the USer to create and connect Video Devices. More...

#include <QmitkUSNewVideoDeviceWidget.h>

Inheritance diagram for QmitkUSNewVideoDeviceWidget:
Collaboration diagram for QmitkUSNewVideoDeviceWidget:

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...
 

Detailed Description

This Widget enables the USer to create and connect Video Devices.

Definition at line 33 of file QmitkUSNewVideoDeviceWidget.h.

Constructor & Destructor Documentation

◆ QmitkUSNewVideoDeviceWidget()

QmitkUSNewVideoDeviceWidget::QmitkUSNewVideoDeviceWidget ( QWidget *  p = nullptr,
Qt::WindowFlags  f1 = nullptr 
)

Definition at line 30 of file QmitkUSNewVideoDeviceWidget.cpp.

References CreateQtPartControl(), and m_Controls.

◆ ~QmitkUSNewVideoDeviceWidget()

QmitkUSNewVideoDeviceWidget::~QmitkUSNewVideoDeviceWidget ( )
override

Definition at line 38 of file QmitkUSNewVideoDeviceWidget.cpp.

Member Function Documentation

◆ AddProbesToDevice()

void QmitkUSNewVideoDeviceWidget::AddProbesToDevice ( mitk::USDevice::Pointer  device)
protected

Definition at line 782 of file QmitkUSNewVideoDeviceWidget.cpp.

References m_ConfigProbes.

Referenced by OnClickedDone(), and OnClickedFinishedEditing().

◆ ChangeUIEditingUSVideoDevice()

void QmitkUSNewVideoDeviceWidget::ChangeUIEditingUSVideoDevice ( )
protected

◆ CheckIfProbeExistsAlready()

◆ CleanUpAfterCreatingNewDevice()

void QmitkUSNewVideoDeviceWidget::CleanUpAfterCreatingNewDevice ( )
protected

Definition at line 763 of file QmitkUSNewVideoDeviceWidget.cpp.

References m_ConfigProbes, m_Controls, and OnClickedDone().

Referenced by OnClickedCancel(), and OnClickedDone().

◆ CleanUpAfterEditingOfDevice()

void QmitkUSNewVideoDeviceWidget::CleanUpAfterEditingOfDevice ( )
protected

◆ CollectUltrasoundDeviceConfigInformation()

◆ ConstructItemFromDevice()

QListWidgetItem * QmitkUSNewVideoDeviceWidget::ConstructItemFromDevice ( mitk::USDevice::Pointer  device)
protected

Definition at line 303 of file QmitkUSNewVideoDeviceWidget.cpp.

◆ CreateConnections()

◆ CreateNewDevice

void QmitkUSNewVideoDeviceWidget::CreateNewDevice ( )
slot

◆ CreateQtPartControl()

void QmitkUSNewVideoDeviceWidget::CreateQtPartControl ( QWidget *  parent)
virtual

Definition at line 42 of file QmitkUSNewVideoDeviceWidget.cpp.

References CreateConnections(), and m_Controls.

Referenced by QmitkUSNewVideoDeviceWidget().

◆ EditDevice

void QmitkUSNewVideoDeviceWidget::EditDevice ( mitk::USDevice::Pointer  device)
slot

◆ EnableDisableSpacingAndCropping()

void QmitkUSNewVideoDeviceWidget::EnableDisableSpacingAndCropping ( bool  enable)
protected

Enables or disables the GUI elements of the spacing and cropping options.

Parameters
enableIf 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().

◆ Finished

void QmitkUSNewVideoDeviceWidget::Finished ( )
signal

◆ OnAddNewProbeClicked

void QmitkUSNewVideoDeviceWidget::OnAddNewProbeClicked ( )
protectedslot

◆ OnClickedAddDepths

void QmitkUSNewVideoDeviceWidget::OnClickedAddDepths ( )
protectedslot

◆ OnClickedCancel

void QmitkUSNewVideoDeviceWidget::OnClickedCancel ( )
protectedslot

◆ OnClickedDone

◆ OnClickedFinishedEditing

◆ OnClickedRemoveDepth

void QmitkUSNewVideoDeviceWidget::OnClickedRemoveDepth ( )
protectedslot

◆ OnClickedRemoveProbe

void QmitkUSNewVideoDeviceWidget::OnClickedRemoveProbe ( )
protectedslot

◆ OnCroppingBottomSpinBoxChanged

void QmitkUSNewVideoDeviceWidget::OnCroppingBottomSpinBoxChanged ( int  value)
protectedslot

◆ OnCroppingLeftSpinBoxChanged

void QmitkUSNewVideoDeviceWidget::OnCroppingLeftSpinBoxChanged ( int  value)
protectedslot

◆ OnCroppingRightSpinBoxChanged

void QmitkUSNewVideoDeviceWidget::OnCroppingRightSpinBoxChanged ( int  value)
protectedslot

◆ OnCroppingTopSpinBoxChanged

void QmitkUSNewVideoDeviceWidget::OnCroppingTopSpinBoxChanged ( int  value)
protectedslot

◆ OnDepthChanged [1/2]

void QmitkUSNewVideoDeviceWidget::OnDepthChanged ( int  depth,
mitk::USProbe::Pointer  probe 
)
protectedslot

◆ OnDepthChanged [2/2]

void QmitkUSNewVideoDeviceWidget::OnDepthChanged ( const QString &  depth)
protectedslot

◆ OnDeviceTypeSelection

void QmitkUSNewVideoDeviceWidget::OnDeviceTypeSelection ( )
protectedslot

◆ OnLoadConfigurationButtonClicked

◆ OnOpenFileButtonClicked

void QmitkUSNewVideoDeviceWidget::OnOpenFileButtonClicked ( )
protectedslot

Definition at line 247 of file QmitkUSNewVideoDeviceWidget.cpp.

References m_Controls, and OnDeviceTypeSelection().

Referenced by CreateConnections().

◆ OnProbeChanged

void QmitkUSNewVideoDeviceWidget::OnProbeChanged ( const QString &  probename)
protectedslot

◆ OnSaveButtonClicked

void QmitkUSNewVideoDeviceWidget::OnSaveButtonClicked ( )
protectedslot

◆ OnXSpacingSpinBoxChanged

void QmitkUSNewVideoDeviceWidget::OnXSpacingSpinBoxChanged ( double  value)
protectedslot

Definition at line 639 of file QmitkUSNewVideoDeviceWidget.cpp.

References CheckIfProbeExistsAlready(), m_Controls, and MITK_INFO.

Referenced by CreateConnections().

◆ OnYSpacingSpinBoxChanged

void QmitkUSNewVideoDeviceWidget::OnYSpacingSpinBoxChanged ( double  value)
protectedslot

Definition at line 661 of file QmitkUSNewVideoDeviceWidget.cpp.

References CheckIfProbeExistsAlready(), m_Controls, and MITK_INFO.

Referenced by CreateConnections().

Member Data Documentation

◆ m_Active

bool QmitkUSNewVideoDeviceWidget::m_Active
protected

◆ m_ConfigProbes

std::vector<mitk::USProbe::Pointer> QmitkUSNewVideoDeviceWidget::m_ConfigProbes
protected

◆ m_Controls

◆ m_TargetDevice

mitk::USDevice::Pointer QmitkUSNewVideoDeviceWidget::m_TargetDevice
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().

◆ VIEW_ID

const std::string QmitkUSNewVideoDeviceWidget::VIEW_ID
static

Definition at line 40 of file QmitkUSNewVideoDeviceWidget.h.


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