Medical Imaging Interaction Toolkit  2016.11.0
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=0, Qt::WindowFlags f1=0)
 
virtual ~QmitkUSNewVideoDeviceWidget ()
 
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)
 

Protected Member Functions

QListWidgetItem * ConstructItemFromDevice (mitk::USDevice::Pointer device)
 
void ChangeUIEditingUSVideoDevice ()
 
void CleanUpAfterEditingOfDevice ()
 
void CleanUpAfterCreatingNewDevice ()
 
void AddProbesToDevice (mitk::USVideoDevice::Pointer device)
 

Protected Attributes

Ui::QmitkUSNewVideoDeviceWidgetControls * m_Controls
 member holding the UI elements of this widget More...
 
bool m_Active
 
mitk::USVideoDevice::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. More...
 

Detailed Description

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

Definition at line 36 of file QmitkUSNewVideoDeviceWidget.h.

Constructor & Destructor Documentation

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

Definition at line 30 of file QmitkUSNewVideoDeviceWidget.cpp.

References CreateQtPartControl(), and m_Controls.

QmitkUSNewVideoDeviceWidget::~QmitkUSNewVideoDeviceWidget ( )
virtual

Definition at line 38 of file QmitkUSNewVideoDeviceWidget.cpp.

Member Function Documentation

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

Definition at line 389 of file QmitkUSNewVideoDeviceWidget.cpp.

References m_Controls, and mitk::USProbe::New().

Referenced by OnClickedDone(), and OnClickedFinishedEditing().

void QmitkUSNewVideoDeviceWidget::ChangeUIEditingUSVideoDevice ( )
protected
void QmitkUSNewVideoDeviceWidget::CleanUpAfterCreatingNewDevice ( )
protected

Definition at line 374 of file QmitkUSNewVideoDeviceWidget.cpp.

References m_Controls, and OnClickedDone().

Referenced by OnClickedCancel(), and OnClickedDone().

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

Definition at line 284 of file QmitkUSNewVideoDeviceWidget.cpp.

void QmitkUSNewVideoDeviceWidget::CreateConnections ( )
virtual
void QmitkUSNewVideoDeviceWidget::CreateNewDevice ( )
slot

Definition at line 264 of file QmitkUSNewVideoDeviceWidget.cpp.

References m_Active, m_Controls, m_TargetDevice, and OnClickedDone().

void QmitkUSNewVideoDeviceWidget::CreateQtPartControl ( QWidget *  parent)
virtual

Definition at line 42 of file QmitkUSNewVideoDeviceWidget.cpp.

References CreateConnections(), and m_Controls.

Referenced by QmitkUSNewVideoDeviceWidget().

void QmitkUSNewVideoDeviceWidget::EditDevice ( mitk::USDevice::Pointer  device)
slot
void QmitkUSNewVideoDeviceWidget::Finished ( )
signal
void QmitkUSNewVideoDeviceWidget::OnClickedAddDepths ( )
protectedslot

Definition at line 319 of file QmitkUSNewVideoDeviceWidget.cpp.

References m_Controls, m_TargetDevice, and OnProbeChanged().

Referenced by CreateConnections().

void QmitkUSNewVideoDeviceWidget::OnClickedCancel ( )
protectedslot
void QmitkUSNewVideoDeviceWidget::OnClickedDone ( )
protectedslot
void QmitkUSNewVideoDeviceWidget::OnClickedFinishedEditing ( )
protectedslot
void QmitkUSNewVideoDeviceWidget::OnClickedRemoveDepth ( )
protectedslot

Definition at line 336 of file QmitkUSNewVideoDeviceWidget.cpp.

References m_Controls, and m_TargetDevice.

Referenced by CreateConnections().

void QmitkUSNewVideoDeviceWidget::OnClickedRemoveProbe ( )
protectedslot

Definition at line 348 of file QmitkUSNewVideoDeviceWidget.cpp.

References m_Controls, and m_TargetDevice.

Referenced by CreateConnections().

void QmitkUSNewVideoDeviceWidget::OnDeviceTypeSelection ( )
protectedslot

Definition at line 216 of file QmitkUSNewVideoDeviceWidget.cpp.

References m_Controls.

Referenced by CreateConnections(), and OnOpenFileButtonClicked().

void QmitkUSNewVideoDeviceWidget::OnOpenFileButtonClicked ( )
protectedslot

Definition at line 232 of file QmitkUSNewVideoDeviceWidget.cpp.

References m_Controls, and OnDeviceTypeSelection().

Referenced by CreateConnections().

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

Member Data Documentation

bool QmitkUSNewVideoDeviceWidget::m_Active
protected
mitk::USVideoDevice::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.

Definition at line 127 of file QmitkUSNewVideoDeviceWidget.h.

Referenced by ChangeUIEditingUSVideoDevice(), CreateNewDevice(), EditDevice(), OnClickedAddDepths(), OnClickedCancel(), OnClickedFinishedEditing(), OnClickedRemoveDepth(), OnClickedRemoveProbe(), and OnProbeChanged().

const std::string QmitkUSNewVideoDeviceWidget::VIEW_ID
static

Definition at line 43 of file QmitkUSNewVideoDeviceWidget.h.


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