MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
OpenIGTLinkExample.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
14#ifndef OpenIGTLinkExample_h
15#define OpenIGTLinkExample_h
16
17#include <berryISelectionListener.h>
18
19#include <QmitkAbstractView.h>
20
21#include "ui_OpenIGTLinkExampleControls.h"
22#include "mitkIGTLClient.h"
23#include "mitkIGTLServer.h"
27
28#include "qtimer.h"
29
38class OpenIGTLinkExample : public QmitkAbstractView
39{
40 // this is needed for all Qt objects that should have a Qt meta-object
41 // (everything that derives from QObject and wants to have signal/slots)
42 Q_OBJECT
43
44 public:
45 ~OpenIGTLinkExample() override;
46
47 static const std::string VIEW_ID;
48
49 protected slots:
50
51 void Start();
52 void UpdatePipeline();
53
54 protected:
55
56 void CreateQtPartControl(QWidget *parent) override;
57
58 void SetFocus() override;
59
60 void CreatePipeline();
61 void DestroyPipeline();
62
63 void ResizeBoundingBox();
64
65 Ui::OpenIGTLinkExampleControls m_Controls;
66 mitk::IGTLClient::Pointer m_IGTLClient;
67 mitk::IGTLDeviceSource::Pointer m_IGTLDeviceSource;
68 mitk::IGTLMessageToNavigationDataFilter::Pointer m_IGTLMsgToNavDataFilter;
69 mitk::NavigationDataObjectVisualizationFilter::Pointer m_VisFilter;
70 QList<mitk::DataNode::Pointer> m_DemoNodes;
71
72 QTimer m_Timer;
73};
74
75#endif // OpenIGTLinkExample_h
OpenIGTLinkExample.
QList< mitk::DataNode::Pointer > m_DemoNodes
mitk::IGTLMessageToNavigationDataFilter::Pointer m_IGTLMsgToNavDataFilter
mitk::IGTLDeviceSource::Pointer m_IGTLDeviceSource
mitk::IGTLClient::Pointer m_IGTLClient
void CreateQtPartControl(QWidget *parent) override
static const std::string VIEW_ID
void ResizeBoundingBox()
To initialize the scene to the bounding box of all visible objects.
mitk::NavigationDataObjectVisualizationFilter::Pointer m_VisFilter
Ui::OpenIGTLinkExampleControls m_Controls