Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <QmitkToFSurfaceGenerationWidget.h>
Public Member Functions | |
QmitkToFSurfaceGenerationWidget (QWidget *p=0, Qt::WindowFlags f1=0) | |
virtual | ~QmitkToFSurfaceGenerationWidget () |
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 46 of file QmitkToFSurfaceGenerationWidget.h.
QmitkToFSurfaceGenerationWidget::QmitkToFSurfaceGenerationWidget | ( | QWidget * | p = 0 , |
Qt::WindowFlags | f1 = 0 |
||
) |
Definition at line 30 of file QmitkToFSurfaceGenerationWidget.cpp.
References CreateQtPartControl().
|
virtual |
Definition at line 40 of file QmitkToFSurfaceGenerationWidget.cpp.
|
virtual |
Definition at line 56 of file QmitkToFSurfaceGenerationWidget.cpp.
References m_Controls, OnCompute3DDataCheckboxChecked(), OnDistanceColorMapCheckBoxChecked(), OnReconstructionChanged(), OnRepresentationChanged(), OnRGBTextureCheckBoxChecked(), OnShowAdvancedOptionsCheckboxChecked(), and OnTriangulationThresholdSpinBoxChanged().
Referenced by CreateQtPartControl().
|
virtual |
Definition at line 44 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 291 of file QmitkToFSurfaceGenerationWidget.cpp.
mitk::ToFDistanceImageToSurfaceFilter::Pointer QmitkToFSurfaceGenerationWidget::GetToFDistanceImageToSurfaceFilter | ( | ) |
GetToFDistanceImageToSurfaceFilter Get the internally used surface generation filter.
Definition at line 70 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 86 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 120 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 242 of file QmitkToFSurfaceGenerationWidget.cpp.
References mitk::ToFProcessingCommon::CalculateViewAngle(), mitk::RenderingManager::GetInstance(), mitk::RenderingManager::InitializeViews(), 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 206 of file QmitkToFSurfaceGenerationWidget.cpp.
Referenced by CreateConnections().
|
protectedslot |
OnReconstructionChanged Change the reconstruction mode of the ToFDistanceImageToSurfaceFilter.
Definition at line 138 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 170 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 188 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 75 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 129 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 214 of file QmitkToFSurfaceGenerationWidget.cpp.
References IsActive(), and m_Controls.
|
protected |
Definition at line 144 of file QmitkToFSurfaceGenerationWidget.h.
Referenced by CreateConnections(), CreateQtPartControl(), Initialize(), OnCompute3DDataCheckboxChecked(), OnRepresentationChanged(), OnShowAdvancedOptionsCheckboxChecked(), OnTriangulationThresholdSpinBoxChanged(), and UpdateSurface().
|
static |
Definition at line 54 of file QmitkToFSurfaceGenerationWidget.h.