7 for i
in range(len(pixelElements1)):
8 pix_x1 = pixelElements1[i][4]
9 pix_y1 = pixelElements1[i][5]
10 pix_z1 = pixelElements1[i][6]
12 pix_x2 = pixelElements2[i][4]
13 pix_y2 = pixelElements2[i][5]
14 pix_z2 = pixelElements2[i][6]
16 if pixelElements1[i][0] == 0:
24 pixelTransCan[
int(pixelElements1[i][3]+6)].
cd()
25 line.SetLineColor(kRed+1)
26 line.DrawArrow(pix_x1,pix_y1,pix_x1+TRASL_FACTOR*(pix_x2-pix_x1),pix_y1+TRASL_FACTOR*(pix_y2-pix_y1),0.01,
"")
28 if int(pixelElements1[i][3]) == 0:
30 line.SetLineColor(kRed+1)
31 line.DrawArrow(pix_x1,pix_y1,pix_x1+TRASL_FACTOR*(pix_x2-pix_x1),pix_y1+TRASL_FACTOR*(pix_y2-pix_y1),0.01,
"")
35 color = 51 +
int(pixelElements1[i][2])
37 color = 51 - (color- 100)
39 pixPoly = TPolyLine3D(2)
40 pixPoly.SetLineWidth(1)
41 pixPoly.SetLineColor(color)
47 pix_x1+TRASL_FACTOR*(pix_x2-pix_x1),
48 pix_y1+TRASL_FACTOR*(pix_y2-pix_y1),
49 pix_z1+TRASL_FACTOR*(pix_z2-pix_z1))
50 pixLines[
int(pixelElements1[i][1])-1].
append(pixPoly)
52 pixMark = TPolyMarker3D(1)
53 pixMark.SetMarkerSize(4)
54 pixMark.SetMarkerColor(color)
55 pixMark.SetMarkerStyle(7)
60 pixPoints[
int(pixelElements1[i][1])-1].
append(pixMark)
63 if pixelElements1[i][0] == 2:
72 if pixelElements1[i][0] == -2:
84 for i
in range(len(pix3DLayers)):
88 for j
in range(len(pixLines[i])):
91 pixPoints[i][j].Draw()
94 pixPoints[i][j].Draw()