MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
USNavigation.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 USNavigation_h
14#define USNavigation_h
15
16// Blueberry, QMITK
17#include <berryISelectionListener.h>
18#include <QmitkAbstractView.h>
19#include "ui_USNavigationControls.h"
20
21// QT
22#include <QTimer>
23#include <QProgressBar>
24
25// MITK
33
41class USNavigation : public QmitkAbstractView
42{
43 Q_OBJECT
44
45 public:
46
47 static const std::string VIEW_ID;
48
50 virtual void CreateQtPartControl(QWidget *parent);
51
52 protected slots:
53
57 //void OnClickDevices();
58 void OnDeviceSelected();
59 void OnDeviceDeselected();
60
64 void OnSelectDevices();
65
69 //void OnLoadCalibration();
70
75
79 void OnFreeze();
80
84 void OnReset();
85
89 void OnNeedleViewToggle();
90
91 void OnZoneAdded();
92
96 void Update();
97
98 void UpdateMeters();
99
100 protected:
101
102 mitk::NavigationToolStorage::Pointer m_ToolStorage;
103 std::vector<mitk::DataNode::Pointer> m_Zones;
104 mitk::DataNode::Pointer m_USStream;
105
107
109
113 mitk::USCombinedModality::Pointer m_USDevice;
114
119
123 mitk::NavigationDataSource::Pointer m_Tracker;
124
125 mitk::NodeDisplacementFilter::Pointer m_ZoneFilter;
126
127 mitk::NavigationDataSmoothingFilter::Pointer m_SmoothingFilter;
128
129 mitk::CameraVisualization::Pointer m_CameraVis;
130
134 mitk::NeedleProjectionFilter::Pointer m_NeedleProjectionFilter;
135
139 void FormatZoneNode(mitk::DataNode::Pointer node, mitk::Point3D center);
140
144 void SetupProximityView();
145
146 QProgressBar* CreateRangeMeter(int i);
147 void ResetRangeMeters();
148
149 std::vector< QProgressBar* > m_RangeMeters;
150
151 virtual void SetFocus();
152
153 QTimer *m_Timer;
155
157
159
160 static const int MAXRANGE = 60;
161 static const int WARNRANGE = 25;
162
163 Ui::USNavigationControls m_Controls;
164
166};
167
168#endif // USNavigation_h
USNavigation.
QTimer * m_RangeMeterTimer
void OnNeedleViewToggle()
mitk::NeedleProjectionFilter::Pointer m_NeedleProjectionFilter
Creates a Pointset that projects the needle's path.
mitk::NavigationDataSmoothingFilter::Pointer m_SmoothingFilter
std::string m_LoadedCalibration
Temporary saving point for loaded calibration data.
mitk::CameraVisualization::Pointer m_CameraVis
bool m_ImageAlreadySetToNode
mitk::NodeDisplacementFilter::Pointer m_ZoneFilter
void OnSelectDevices()
Triggered, when the user has clicked "select Devices".
mitk::DataNode::Pointer m_USStream
void OnDeviceDeselected()
static const int MAXRANGE
QProgressBar * CreateRangeMeter(int i)
virtual void SetFocus()
QString m_RangeMeterStyle
mitk::USCombinedModality::Pointer m_USDevice
The CombinedModality used for imaging.
mitk::NavigationDataSource::Pointer m_Tracker
NavigationDataSource used for tracking data.
QTimer * m_Timer
std::vector< mitk::DataNode::Pointer > m_Zones
void SetupProximityView()
Sets up the RangeMeter Section of the Navigation by creating and initializing all necessary Progress ...
void ResetRangeMeters()
mitk::NavigationToolStorage::Pointer m_ToolStorage
static const std::string VIEW_ID
bool m_IsNeedleViewActive
void FormatZoneNode(mitk::DataNode::Pointer node, mitk::Point3D center)
Colors the given node according to the color selected in the "Edit Zone" section, names it correctly ...
virtual void CreateQtPartControl(QWidget *parent)
Ui::USNavigationControls m_Controls
void OnDeviceSelected()
Triggered, when the user selects a device from either the list of USDevices or Tracking Devices.
std::vector< QProgressBar * > m_RangeMeters
static const int WARNRANGE
void OnStartIntervention()
Triggered, when the user has clicked "Load Calibration".