There are two minor bugs in the QmitkIGTTutorialView.
Apparently, the way to add tools has been changed. The current version (below):
mitk::NDITrackingDevice::Pointer tracker = mitk::NDITrackingDevice::New();
mitk::NDIPassiveTool::Pointer tool = mitk::NDIPassiveTool::New(); tool->SetToolName("MyInstrument"); //Every tool should have a name. tool->LoadSROMFile("D:/Polaris-Toolfiles/NDI_Probe_Y_Small.rom"); tracker->Add6DTool(tool); //Add the tool to the TrackingDevice object.
... must be replaced by:
tracker->AddTool("MediumTrackingTool", "D:/Polaris-Toolfiles/NDI_Probe_X_Medium.rom");
This compile error usually does not appear because it is commented out.
A better solution would be to provide two buttons:
1.) Virtual Tracking Device
2.) NDIPolaris
and to split up the code from OnStartIGT() into two methods.
Furthermore, the Global Reinit is missing on the VirtualTrackingDevice version after pushing the "Start Tracking" button. The cone is only visible after applying a Global Reinit on the tracking tool in the DataManager GUI.