Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
QmitkToFSurfaceGenerationWidget Class Reference

#include <QmitkToFSurfaceGenerationWidget.h>

Inheritance diagram for QmitkToFSurfaceGenerationWidget:
Collaboration diagram for QmitkToFSurfaceGenerationWidget:

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
 

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 = nullptr 
)

◆ ~QmitkToFSurfaceGenerationWidget()

QmitkToFSurfaceGenerationWidget::~QmitkToFSurfaceGenerationWidget ( )
override

Member Function Documentation

◆ CreateConnections()

virtual void QmitkToFSurfaceGenerationWidget::CreateConnections ( )
virtual

◆ CreateQtPartControl()

virtual void QmitkToFSurfaceGenerationWidget::CreateQtPartControl ( QWidget *  parent)
virtual

◆ GetSurface()

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

GetSurface Get the generated surface.

Returns
Surface.

◆ GetToFDistanceImageToSurfaceFilter()

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

GetToFDistanceImageToSurfaceFilter Get the internally used surface generation filter.

Returns
ToFDistanceImageToSurfaceFilter as filter.

◆ 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.

◆ IsActive()

bool QmitkToFSurfaceGenerationWidget::IsActive ( )

IsActive Check if the widget was initialized correctly.

Returns
True for success.

◆ 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?

◆ OnDistanceColorMapCheckBoxChecked

void QmitkToFSurfaceGenerationWidget::OnDistanceColorMapCheckBoxChecked ( bool  checked)
protectedslot

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

Parameters
checkedShow/hide.

◆ OnReconstructionChanged

void QmitkToFSurfaceGenerationWidget::OnReconstructionChanged ( int  index)
protectedslot

OnReconstructionChanged Change the reconstruction mode of the ToFDistanceImageToSurfaceFilter.

◆ 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.

◆ OnRGBTextureCheckBoxChecked

void QmitkToFSurfaceGenerationWidget::OnRGBTextureCheckBoxChecked ( bool  checked)
protectedslot

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

Parameters
checkedShow/hide texture.

◆ OnShowAdvancedOptionsCheckboxChecked

void QmitkToFSurfaceGenerationWidget::OnShowAdvancedOptionsCheckboxChecked ( bool  checked)
protectedslot

OnShowAdvancedOptionsCheckboxChecked Show/hide advanced options.

Parameters
checkedshow/hide

◆ OnTriangulationThresholdSpinBoxChanged

void QmitkToFSurfaceGenerationWidget::OnTriangulationThresholdSpinBoxChanged ( )
protectedslot

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

◆ UpdateSurface()

bool QmitkToFSurfaceGenerationWidget::UpdateSurface ( )

UpdateSurface Generate new surface data according to the device properties.

Returns
True for success.

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
static

Definition at line 48 of file QmitkToFSurfaceGenerationWidget.h.


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