Medical Imaging Interaction Toolkit  2018.4.99-b20efe7f
Medical Imaging Interaction Toolkit
QmitkUSControlsCustomDiPhASDeviceWidget Class Reference

Widget for custom controls of mitk::USDiPhASDevice. This class handles the itk::USDiPhASDeviceCustomControls of video device objects. More...

#include <QmitkUSControlsCustomDiPhASDeviceWidget.h>

Inheritance diagram for QmitkUSControlsCustomDiPhASDeviceWidget:
Collaboration diagram for QmitkUSControlsCustomDiPhASDeviceWidget:

Public Member Functions

 QmitkUSControlsCustomDiPhASDeviceWidget ()
 
 ~QmitkUSControlsCustomDiPhASDeviceWidget () override
 
std::string GetDeviceClass () const override
 
QmitkUSAbstractCustomWidgetClone (QWidget *parent=nullptr) const override
 
void OnDeviceSet () override
 
void Initialize () override
 Method for initializing the Qt stuff of the widget (setupUI, connect). This method will be called in CloneForQt() and has to be implemented by concrete subclasses. More...
 
- Public Member Functions inherited from QmitkUSAbstractCustomWidget
 QmitkUSAbstractCustomWidget (QWidget *parent=nullptr)
 
 ~QmitkUSAbstractCustomWidget () override
 
void SetDevice (mitk::USDevice::Pointer device)
 
mitk::USDevice::Pointer GetDevice () const
 
QmitkUSAbstractCustomWidgetCloneForQt (QWidget *parent=nullptr) const
 Return pointer to copy of the object. Internally use of QmitkUSAbstractCustomWidget::Clone() with additionaly setting an internal flag that the object was really cloned. More...
 
us::ServiceProperties GetServiceProperties () const
 Returns the properties of the micro service. Properties consist of just the device class of the corresponding mitk::USDevice. More...
 
void showEvent (QShowEvent *event) override
 Overwritten Qt even method. It is checked if the object was cloned with QmitkUSAbstractCustomWidget::CloneForQt() before. An exception is thrown if not. This is done, because using the object from micro service directly in Qt without cloning it first can cause problems after Qt deleted the object. More...
 

Protected Member Functions

void BlockSignalAndSetValue (QSpinBox *target, int value)
 

Additional Inherited Members

- Static Public Member Functions inherited from QmitkUSAbstractCustomWidget
static std::string US_DEVICE_PROPKEY_CLASS ()
 Property key for the class name of corresponding us device object. More...
 

Detailed Description

Widget for custom controls of mitk::USDiPhASDevice. This class handles the itk::USDiPhASDeviceCustomControls of video device objects.

Definition at line 32 of file QmitkUSControlsCustomDiPhASDeviceWidget.h.

Constructor & Destructor Documentation

◆ QmitkUSControlsCustomDiPhASDeviceWidget()

QmitkUSControlsCustomDiPhASDeviceWidget::QmitkUSControlsCustomDiPhASDeviceWidget ( )

Constructs widget object. All gui control elements will be disabled until QmitkUSAbstractCustomWidget::SetDevice() was called.

Definition at line 20 of file QmitkUSControlsCustomDiPhASDeviceWidget.cpp.

References QmitkUSAbstractCustomWidget::QmitkUSAbstractCustomWidget().

Referenced by Clone().

◆ ~QmitkUSControlsCustomDiPhASDeviceWidget()

QmitkUSControlsCustomDiPhASDeviceWidget::~QmitkUSControlsCustomDiPhASDeviceWidget ( )
override

Definition at line 30 of file QmitkUSControlsCustomDiPhASDeviceWidget.cpp.

Member Function Documentation

◆ BlockSignalAndSetValue()

void QmitkUSControlsCustomDiPhASDeviceWidget::BlockSignalAndSetValue ( QSpinBox *  target,
int  value 
)
protected

◆ Clone()

QmitkUSAbstractCustomWidget * QmitkUSControlsCustomDiPhASDeviceWidget::Clone ( QWidget *  parent = nullptr) const
overridevirtual

Creates new QmitkUSAbstractCustomWidget with the same mitk::USDiPhASDevice and the same mitk::USDiPhASDeviceCustomControls which were set on the original object.

This method is just for being calles by the factory. Use QmitkUSAbstractCustomWidget::CloneForQt() instead, if you want a clone of an object.

Implements QmitkUSAbstractCustomWidget.

Definition at line 40 of file QmitkUSControlsCustomDiPhASDeviceWidget.cpp.

References QmitkUSAbstractCustomWidget::GetDevice(), QmitkUSControlsCustomDiPhASDeviceWidget(), and QmitkUSAbstractCustomWidget::SetDevice().

◆ GetDeviceClass()

std::string QmitkUSControlsCustomDiPhASDeviceWidget::GetDeviceClass ( ) const
overridevirtual

Getter for the device class of mitk:USDiPhASDevice.

Implements QmitkUSAbstractCustomWidget.

Definition at line 35 of file QmitkUSControlsCustomDiPhASDeviceWidget.cpp.

◆ Initialize()

void QmitkUSControlsCustomDiPhASDeviceWidget::Initialize ( )
overridevirtual

Method for initializing the Qt stuff of the widget (setupUI, connect). This method will be called in CloneForQt() and has to be implemented by concrete subclasses.

Warning
All Qt initialization stuff belongs into this method rather than in the constructor.

Implements QmitkUSAbstractCustomWidget.

Definition at line 99 of file QmitkUSControlsCustomDiPhASDeviceWidget.cpp.

References MITK_INFO, mitk::USDiPhASDeviceCustomControls::SavingSettings::saveBeamformed, and mitk::USDiPhASDeviceCustomControls::SavingSettings::saveRaw.

◆ OnDeviceSet()

void QmitkUSControlsCustomDiPhASDeviceWidget::OnDeviceSet ( )
overridevirtual

Gets control interface from the device which was currently set. Control elements are according to current crop area of the device. If custom control interface is null, the control elements stay disabled.

Implements QmitkUSAbstractCustomWidget.

Definition at line 47 of file QmitkUSControlsCustomDiPhASDeviceWidget.cpp.

References QmitkUSAbstractCustomWidget::GetDevice(), and MITK_WARN.


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