Commit cc2c99a6188aecdd662aaa567ce10137ad64fe08

Authored by tatiana
1 parent 28e7e30b

FIX: Open angular measure from inv3

Showing 1 changed file with 0 additions and 7 deletions   Show diff stats
invesalius/data/measures.py
@@ -39,24 +39,18 @@ class MeasurementManager(object): @@ -39,24 +39,18 @@ class MeasurementManager(object):
39 39
40 40
41 def _load_measurements(self, pubsub_evt): 41 def _load_measurements(self, pubsub_evt):
42 - print "_load_measurements"  
43 dict = pubsub_evt.data 42 dict = pubsub_evt.data
44 for i in dict: 43 for i in dict:
45 m = dict[i] 44 m = dict[i]
46 - print "m:", m.name  
47 if m.type == const.LINEAR: 45 if m.type == const.LINEAR:
48 - print "linear"  
49 mr = LinearMeasure(m.colour) 46 mr = LinearMeasure(m.colour)
50 else: 47 else:
51 - print "angular"  
52 mr = AngularMeasure(m.colour) 48 mr = AngularMeasure(m.colour)
53 self.current = (m, mr) 49 self.current = (m, mr)
54 self.measures.append(self.current) 50 self.measures.append(self.current)
55 for point in m.points: 51 for point in m.points:
56 - print "point:", point  
57 x, y, z = point 52 x, y, z = point
58 actors = mr.AddPoint(x, y, z) 53 actors = mr.AddPoint(x, y, z)
59 - print "actors:", actors  
60 ps.Publisher().sendMessage(("Add actors", m.location), 54 ps.Publisher().sendMessage(("Add actors", m.location),
61 (actors, m.slice_number)) 55 (actors, m.slice_number))
62 self.current = None 56 self.current = None
@@ -99,7 +93,6 @@ class MeasurementManager(object): @@ -99,7 +93,6 @@ class MeasurementManager(object):
99 x, y, z = position 93 x, y, z = position
100 actors = self.current[1].AddPoint(x, y, z) 94 actors = self.current[1].AddPoint(x, y, z)
101 self.current[0].points.append(position) 95 self.current[0].points.append(position)
102 - print "--- actors", actors  
103 ps.Publisher().sendMessage(("Add actors", location), 96 ps.Publisher().sendMessage(("Add actors", location),
104 (actors, self.current[0].slice_number)) 97 (actors, self.current[0].slice_number))
105 98