MITK-IGT
IGT Extension of MITK
|
Widget for custom controls of mitk::USVideoDevice. This class handles the itk::USVideoDeviceCustomControls of video device objects. More...
#include <QmitkUSControlsCustomVideoDeviceWidget.h>
Public Member Functions | |
QmitkUSControlsCustomVideoDeviceWidget () | |
~QmitkUSControlsCustomVideoDeviceWidget () override | |
std::string | GetDeviceClass () const override |
QmitkUSAbstractCustomWidget * | Clone (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. | |
![]() | |
QmitkUSAbstractCustomWidget (QWidget *parent=nullptr) | |
~QmitkUSAbstractCustomWidget () override | |
void | SetDevice (mitk::USDevice::Pointer device) |
mitk::USDevice::Pointer | GetDevice () const |
QmitkUSAbstractCustomWidget * | CloneForQt (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. | |
us::ServiceProperties | GetServiceProperties () const |
Returns the properties of the micro service. Properties consist of just the device class of the corresponding mitk::USDevice. | |
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. | |
Protected Member Functions | |
void | BlockSignalAndSetValue (QSpinBox *target, int value) |
Protected Attributes | |
mitk::USImageVideoSource::USImageCropping | m_Cropping |
Additional Inherited Members | |
![]() | |
static std::string | US_DEVICE_PROPKEY_CLASS () |
Property key for the class name of corresponding us device object. | |
Widget for custom controls of mitk::USVideoDevice. This class handles the itk::USVideoDeviceCustomControls of video device objects.
Definition at line 31 of file QmitkUSControlsCustomVideoDeviceWidget.h.
QmitkUSControlsCustomVideoDeviceWidget::QmitkUSControlsCustomVideoDeviceWidget | ( | ) |
Definition at line 20 of file QmitkUSControlsCustomVideoDeviceWidget.cpp.
|
override |
Definition at line 35 of file QmitkUSControlsCustomVideoDeviceWidget.cpp.
|
protected |
Definition at line 162 of file QmitkUSControlsCustomVideoDeviceWidget.cpp.
|
overridevirtual |
Creates new QmitkUSAbstractCustomWidget with the same mitk::USVideoDevice and the same mitk::USVideoDeviceCustomControls 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 45 of file QmitkUSControlsCustomVideoDeviceWidget.cpp.
|
overridevirtual |
Getter for the device class of mitk:USVideoDevice.
Implements QmitkUSAbstractCustomWidget.
Definition at line 40 of file QmitkUSControlsCustomVideoDeviceWidget.cpp.
|
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.
Implements QmitkUSAbstractCustomWidget.
Definition at line 95 of file QmitkUSControlsCustomVideoDeviceWidget.cpp.
|
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 52 of file QmitkUSControlsCustomVideoDeviceWidget.cpp.
|
protected |
Definition at line 88 of file QmitkUSControlsCustomVideoDeviceWidget.h.