MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
QmitkToFSurfaceGenerationWidget Class Reference

#include <QmitkToFSurfaceGenerationWidget.h>

Inheritance diagram for QmitkToFSurfaceGenerationWidget:

Public Member Functions

 QmitkToFSurfaceGenerationWidget (QWidget *p=nullptr, Qt::WindowFlags f1={})
 
 ~QmitkToFSurfaceGenerationWidget () override
 
virtual void CreateQtPartControl (QWidget *parent)
 
virtual void CreateConnections ()
 
mitk::ToFDistanceImageToSurfaceFilter::Pointer GetToFDistanceImageToSurfaceFilter ()
 GetToFDistanceImageToSurfaceFilter Get the internally used surface generation filter.
 
bool IsActive ()
 IsActive Check if the widget was initialized correctly.
 
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.
 
bool UpdateSurface ()
 UpdateSurface Generate new surface data according to the device properties.
 
mitk::Surface::Pointer GetSurface ()
 GetSurface Get the generated surface.
 

Static Public Attributes

static const std::string VIEW_ID = "org.mitk.views.qmitktofsurfacegenerationwidget"
 

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.
 
void OnReconstructionChanged (int index)
 OnReconstructionChanged Change the reconstruction mode of the ToFDistanceImageToSurfaceFilter.
 
void OnCompute3DDataCheckboxChecked (bool checked)
 OnCompute3DDataCheckboxChecked Slot beeing called, if the "surface"-checkbox is clicked. This method initializes the surface once, if it is necessary.
 
void OnShowAdvancedOptionsCheckboxChecked (bool checked)
 OnShowAdvancedOptionsCheckboxChecked Show/hide advanced options.
 
void OnTriangulationThresholdSpinBoxChanged ()
 Slot trigged from the triangulation threshold spin box. Changed the threshold for connecting a vertex during triangulation.
 
void OnDistanceColorMapCheckBoxChecked (bool checked)
 OnDistanceColorMapCheckBoxChecked Show the distance color mapping (vtkColorTransferFunction) on the surface.
 
void OnRGBTextureCheckBoxChecked (bool checked)
 OnRGBTextureCheckBoxChecked Put the RGB image as texture on the generated surface/point cloud.
 

Protected Attributes

Ui::QmitkToFSurfaceGenerationWidgetControls * m_Controls
 

Detailed Description

Documentation:

This widget provides GUI access for all basic surface generation properties and can be reused in any other GUI.

Definition at line 40 of file QmitkToFSurfaceGenerationWidget.h.

Constructor & Destructor Documentation

◆ QmitkToFSurfaceGenerationWidget()

QmitkToFSurfaceGenerationWidget::QmitkToFSurfaceGenerationWidget ( QWidget * p = nullptr,
Qt::WindowFlags f1 = {} )

Definition at line 27 of file QmitkToFSurfaceGenerationWidget.cpp.

◆ ~QmitkToFSurfaceGenerationWidget()

QmitkToFSurfaceGenerationWidget::~QmitkToFSurfaceGenerationWidget ( )
override

Definition at line 37 of file QmitkToFSurfaceGenerationWidget.cpp.

Member Function Documentation

◆ CreateConnections()

void QmitkToFSurfaceGenerationWidget::CreateConnections ( )
virtual

Definition at line 53 of file QmitkToFSurfaceGenerationWidget.cpp.

◆ CreateQtPartControl()

void QmitkToFSurfaceGenerationWidget::CreateQtPartControl ( QWidget * parent)
virtual

Definition at line 41 of file QmitkToFSurfaceGenerationWidget.cpp.

◆ GetSurface()

mitk::Surface::Pointer QmitkToFSurfaceGenerationWidget::GetSurface ( )

GetSurface Get the generated surface.

Returns
Surface.

Definition at line 287 of file QmitkToFSurfaceGenerationWidget.cpp.

◆ GetToFDistanceImageToSurfaceFilter()

mitk::ToFDistanceImageToSurfaceFilter::Pointer QmitkToFSurfaceGenerationWidget::GetToFDistanceImageToSurfaceFilter ( )

GetToFDistanceImageToSurfaceFilter Get the internally used surface generation filter.

Returns
ToFDistanceImageToSurfaceFilter as filter.

