Medical Imaging Interaction Toolkit  2021.02.99-b9f34b51
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 
)

◆ ~QmitkUSNewVideoDeviceWidget()

QmitkUSNewVideoDeviceWidget::~QmitkUSNewVideoDeviceWidget ( )
override

Member Function Documentation

◆ AddProbesToDevice()

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

◆ ChangeUIEditingUSVideoDevice()

void QmitkUSNewVideoDeviceWidget::ChangeUIEditingUSVideoDevice ( )
protected

◆ CheckIfProbeExistsAlready()

mitk::USProbe::Pointer QmitkUSNewVideoDeviceWidget::CheckIfProbeExistsAlready ( const std::string &  probe)
protected

◆ CleanUpAfterCreatingNewDevice()

void QmitkUSNewVideoDeviceWidget::CleanUpAfterCreatingNewDevice ( )
protected

◆ CleanUpAfterEditingOfDevice()

void QmitkUSNewVideoDeviceWidget::CleanUpAfterEditingOfDevice ( )
protected

◆ CollectUltrasoundDeviceConfigInformation()

void QmitkUSNewVideoDeviceWidget::CollectUltrasoundDeviceConfigInformation ( mitk::USDeviceReaderXML::USDeviceConfigData config)
protected

◆ ConstructItemFromDevice()

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

◆ CreateConnections()

virtual void QmitkUSNewVideoDeviceWidget::CreateConnections ( )
virtual

◆ CreateNewDevice

void QmitkUSNewVideoDeviceWidget::CreateNewDevice ( )
slot

◆ CreateQtPartControl()

virtual void QmitkUSNewVideoDeviceWidget::CreateQtPartControl ( QWidget *  parent)
virtual

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

◆ Finished

void QmitkUSNewVideoDeviceWidget::Finished ( )
signal

◆ OnAddNewProbeClicked

void QmitkUSNewVideoDeviceWidget::OnAddNewProbeClicked ( )
protectedslot

◆ OnClickedAddDepths

void QmitkUSNewVideoDeviceWidget::OnClickedAddDepths ( )
protectedslot

◆ OnClickedCancel

void QmitkUSNewVideoDeviceWidget::OnClickedCancel ( )
protectedslot

◆ OnClickedDone

void QmitkUSNewVideoDeviceWidget::OnClickedDone ( )
protectedslot

◆ OnClickedFinishedEditing

void QmitkUSNewVideoDeviceWidget::OnClickedFinishedEditing ( )
protectedslot

◆ 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

void QmitkUSNewVideoDeviceWidget::OnLoadConfigurationButtonClicked ( )
protectedslot

◆ OnOpenFileButtonClicked

void QmitkUSNewVideoDeviceWidget::OnOpenFileButtonClicked ( )
protectedslot

◆ OnProbeChanged

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

◆ OnSaveButtonClicked

void QmitkUSNewVideoDeviceWidget::OnSaveButtonClicked ( )
protectedslot

◆ OnXSpacingSpinBoxChanged

void QmitkUSNewVideoDeviceWidget::OnXSpacingSpinBoxChanged ( double  value)
protectedslot

◆ OnYSpacingSpinBoxChanged

void QmitkUSNewVideoDeviceWidget::OnYSpacingSpinBoxChanged ( double  value)
protectedslot

Member Data Documentation

◆ m_Active

bool QmitkUSNewVideoDeviceWidget::m_Active
protected

Definition at line 150 of file QmitkUSNewVideoDeviceWidget.h.

◆ m_ConfigProbes

std::vector<mitk::USProbe::Pointer> QmitkUSNewVideoDeviceWidget::m_ConfigProbes
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.

◆ m_Controls

Ui::QmitkUSNewVideoDeviceWidgetControls* QmitkUSNewVideoDeviceWidget::m_Controls
protected

member holding the UI elements of this widget

Definition at line 119 of file QmitkUSNewVideoDeviceWidget.h.

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

◆ 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 file: