@@ -97,6 +97,25 @@ def displayTriangulation(self, resolved_position):
9797 "color" :"#6b92a7"
9898 }
9999 })
100+ for guess in self .guess_list :
101+ self .multi_pipe .send ({
102+ "cmd" : "connect_points" ,
103+ "args" :{
104+ "pos1" :(guess .x , guess .y ),
105+ "pos2" :(self .res1 .x , self .res1 .y ),
106+ "dashed" :True ,
107+ "color" :"#383c49"
108+ }
109+ })
110+ self .multi_pipe .send ({
111+ "cmd" : "connect_points" ,
112+ "args" :{
113+ "pos1" :(guess .x , guess .y ),
114+ "pos2" :(self .res2 .x , self .res2 .y ),
115+ "dashed" :True ,
116+ "color" :"#383c49"
117+ }
118+ })
100119
101120class Cluster :
102121 def __init__ (self , title = None , multi_pipe = None ):
@@ -152,9 +171,10 @@ def get_radius(self):
152171
153172 # Display the cluster on the UI
154173 def display (self , ghost = False ):
155- # print("cluster display")
174+ print ("cluster display" )
156175 if self .multi_pipe is None :
157176 return
177+ print ("cluster display 2" )
158178 if self .pure is False :
159179 self .getRadius ()
160180 for p in self ._points :
@@ -163,24 +183,27 @@ def display(self, ghost=False):
163183 "args" :{
164184 "x" : p .x ,
165185 "y" : p .y ,
166- "r" : 2 ,
186+ "r" : 0. 2 ,
167187 "dashed" : False ,
168188 "outline" : "" ,
169189 "fill" :"red"
170190 }
171191 }
172192 if ghost is True :
173- point_obj ['args' ]['fill' ] = "#4678a1"
193+ # point_obj['args']['fill'] = "#4678a1"
194+ point_obj ['args' ]['fill' ] = "orange"
195+ print ("cluster display send" )
174196 self .multi_pipe .send (point_obj )
175197 main_obj = {
176198 "cmd" :"draw_circle" ,
177199 "args" :{
178200 "x" : self .center .x ,
179201 "y" : self .center .y ,
180202 "r" : self .radius ,
181- "dashed" : False ,
203+ "dashed" : True ,
182204 "outline" : "#383c49" ,
183- "fill" :""
205+ "fill" :"" ,
206+ "width" :1
184207 }
185208 }
186209 if ghost is False :
0 commit comments