Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
#include <QmitkToFSurfaceGenerationWidget.h>
Public Member Functions | |
QmitkToFSurfaceGenerationWidget (QWidget *p=nullptr, Qt::WindowFlags f1=nullptr) | |
~QmitkToFSurfaceGenerationWidget () override | |
virtual void | CreateQtPartControl (QWidget *parent) |
virtual void | CreateConnections () |
mitk::ToFDistanceImageToSurfaceFilter::Pointer | GetToFDistanceImageToSurfaceFilter () |
GetToFDistanceImageToSurfaceFilter Get the internally used surface generation filter. More... | |
bool | IsActive () |
IsActive Check if the widget was initialized correctly. More... | |
void | Initialize (mitk::ToFDistanceImageToSurfaceFilter::Pointer filter, mitk::ToFImageGrabber::Pointer grabber, mitk::CameraIntrinsics::Pointer intrinsics, mitk::DataNode::Pointer surface, vtkSmartPointer< vtkCamera > camera, bool generateSurface=false, bool showAdvancedOptions=true) |
Initialize Initialize the surface generation widget. More... | |
bool | UpdateSurface () |
UpdateSurface Generate new surface data according to the device properties. More... | |
mitk::Surface::Pointer | GetSurface () |
GetSurface Get the generated surface. More... | |
Static Public Attributes | |
static const std::string | VIEW_ID |
Protected Slots | |
void | OnRepresentationChanged (int index) |
OnRepresentationChanged Change the representation of the surface. In other words: disable/enable triangulation (Point cloud/surface). If triangulation is enabled, this will also allow for editing a threshold for triangulating vertices. More... | |
void | OnReconstructionChanged (int index) |
OnReconstructionChanged Change the reconstruction mode of the ToFDistanceImageToSurfaceFilter. More... | |
void | OnCompute3DDataCheckboxChecked (bool checked) |
OnCompute3DDataCheckboxChecked Slot beeing called, if the "surface"-checkbox is clicked. This method initializes the surface once, if it is necessary. More... | |
void | OnShowAdvancedOptionsCheckboxChecked (bool checked) |
OnShowAdvancedOptionsCheckboxChecked Show/hide advanced options. More... | |
void | OnTriangulationThresholdSpinBoxChanged () |
Slot trigged from the triangulation threshold spin box. Changed the threshold for connecting a vertex during triangulation. More... | |
void | OnDistanceColorMapCheckBoxChecked (bool checked) |
OnDistanceColorMapCheckBoxChecked Show the distance color mapping (vtkColorTransferFunction) on the surface. More... | |
void | OnRGBTextureCheckBoxChecked (bool checked) |
OnRGBTextureCheckBoxChecked Put the RGB image as texture on the generated surface/point cloud. More... | |
Protected Attributes | |
Ui::QmitkToFSurfaceGenerationWidgetControls * | m_Controls |
Documentation:
This widget provides GUI access for all basic surface generation properties and can be reused in any other GUI.
Definition at line 42 of file QmitkToFSurfaceGenerationWidget.h.
QmitkToFSurfaceGenerationWidget::QmitkToFSurfaceGenerationWidget | ( | QWidget * | p = nullptr , |
Qt::WindowFlags | f1 = nullptr |
||
) |
Definition at line 26 of file QmitkToFSurfaceGenerationWidget.cpp.
References CreateQtPartControl().
|
override |
Definition at line 36 of file QmitkToFSurfaceGenerationWidget.cpp.
|
virtual |
Definition at line 52 of file QmitkToFSurfaceGenerationWidget.cpp.
References m_Controls, OnCompute3DDataCheckboxChecked(), OnDistanceColorMapCheckBoxChecked(), OnReconstructionChanged(), OnRepresentationChanged(), OnRGBTextureCheckBoxChecked(), OnShowAdvancedOptionsCheckboxChecked(), and OnTriangulationThresholdSpinBoxChanged().
Referenced by CreateQtPartControl().
|
virtual |
Definition at line 40 of file QmitkToFSurfaceGenerationWidget.cpp.
References CreateConnections(), m_Controls, and OnShowAdvancedOptionsCheckboxChecked().
Referenced by QmitkToFSurfaceGenerationWidget().
mitk::Surface::Pointer QmitkToFSurfaceGenerationWidget::GetSurface | ( | ) |
GetSurface Get the generated surface.
Definition at line 287 of file QmitkToFSurfaceGenerationWidget.cpp.
mitk::ToFDistanceImageToSurfaceFilter::Pointer QmitkToFSurfaceGenerationWidget::GetToFDistanceImageToSurfaceFilter | ( | ) |
GetToFDistanceImageToSurfaceFilter Get the internally used surface generation filter.
Definition at line 66 of file QmitkToFSurfaceGenerationWidget.cpp.
void QmitkToFSurfaceGenerationWidget::Initialize | ( | mitk::ToFDistanceImageToSurfaceFilter::Pointer | filter, |
mitk::ToFImageGrabber::Pointer | grabber, | ||
mitk::CameraIntrinsics::Pointer | intrinsics, | ||
mitk::DataNode::Pointer | surface, | ||
vtkSmartPointer< vtkCamera > | camera, | ||
bool | generateSurface = false , |
||
bool | showAdvancedOptions = true |
||
) |
Initialize Initialize the surface generation widget.
filter | ToFDistanceImageToSurfaceFilter for surface computation. |
grabber | ToFImageGrabber to get/set device properties. |
intrinsics | Intrincs of the device. |
surface | Generated Surface. |
generateSurface | Check the generate surface combo box. |
showAdvancedOptions | Show/Hide advanced options. |
Definition at line 82 of file QmitkToFSurfaceGenerationWidget.cpp.
References m_Controls, mitk::Surface::New(), and OnShowAdvancedOptionsCheckboxChecked().
bool QmitkToFSurfaceGenerationWidget::IsActive | ( | ) |
IsActive Check if the widget was initialized correctly.
Definition at line 116 of file QmitkToFSurfaceGenerationWidget.cpp.
References MITK_ERROR.
Referenced by OnReconstructionChanged(), OnRepresentationChanged(), OnRGBTextureCheckBoxChecked(), OnTriangulationThresholdSpinBoxChanged(), and UpdateSurface().
|
protectedslot |
OnCompute3DDataCheckboxChecked Slot beeing called, if the "surface"-checkbox is clicked. This method initializes the surface once, if it is necessary.
checked | Is it checked or not? |
Definition at line 238 of file QmitkToFSurfaceGenerationWidget.cpp.
References mitk::ToFProcessingCommon::CalculateViewAngle(), mitk::RenderingManager::GetInstance(), mitk::RenderingManager::InitializeViews(), mitk::ToFDistanceImageToSurfaceFilter::Kinect, m_Controls, MITK_DEBUG, OnRepresentationChanged(), and mitk::RenderingManager::REQUEST_UPDATE_3DWINDOWS.
Referenced by CreateConnections().
|
protectedslot |
OnDistanceColorMapCheckBoxChecked Show the distance color mapping (vtkColorTransferFunction) on the surface.
checked | Show/hide. |
Definition at line 202 of file QmitkToFSurfaceGenerationWidget.cpp.
Referenced by CreateConnections().
|
protectedslot |
OnReconstructionChanged Change the reconstruction mode of the ToFDistanceImageToSurfaceFilter.
Definition at line 134 of file QmitkToFSurfaceGenerationWidget.cpp.
References IsActive(), mitk::ToFDistanceImageToSurfaceFilter::Kinect, MITK_ERROR, mitk::ToFDistanceImageToSurfaceFilter::WithInterPixelDistance, and mitk::ToFDistanceImageToSurfaceFilter::WithOutInterPixelDistance.
Referenced by CreateConnections().
|
protectedslot |
OnRepresentationChanged Change the representation of the surface. In other words: disable/enable triangulation (Point cloud/surface). If triangulation is enabled, this will also allow for editing a threshold for triangulating vertices.
Definition at line 166 of file QmitkToFSurfaceGenerationWidget.cpp.
References IsActive(), and m_Controls.
Referenced by CreateConnections(), and OnCompute3DDataCheckboxChecked().
|
protectedslot |
OnRGBTextureCheckBoxChecked Put the RGB image as texture on the generated surface/point cloud.
checked | Show/hide texture. |
Definition at line 184 of file QmitkToFSurfaceGenerationWidget.cpp.
References IsActive(), and mitk::SmartPointerProperty::New().
Referenced by CreateConnections().
|
protectedslot |
OnShowAdvancedOptionsCheckboxChecked Show/hide advanced options.
checked | show/hide |
Definition at line 71 of file QmitkToFSurfaceGenerationWidget.cpp.
References m_Controls.
Referenced by CreateConnections(), CreateQtPartControl(), and Initialize().
|
protectedslot |
Slot trigged from the triangulation threshold spin box. Changed the threshold for connecting a vertex during triangulation.
Definition at line 125 of file QmitkToFSurfaceGenerationWidget.cpp.
References IsActive(), and m_Controls.
Referenced by CreateConnections().
bool QmitkToFSurfaceGenerationWidget::UpdateSurface | ( | ) |
UpdateSurface Generate new surface data according to the device properties.
Definition at line 210 of file QmitkToFSurfaceGenerationWidget.cpp.
References IsActive(), and m_Controls.
|
protected |
Definition at line 140 of file QmitkToFSurfaceGenerationWidget.h.
Referenced by CreateConnections(), CreateQtPartControl(), Initialize(), OnCompute3DDataCheckboxChecked(), OnRepresentationChanged(), OnShowAdvancedOptionsCheckboxChecked(), OnTriangulationThresholdSpinBoxChanged(), and UpdateSurface().
|
static |
Definition at line 50 of file QmitkToFSurfaceGenerationWidget.h.