-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathOpenIGTLinkSimulatorApp.h
82 lines (53 loc) · 1.89 KB
/
OpenIGTLinkSimulatorApp.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/*=========================================================================
Program: OpenIGTLink Simulator
Language: C++
Copyright (c) Brigham and Women's Hospital. All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#ifndef OpenIGTLinkSimulatorApp_h
#define OpenIGTLinkSimulatorApp_h
#include <QtGui>
#include "ui_OpenIGTLinkSimulatorWindow.h"
#include "igtlMultiThreader.h"
#include "igtlTCPConnectorServerOIGTL.h"
#include "qDataGeneratorTracking.h"
#define DEFAULT_OIGTL_PORT 18944
#define DEFAULT_SPICE_PORT 2000
#define DEFAULT_RMP_PORT 20001
#define DEFAULT_RMP_ADDR "192.168.2.1"
class OpenIGTLinkSimulatorApp : public QMainWindow, private Ui::OpenIGTLinkSimulatorWindow
{
Q_OBJECT
public:
static const int StatusColorTable[][3];
static const int DataIOColorTable[][3];
public:
OpenIGTLinkSimulatorApp(QWidget *parent = 0);
public slots:
void getPath();
void about();
void scannerActivateClicked();
void clientActivateClicked();
void scannerAddressChanged( const QString & text );
void imagePortChanged( const QString & text );
void controlPortChanged( const QString & text );
void igtlPortChanged( const QString & text );
void updateStatus();
void quit();
private:
void changeStatusTextColor(QLineEdit* le, int status);
void changeDataIOTextColor(QLineEdit* le, int status);
QTimer *timer;
igtl::MultiThreader::Pointer Threader;
igtl::TCPConnectorServerOIGTL::Pointer oigtlConnector;
qDataGeneratorTracking* TrackingDataGenerator;
bool fScannerActive;
bool fClientActive;
QString scannerAddress;
QString imagePort;
QString controlPort;
QString igtlPort;
};
#endif