MITK-IGT
IGT Extension of MITK
|
QmitkMITKIGTTrackingToolboxView. More...
#include <QmitkMITKIGTTrackingToolboxView.h>
Public Member Functions | |
QmitkMITKIGTTrackingToolboxView () | |
~QmitkMITKIGTTrackingToolboxView () override | |
void | CreateQtPartControl (QWidget *parent) override |
void | SetFocus () override |
Static Public Attributes | |
static const std::string | VIEW_ID = "org.mitk.views.mitkigttrackingtoolbox" |
Protected Slots | |
void | OnToggleFileExtension () |
changes name of the filename when switching fileextension by radio button | |
void | OnLoadTools () |
This slot is called if the user wants to load a new tool file. A new window opens where the user can choose a file. If the chosen file is corrupt or not valid the user gets an error message. If the file was loaded successfully the tools are show in the tool status widget. | |
void | OnStartStopTracking () |
void | OnConnectDisconnect () |
void | OnFreezeUnfreezeTracking () |
void | OnShowHideToolProjectionClicked () |
Shows or hides the tool projection of the standard tool axis. | |
void | OnShowHideToolAxisClicked () |
Shows or hides the standard tool axis. | |
void | OnConnect () |
This slot connects to the device. In status "connected" configuration of the device is disabled. | |
void | OnDisconnect () |
This slot disconnects from the device. | |
void | OnStartTracking () |
This slot tries to start tracking with the current device. If start tracking fails the user gets an error message and tracking stays off. | |
void | OnStopTracking () |
This slot stops tracking. If tracking is not strated it does nothing. | |
void | OnChooseFileClicked () |
This slot is called if the user wants to choose a file name for logging. A new windows to navigate through the file system and choose a file opens. | |
void | StartLogging () |
This slot starts logging. Logging is only possible if a device is tracking. If not the logging mechanism start when the start tracking is called. | |
void | StopLogging () |
This slot stops logging. If logging is not running it does nothing. | |
void | OnTrackingDeviceChanged () |
This slot enables / disables UI elements depending on the tracking device after a device is changed. | |
void | OnTrackingVolumeChanged (QString qstr) |
This slot selects the Tracking Volume appropriate for a given model. | |
void | OnShowTrackingVolumeChanged () |
Shows or hides the tracking volume according to the checkboxe's state. | |
void | OnAutoDetectTools () |
This slot auto detects tools of a NDI Aurora tracking device. If tools where found they will be stored internally as a tool storage. The user is also asked if he wants to save this tool storage to load it later. Only call it if a Aurora device was configured because other devices don't support auto detection. | |
void | UpdateRenderTrackingTimer () |
Slot for tracking timer. The timer updates the IGT pipline and also the logging filter if logging is activated. | |
void | UpdateLoggingTrackingTimer () |
void | OnChangeRenderUpdateRate () |
Slot for showing the rendering disabled warning label. | |
void | OnResetTools () |
Resets the Tracking Tools: this means all tools are removed. | |
void | OnAddSingleTool () |
Opens a dialog where a new navigation tool can be created. | |
void | OnAddSingleToolFinished () |
This slot is called if the user finishes the creation of a new tool. | |
void | OnAddSingleToolCanceled () |
This slot is called if the user cancels the creation of a new tool. | |
void | OnTimeOut () |
void | OnToolStorageChanged (const ctkServiceEvent event) |
This function is called, when anything in the ToolStorage changed, e.g. AddTool or EditTool. ServiceListener is connected in the QmitkMITKIGTTrackingToolboxView. | |
void | SelectToolProjection (int idx) |
void | DisableLoggingButtons () |
void | EnableLoggingButtons () |
void | DisableOptionsButtons () |
void | EnableOptionsButtons () |
void | EnableTrackingConfigurationButtons () |
void | DisableTrackingConfigurationButtons () |
void | EnableTrackingControls () |
void | DisableTrackingControls () |
void | EnableDisableTimerButtons (int enable) |
void | OnToggleAdvancedSimpleMode () |
void | OnToggleDifferentUpdateRates () |
void | OnAutoDetectToolsFinished (bool success, QString errorMessage) |
void | OnConnectFinished (bool success, QString errorMessage) |
void | OnStartTrackingFinished (bool success, QString errorMessage) |
void | OnStopTrackingFinished (bool success, QString errorMessage) |
void | OnDisconnectFinished (bool success, QString errorMessage) |
Protected Member Functions | |
void | MessageBox (std::string s) |
>a filename for auto saving tools if no m_ToolStorageFilename was given by the user | |
void | GlobalReinit () |
reinits the view globally. | |
void | ReplaceCurrentToolStorage (mitk::NavigationToolStorage::Pointer newStorage, std::string newStorageName) |
>Stores if simple UI mode is enabled | |
void | StoreUISettings () |
Stores the properties of some QWidgets (and the tool storage file name) to QSettings. | |
void | LoadUISettings () |
Loads the properties of some QWidgets (and the tool storage file name) from QSettings. | |
void | UpdateToolStorageLabel (QString pathOfLoadedStorage) |
void | AutoSaveToolStorage () |
void | ShowToolProjection (int index) |
void | RemoveAllToolProjections () |
Protected Attributes | |
Ui::QmitkMITKIGTTrackingToolboxViewControls * | m_Controls |
bool | m_tracking |
bool | m_connected |
bool | m_logging |
bool | m_ShowHideToolAxis |
int | m_loggedFrames |
mitk::NavigationToolStorage::Pointer | m_toolStorage |
mitk::DataNode::Pointer | m_TrackingVolumeNode |
>stores the loaded tools | |
bool | lastTrackingVolumeState |
>holds the data node of the tracking volume if volume is visualized | |
QString | m_ToolStorageFilename |
>temporary holds the state of the tracking volume (activated/not activated) during some methods | |
QString | m_AutoSaveFilename |
>stores the filename of the current tool storage | |
mitk::TrackingDeviceData | m_TrackingDeviceData |
mitk::NavigationDataObjectVisualizationFilter::Pointer | m_ToolVisualizationFilter |
mitk::NavigationDataRecorder::Pointer | m_loggingFilter |
itk::SmartPointer< mitk::NeedleProjectionFilter > | m_NeedleProjectionFilter |
mitk::NavigationDataToIGTLMessageFilter::Pointer | m_IGTLConversionFilter |
mitk::IGTLServer::Pointer | m_IGTLServer |
mitk::IGTLMessageProvider::Pointer | m_IGTLMessageProvider |
QTimer * | m_TrackingRenderTimer |
This timer updates the IGT pipline and also the logging filter if logging is activated. | |
QTimer * | m_TrackingLoggingTimer |
QTimer * | m_TimeoutTimer |
bool | m_SimpleModeEnabled |
QThread * | m_WorkerThread |
QmitkMITKIGTTrackingToolboxViewWorker * | m_Worker |
QmitkMITKIGTTrackingToolboxView.
This is the view of the bundle IGT Tracking Toolbox. The IGT Tracking Toolbox can be used to access tracking devices with MITK-IGT. The Tracking Toolbox can be used to log tracking data in XML or CSV format for measurement purposes. The Tracking Toolbox further allows for visualization of tools with given surfaces in combination with the NaviagtionToolManager.
Definition at line 48 of file QmitkMITKIGTTrackingToolboxView.h.
QmitkMITKIGTTrackingToolboxView::QmitkMITKIGTTrackingToolboxView | ( | ) |
|
override |
|
protected |
Auto saves the current tool storage to a temporary file. This is used for persistence.
Definition at line 1432 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
override |
|
protectedslot |
Definition at line 1230 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protectedslot |
Definition at line 1256 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protectedslot |
Definition at line 1301 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protectedslot |
Definition at line 1288 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protectedslot |
Definition at line 533 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protectedslot |
Definition at line 1243 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protectedslot |
Definition at line 1272 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protectedslot |
Definition at line 1293 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protectedslot |
Definition at line 1283 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protected |
reinits the view globally.
Definition at line 1217 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protected |
Loads the properties of some QWidgets (and the tool storage file name) from QSettings.
[StoreUISettings]
[LoadUISettings]
[LoadUISettings]
[LoadToolStorage]
[LoadToolStorage]
Definition at line 1375 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protected |
>a filename for auto saving tools if no m_ToolStorageFilename was given by the user
Shows a message box with the text given as parameter.
Definition at line 918 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protectedslot |
Opens a dialog where a new navigation tool can be created.
Definition at line 1160 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protectedslot |
This slot is called if the user cancels the creation of a new tool.
Definition at line 1208 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protectedslot |
This slot is called if the user finishes the creation of a new tool.
Definition at line 1182 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protectedslot |
This slot auto detects tools of a NDI Aurora tracking device. If tools where found they will be stored internally as a tool storage. The user is also asked if he wants to save this tool storage to load it later. Only call it if a Aurora device was configured because other devices don't support auto detection.
Definition at line 848 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protectedslot |
Definition at line 863 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protectedslot |
Slot for showing the rendering disabled warning label.
Definition at line 1084 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protectedslot |
This slot is called if the user wants to choose a file name for logging. A new windows to navigate through the file system and choose a file opens.
Definition at line 973 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protectedslot |
This slot connects to the device. In status "connected" configuration of the device is disabled.
[Thread 4]
[Thread 4]
Definition at line 487 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protectedslot |
Connects the device if it is disconnected / disconnects the device if it is connected.
Definition at line 481 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protectedslot |
|
protectedslot |
This slot disconnects from the device.
Definition at line 588 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protectedslot |
Definition at line 595 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protectedslot |
Freezes the device if it is not frozen / unfreezes the device if it is frozen.
Definition at line 353 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protectedslot |
This slot is called if the user wants to load a new tool file. A new window opens where the user can choose a file. If the chosen file is corrupt or not valid the user gets an error message. If the file was loaded successfully the tools are show in the tool status widget.
Definition at line 287 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protectedslot |
Resets the Tracking Tools: this means all tools are removed.
Definition at line 326 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protectedslot |
Shows or hides the standard tool axis.
Definition at line 456 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protectedslot |
Shows or hides the tool projection of the standard tool axis.
Definition at line 433 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protectedslot |
Shows or hides the tracking volume according to the checkboxe's state.
Definition at line 835 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protectedslot |
Starts tracking if tracking is stopped / stops tracking if tracking is started.
Definition at line 342 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protectedslot |
This slot tries to start tracking with the current device. If start tracking fails the user gets an error message and tracking stays off.
Definition at line 621 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protectedslot |
|
protectedslot |
This slot stops tracking. If tracking is not strated it does nothing.
Definition at line 714 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protectedslot |
Definition at line 739 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protectedslot |
Definition at line 1325 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protectedslot |
Definition at line 1033 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protectedslot |
Definition at line 1050 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protectedslot |
changes name of the filename when switching fileextension by radio button
Definition at line 990 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protectedslot |
This function is called, when anything in the ToolStorage changed, e.g. AddTool or EditTool. ServiceListener is connected in the QmitkMITKIGTTrackingToolboxView.
Definition at line 1339 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protectedslot |
This slot enables / disables UI elements depending on the tracking device after a device is changed.
Definition at line 769 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protectedslot |
This slot selects the Tracking Volume appropriate for a given model.
Definition at line 810 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protected |
Removes all the tool projections from the data storage
Definition at line 396 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protected |
>Stores if simple UI mode is enabled
Replaces the current navigation tool storage which is stored in m_toolStorage. Basically handles the microservice stuff: unregisters the old storage, then replaces the storage and registers the new one.
Definition at line 1309 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protectedslot |
Definition at line 412 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
override |
Sets the focus to an internal widget.
Definition at line 1156 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protected |
Shows the projection of the tool along the tool axis for the given tool index
Definition at line 369 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protectedslot |
This slot starts logging. Logging is only possible if a device is tracking. If not the logging mechanism start when the start tracking is called.
Definition at line 1092 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protectedslot |
This slot stops logging. If logging is not running it does nothing.
Definition at line 1132 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protected |
Stores the properties of some QWidgets (and the tool storage file name) to QSettings.
[StoreUISettings]
Definition at line 1355 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protectedslot |
Definition at line 958 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protectedslot |
Slot for tracking timer. The timer updates the IGT pipline and also the logging filter if logging is activated.
Definition at line 925 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protected |
Help method for updating the tool label
Definition at line 1420 of file QmitkMITKIGTTrackingToolboxView.cpp.
|
protected |
>holds the data node of the tracking volume if volume is visualized
Definition at line 192 of file QmitkMITKIGTTrackingToolboxView.h.
|
protected |
>stores the filename of the current tool storage
Definition at line 195 of file QmitkMITKIGTTrackingToolboxView.h.
|
protected |
bool which is true if tracking is running, false if not
Definition at line 185 of file QmitkMITKIGTTrackingToolboxView.h.
|
protected |
Definition at line 182 of file QmitkMITKIGTTrackingToolboxView.h.
|
protected |
Contains the needle projection filter which is used for displaying the tool projection and the tool axis during tracking (optional third filter of the IGT pipeline). The filter is updated in the method UpdateRenderTrackingTimer().
Definition at line 210 of file QmitkMITKIGTTrackingToolboxView.h.
|
protected |
Definition at line 212 of file QmitkMITKIGTTrackingToolboxView.h.
|
protected |
Converts the navigation data as open IGT link message and makes this filter available as microservice
Definition at line 211 of file QmitkMITKIGTTrackingToolboxView.h.
|
protected |
bool, which will be true, if the tool axis is visible during tracking
Definition at line 188 of file QmitkMITKIGTTrackingToolboxView.h.
|
protected |
bool that is true when a tracking device is connected
Definition at line 186 of file QmitkMITKIGTTrackingToolboxView.h.
|
protected |
holds the tool visualization filter (second filter of the IGT pipeline)
Definition at line 206 of file QmitkMITKIGTTrackingToolboxView.h.
|
protected |
holds the logging filter if logging is on (third filter of the IGT pipeline)
Definition at line 207 of file QmitkMITKIGTTrackingToolboxView.h.
|
protected |
bool which is true if logging is running, false if not
Definition at line 187 of file QmitkMITKIGTTrackingToolboxView.h.
|
protected |
Definition at line 219 of file QmitkMITKIGTTrackingToolboxView.h.
|
protected |
Definition at line 217 of file QmitkMITKIGTTrackingToolboxView.h.
|
protected |
stores the current number of logged frames if logging is on
Definition at line 190 of file QmitkMITKIGTTrackingToolboxView.h.
|
protected |
>temporary holds the state of the tracking volume (activated/not activated) during some methods
Definition at line 194 of file QmitkMITKIGTTrackingToolboxView.h.
|
protected |
stores the tracking device data as long as this is not handled by the tracking device configuration widget
Definition at line 205 of file QmitkMITKIGTTrackingToolboxView.h.
|
protected |
Definition at line 184 of file QmitkMITKIGTTrackingToolboxView.h.
|
protected |
Definition at line 204 of file QmitkMITKIGTTrackingToolboxView.h.
|
protected |
Definition at line 216 of file QmitkMITKIGTTrackingToolboxView.h.
|
protected |
This timer updates the IGT pipline and also the logging filter if logging is activated.
Definition at line 215 of file QmitkMITKIGTTrackingToolboxView.h.
|
protected |
>stores the loaded tools
Definition at line 191 of file QmitkMITKIGTTrackingToolboxView.h.
|
protected |
Definition at line 257 of file QmitkMITKIGTTrackingToolboxView.h.
|
protected |
Definition at line 256 of file QmitkMITKIGTTrackingToolboxView.h.
|
static |
Definition at line 56 of file QmitkMITKIGTTrackingToolboxView.h.