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

QmitkIGTTrackingLabView. More...

#include <QmitkIGTTrackingLabView.h>

Inheritance diagram for QmitkIGTTrackingLabView:

Public Member Functions

 QmitkIGTTrackingLabView ()
 default constructor
 
 ~QmitkIGTTrackingLabView () override
 default destructor
 
void CreateQtPartControl (QWidget *parent) override
 
void SetFocus () override
 

Static Public Attributes

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

Protected Slots

void UpdateTimer ()
 
void OnSetupNavigation ()
 This method sets up the navigation pipeline during initialization.
 
void OnInstrumentSelected ()
 
void OnObjectmarkerSelected ()
 
void OnInitialRegistration ()
 This method calls the initial fiducial registration.
 
void OnAddRegistrationTrackingFiducial ()
 This method adds a new fiducial to the tracker fiducials PointSet.
 
void InitializeRegistration ()
 This method initializes the registration for the FiducialRegistrationWidget.
 
void OnPermanentRegistration (bool on)
 This method activates the permanent registration based on one tool's position.
 
void OnPointSetRecording (bool record)
 This method starts the PointSet recording.
 
void OnVirtualCamera (bool on)
 This method activates the virtual camera.
 

Protected Member Functions

void CreateBundleWidgets ()
 This method creates all widgets this bundle needs.
 
void CreateConnections ()
 This method creates the SIGNAL SLOT connections.
 
bool CheckRegistrationInitialization ()
 
void DestroyIGTPipeline ()
 This method destroys the filter pipeline.
 
bool IsTransformDifferenceHigh (mitk::NavigationData::Pointer transformA, mitk::NavigationData::Pointer transformB, double euclideanDistanceThreshold=.8, double angularDifferenceThreshold=.8)
 

Protected Attributes

Ui::QmitkIGTTrackingLabViewControls m_Controls
 
mitk::TrackingDeviceSource::Pointer m_Source
 source that connects to the tracking device
 
mitk::NavigationDataObjectVisualizationFilter::Pointer m_PermanentRegistrationFilter
 this filter transforms from tracking coordinates into mitk world coordinates if needed it is interconnected before the FiducialEegistrationFilter
 
mitk::NavigationDataObjectVisualizationFilter::Pointer m_Visualizer
 visualization filter
 
mitk::CameraVisualization::Pointer m_VirtualView
 filter to update the vtk camera according to the reference navigation data
 
mitk::NavigationData::Pointer m_InstrumentNavigationData
 navigation data of instrument
 
mitk::NavigationData::Pointer m_ObjectmarkerNavigationData
 navigation data of object marker
 
QTimer * m_Timer
 central timer which updates the IGT pipeline
 
mitk::NavigationData::Pointer m_PointSetRecordingNavigationData
 
mitk::PointSet::Pointer m_PSRecordingPointSet
 
bool m_PointSetRecording
 
bool m_PermanentRegistration
 
bool m_CameraView
 
mitk::DataNode::Pointer m_ImageFiducialsDataNode
 
mitk::DataNode::Pointer m_TrackerFiducialsDataNode
 
mitk::PointSet::Pointer m_PermanentRegistrationSourcePoints
 
mitk::NavigationData::Pointer m_T_MarkerRel
 
mitk::NavigationData::Pointer m_T_ObjectReg
 
mitk::AffineTransform3D::Pointer m_T_ImageReg
 
mitk::AffineTransform3D::Pointer m_T_ImageGeo
 
mitk::NavigationData::Pointer m_ObjectmarkerNavigationDataLastUpdate
 this is the position of the object marker from the last call of update(); it is used to check the difference and decide if the visualization must be updated
 

Detailed Description

QmitkIGTTrackingLabView.

Warning
This class is not yet documented. Use "git blame" and ask the author to provide basic documentation.

${}

Definition at line 50 of file QmitkIGTTrackingLabView.h.

Constructor & Destructor Documentation

◆ QmitkIGTTrackingLabView()

QmitkIGTTrackingLabView::QmitkIGTTrackingLabView ( )

default constructor

Definition at line 51 of file QmitkIGTTrackingLabView.cpp.

◆ ~QmitkIGTTrackingLabView()

QmitkIGTTrackingLabView::~QmitkIGTTrackingLabView ( )
override

default destructor

Definition at line 553 of file QmitkIGTTrackingLabView.cpp.

Member Function Documentation

◆ CheckRegistrationInitialization()

bool QmitkIGTTrackingLabView::CheckRegistrationInitialization ( )
protected

Checks if everything is initialized for registration. Gives error messages and returns false if not.

Definition at line 631 of file QmitkIGTTrackingLabView.cpp.

◆ CreateBundleWidgets()

