MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
QmitkIGTTutorialView.h
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found in the LICENSE file.
10
11============================================================================*/
12
13#ifndef QmitkIGTTutorialView_h
14#define QmitkIGTTutorialView_h
15
16#include <QmitkAbstractView.h>
17
18#include <string>
19
20#include "ui_QmitkIGTTutorialViewControls.h"
21
24
36class QmitkIGTTutorialView : public QmitkAbstractView
37{
38
39 // this is needed for all Qt objects that should have a MOC object (everything that derives from QObject)
40 Q_OBJECT
41
42 public:
43
44 static const std::string VIEW_ID;
45
47 ~QmitkIGTTutorialView() override;
48
49 void CreateQtPartControl(QWidget *parent) override;
50
52 virtual void CreateConnections();
53
54 void SetFocus() override;
55
56protected slots:
57
61 void OnStartIGT();
62
66 void OnStopIGT();
67
71 void OnTimer();
72
73protected:
74
75 Ui::QmitkIGTTutorialViewControls* m_Controls;
76
77 mitk::TrackingDeviceSource::Pointer m_Source;
78 mitk::NavigationDataObjectVisualizationFilter::Pointer m_Visualizer;
79 QTimer* m_Timer;
80};
81
82
83
84
85#endif
QmitkIGTTutorial shows a small typically navigation MITK view.
virtual void CreateConnections()
Creation of the connections of main and control widget.
static const std::string VIEW_ID
QTimer * m_Timer
timer for continuous tracking update
void OnStopIGT()
stop IGT scene and clean up
void OnStartIGT()
Execute MITK-IGT Tutorial.
mitk::NavigationDataObjectVisualizationFilter::Pointer m_Visualizer
visualization filter uses output from m_Source
Ui::QmitkIGTTutorialViewControls * m_Controls
void CreateQtPartControl(QWidget *parent) override
void OnTimer()
timer based update of IGT scene
mitk::TrackingDeviceSource::Pointer m_Source
source filer that connects to the tracking device