-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpcl_labeller_signal_func.cpp
141 lines (135 loc) · 11.7 KB
/
pcl_labeller_signal_func.cpp
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
// License: MIT. Please Check the license file in root directory
// Copyright (c) (2018) Lester Lo
//###################################################
//
// QT Signal Related function
//
//###################################################
#include "pcl_labeller.h"
#include "config.h"
#include "../build/ui_pcl_labeller.h"
void
PCL_Labeller::labelUI_Signal_enable(bool state)
{
if(state == true)
{
//Normal
connect(ui->label_le, SIGNAL(editingFinished()), this, SLOT(onLabelEditFinish()));
connect(ui->centerx_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->centery_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->centerz_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->rotatex_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->rotatey_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->rotatez_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->widthx_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->heighty_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->depthz_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->tabWidget, SIGNAL(currentChanged(int )), this, SLOT(onDataInputTabChange(int )));
//Joint Tab
connect(ui->sk_n1x_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n1y_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n1z_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n2x_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n2y_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n2z_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n3x_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n3y_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n3z_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n4x_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n4y_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n4z_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n5x_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n5y_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n5z_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n6x_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n6y_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n6z_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n7x_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n7y_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n7z_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n8x_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n8y_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n8z_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n9x_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n9y_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n9z_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n10x_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n10y_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n10z_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n11x_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n11y_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n11z_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n12x_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n12y_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n12z_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n13x_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n13y_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n13z_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n14x_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n14y_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n14z_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n15x_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n15y_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
connect(ui->sk_n15z_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
}
else
{
disconnect(ui->label_le, SIGNAL(editingFinished()), this, SLOT(onLabelEditFinish()));
disconnect(ui->centerx_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->centery_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->centerz_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->rotatex_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->rotatey_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->rotatez_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->widthx_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->heighty_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->depthz_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->tabWidget, SIGNAL(currentChanged(int )), this, SLOT(onDataInputTabChange(int )));
//Joint tab
disconnect(ui->sk_n1x_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n1y_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n1z_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n2x_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n2y_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n2z_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n3x_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n3y_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n3z_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n4x_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n4y_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n4z_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n5x_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n5y_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n5z_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n6x_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n6y_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n6z_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n7x_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n7y_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n7z_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n8x_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n8y_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n8z_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n9x_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n9y_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n9z_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n10x_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n10y_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n10z_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n11x_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n11y_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n11z_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n12x_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n12y_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n12z_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n13x_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n13y_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n13z_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n14x_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n14y_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n14z_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n15x_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n15y_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
disconnect(ui->sk_n15z_dsb, SIGNAL(valueChanged(double )), this, SLOT(onLabelValueChange(double)));
}
}