Definition at line 67 of file QmitkToFSurfaceGenerationWidget.cpp.

◆ Initialize()

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.

Parameters
filterToFDistanceImageToSurfaceFilter for surface computation.
grabberToFImageGrabber to get/set device properties.
intrinsicsIntrincs of the device.
surfaceGenerated Surface.
camera
generateSurfaceCheck the generate surface combo box.
showAdvancedOptionsShow/Hide advanced options.

Definition at line 83 of file QmitkToFSurfaceGenerationWidget.cpp.

◆ IsActive()

bool QmitkToFSurfaceGenerationWidget::IsActive ( )

IsActive Check if the widget was initialized correctly.

Returns
True for success.

Definition at line 117 of file QmitkToFSurfaceGenerationWidget.cpp.

◆ OnCompute3DDataCheckboxChecked

void QmitkToFSurfaceGenerationWidget::OnCompute3DDataCheckboxChecked ( bool checked)
protectedslot

OnCompute3DDataCheckboxChecked Slot beeing called, if the "surface"-checkbox is clicked. This method initializes the surface once, if it is necessary.

Parameters
checkedIs it checked or not?

Definition at line 239 of file QmitkToFSurfaceGenerationWidget.cpp.

◆ OnDistanceColorMapCheckBoxChecked

void QmitkToFSurfaceGenerationWidget::OnDistanceColorMapCheckBoxChecked ( bool checked)
protectedslot

OnDistanceColorMapCheckBoxChecked Show the distance color mapping (vtkColorTransferFunction) on the surface.

Parameters
checkedShow/hide.

Definition at line 203 of file QmitkToFSurfaceGenerationWidget.cpp.

◆ OnReconstructionChanged

void QmitkToFSurfaceGenerationWidget::OnReconstructionChanged ( int index)
protectedslot

OnReconstructionChanged Change the reconstruction mode of the ToFDistanceImageToSurfaceFilter.

Definition at line 135 of file QmitkToFSurfaceGenerationWidget.cpp.

◆ OnRepresentationChanged

void QmitkToFSurfaceGenerationWidget::OnRepresentationChanged ( int index)
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 167 of file QmitkToFSurfaceGenerationWidget.cpp.

◆ OnRGBTextureCheckBoxChecked

void QmitkToFSurfaceGenerationWidget::OnRGBTextureCheckBoxChecked ( bool checked)
protectedslot

OnRGBTextureCheckBoxChecked Put the RGB image as texture on the generated surface/point cloud.

Parameters
checkedShow/hide texture.

Definition at line 185 of file QmitkToFSurfaceGenerationWidget.cpp.

◆ OnShowAdvancedOptionsCheckboxChecked

void QmitkToFSurfaceGenerationWidget::OnShowAdvancedOptionsCheckboxChecked ( bool checked)
protectedslot

OnShowAdvancedOptionsCheckboxChecked Show/hide advanced options.

Parameters
checkedshow/hide

Definition at line 72 of file QmitkToFSurfaceGenerationWidget.cpp.

◆ OnTriangulationThresholdSpinBoxChanged

void QmitkToFSurfaceGenerationWidget::OnTriangulationThresholdSpinBoxChanged ( )
protectedslot

Slot trigged from the triangulation threshold spin box. Changed the threshold for connecting a vertex during triangulation.

Definition at line 126 of file QmitkToFSurfaceGenerationWidget.cpp.

◆ UpdateSurface()

bool QmitkToFSurfaceGenerationWidget::UpdateSurface ( )

UpdateSurface Generate new surface data according to the device properties.

Returns
True for success.

Definition at line 211 of file QmitkToFSurfaceGenerationWidget.cpp.

Member Data Documentation

◆ m_Controls

Ui::QmitkToFSurfaceGenerationWidgetControls* QmitkToFSurfaceGenerationWidget::m_Controls
protected

Definition at line 139 of file QmitkToFSurfaceGenerationWidget.h.

◆ VIEW_ID

const std::string QmitkToFSurfaceGenerationWidget::VIEW_ID = "org.mitk.views.qmitktofsurfacegenerationwidget"
static

Definition at line 48 of file QmitkToFSurfaceGenerationWidget.h.


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