void QmitkIGTTrackingLabView::CreateBundleWidgets ( )
protected

This method creates all widgets this bundle needs.

Definition at line 567 of file QmitkIGTTrackingLabView.cpp.

◆ CreateConnections()

void QmitkIGTTrackingLabView::CreateConnections ( )
protected

This method creates the SIGNAL SLOT connections.

Definition at line 576 of file QmitkIGTTrackingLabView.cpp.

◆ CreateQtPartControl()

void QmitkIGTTrackingLabView::CreateQtPartControl ( QWidget * parent)
override

Definition at line 558 of file QmitkIGTTrackingLabView.cpp.

◆ DestroyIGTPipeline()

void QmitkIGTTrackingLabView::DestroyIGTPipeline ( )
protected

This method destroys the filter pipeline.

Definition at line 618 of file QmitkIGTTrackingLabView.cpp.

◆ InitializeRegistration

void QmitkIGTTrackingLabView::InitializeRegistration ( )
protectedslot

This method initializes the registration for the FiducialRegistrationWidget.

Definition at line 305 of file QmitkIGTTrackingLabView.cpp.

◆ IsTransformDifferenceHigh()

bool QmitkIGTTrackingLabView::IsTransformDifferenceHigh ( mitk::NavigationData::Pointer transformA,
mitk::NavigationData::Pointer transformB,
double euclideanDistanceThreshold = .8,
double angularDifferenceThreshold = .8 )
protected

Checks if the difference between two given transformations is high which means the method returns true if the difference exceeds the given position and angular threshold.

Definition at line 688 of file QmitkIGTTrackingLabView.cpp.

◆ OnAddRegistrationTrackingFiducial

void QmitkIGTTrackingLabView::OnAddRegistrationTrackingFiducial ( )
protectedslot

This method adds a new fiducial to the tracker fiducials PointSet.

Definition at line 285 of file QmitkIGTTrackingLabView.cpp.

◆ OnInitialRegistration

void QmitkIGTTrackingLabView::OnInitialRegistration ( )
protectedslot

This method calls the initial fiducial registration.

Definition at line 192 of file QmitkIGTTrackingLabView.cpp.

◆ OnInstrumentSelected

void QmitkIGTTrackingLabView::OnInstrumentSelected ( )
protectedslot

This method is called when the instrument is selected. It stores the navigation data of the instrument.

Definition at line 141 of file QmitkIGTTrackingLabView.cpp.

◆ OnObjectmarkerSelected

void QmitkIGTTrackingLabView::OnObjectmarkerSelected ( )
protectedslot

This method is called when the object marker is selected. It stores the navigation data of the object marker.

Definition at line 163 of file QmitkIGTTrackingLabView.cpp.

◆ OnPermanentRegistration

void QmitkIGTTrackingLabView::OnPermanentRegistration ( bool on)
protectedslot

This method activates the permanent registration based on one tool's position.

Definition at line 359 of file QmitkIGTTrackingLabView.cpp.

◆ OnPointSetRecording

void QmitkIGTTrackingLabView::OnPointSetRecording ( bool record)
protectedslot

This method starts the PointSet recording.

Definition at line 450 of file QmitkIGTTrackingLabView.cpp.

◆ OnSetupNavigation

void QmitkIGTTrackingLabView::OnSetupNavigation ( )
protectedslot

This method sets up the navigation pipeline during initialization.

Definition at line 108 of file QmitkIGTTrackingLabView.cpp.

◆ OnVirtualCamera

void QmitkIGTTrackingLabView::OnVirtualCamera ( bool on)
protectedslot

This method activates the virtual camera.

Definition at line 495 of file QmitkIGTTrackingLabView.cpp.

◆ SetFocus()

void QmitkIGTTrackingLabView::SetFocus ( )
override

Definition at line 605 of file QmitkIGTTrackingLabView.cpp.

◆ UpdateTimer

void QmitkIGTTrackingLabView::UpdateTimer ( )
protectedslot

This timer updates the IGT pipline, when necessary: 1: if permanent registration is activated, then the permanent registration filter has to be updated 2: if the camera view is on it also must be updated 3: point set recording is based on another filter which needs to be updated when activated

Definition at line 73 of file QmitkIGTTrackingLabView.cpp.

Member Data Documentation

◆ m_CameraView

bool QmitkIGTTrackingLabView::m_CameraView
protected

Definition at line 183 of file QmitkIGTTrackingLabView.h.

◆ m_Controls

Ui::QmitkIGTTrackingLabViewControls QmitkIGTTrackingLabView::m_Controls
protected

Definition at line 141 of file QmitkIGTTrackingLabView.h.

◆ m_ImageFiducialsDataNode

mitk::DataNode::Pointer QmitkIGTTrackingLabView::m_ImageFiducialsDataNode
protected

Definition at line 186 of file QmitkIGTTrackingLabView.h.

◆ m_InstrumentNavigationData

mitk::NavigationData::Pointer QmitkIGTTrackingLabView::m_InstrumentNavigationData
protected

navigation data of instrument

Definition at line 172 of file QmitkIGTTrackingLabView.h.

◆ m_ObjectmarkerNavigationData

mitk::NavigationData::Pointer QmitkIGTTrackingLabView::m_ObjectmarkerNavigationData
protected

navigation data of object marker

Definition at line 173 of file QmitkIGTTrackingLabView.h.

◆ m_ObjectmarkerNavigationDataLastUpdate

mitk::NavigationData::Pointer QmitkIGTTrackingLabView::m_ObjectmarkerNavigationDataLastUpdate
protected

this is the position of the object marker from the last call of update(); it is used to check the difference and decide if the visualization must be updated

Definition at line 195 of file QmitkIGTTrackingLabView.h.

◆ m_PermanentRegistration

bool QmitkIGTTrackingLabView::m_PermanentRegistration
protected

Definition at line 182 of file QmitkIGTTrackingLabView.h.

◆ m_PermanentRegistrationFilter

mitk::NavigationDataObjectVisualizationFilter::Pointer QmitkIGTTrackingLabView::m_PermanentRegistrationFilter
protected

this filter transforms from tracking coordinates into mitk world coordinates if needed it is interconnected before the FiducialEegistrationFilter

Definition at line 168 of file QmitkIGTTrackingLabView.h.

◆ m_PermanentRegistrationSourcePoints

mitk::PointSet::Pointer QmitkIGTTrackingLabView::m_PermanentRegistrationSourcePoints
protected

Definition at line 190 of file QmitkIGTTrackingLabView.h.

◆ m_PointSetRecording

bool QmitkIGTTrackingLabView::m_PointSetRecording
protected

Definition at line 181 of file QmitkIGTTrackingLabView.h.

◆ m_PointSetRecordingNavigationData

mitk::NavigationData::Pointer QmitkIGTTrackingLabView::m_PointSetRecordingNavigationData
protected

Definition at line 179 of file QmitkIGTTrackingLabView.h.

◆ m_PSRecordingPointSet

mitk::PointSet::Pointer QmitkIGTTrackingLabView::m_PSRecordingPointSet
protected

Definition at line 180 of file QmitkIGTTrackingLabView.h.

◆ m_Source

mitk::TrackingDeviceSource::Pointer QmitkIGTTrackingLabView::m_Source
protected

source that connects to the tracking device

Definition at line 167 of file QmitkIGTTrackingLabView.h.

◆ m_T_ImageGeo

mitk::AffineTransform3D::Pointer QmitkIGTTrackingLabView::m_T_ImageGeo
protected

Definition at line 194 of file QmitkIGTTrackingLabView.h.

◆ m_T_ImageReg

mitk::AffineTransform3D::Pointer QmitkIGTTrackingLabView::m_T_ImageReg
protected

Definition at line 193 of file QmitkIGTTrackingLabView.h.

◆ m_T_MarkerRel

mitk::NavigationData::Pointer QmitkIGTTrackingLabView::m_T_MarkerRel
protected

Definition at line 191 of file QmitkIGTTrackingLabView.h.

◆ m_T_ObjectReg

mitk::NavigationData::Pointer QmitkIGTTrackingLabView::m_T_ObjectReg
protected

Definition at line 192 of file QmitkIGTTrackingLabView.h.

◆ m_Timer

QTimer* QmitkIGTTrackingLabView::m_Timer
protected

central timer which updates the IGT pipeline

Definition at line 176 of file QmitkIGTTrackingLabView.h.

◆ m_TrackerFiducialsDataNode

mitk::DataNode::Pointer QmitkIGTTrackingLabView::m_TrackerFiducialsDataNode
protected

Definition at line 187 of file QmitkIGTTrackingLabView.h.

◆ m_VirtualView

mitk::CameraVisualization::Pointer QmitkIGTTrackingLabView::m_VirtualView
protected

filter to update the vtk camera according to the reference navigation data

Definition at line 170 of file QmitkIGTTrackingLabView.h.

◆ m_Visualizer

mitk::NavigationDataObjectVisualizationFilter::Pointer QmitkIGTTrackingLabView::m_Visualizer
protected

visualization filter

Definition at line 169 of file QmitkIGTTrackingLabView.h.

◆ VIEW_ID

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

Definition at line 58 of file QmitkIGTTrackingLabView.h.


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