def draw(self, dc, f):
dc.SetPen(wx.Pen(RoiManager.get_color(), width=RoiManager.get_lw(), style=wx.SOLID))
if len(self.body)>1:
dc.DrawLines([f(*i) for i in self.body])
for i in [self.lt, (self.lt+self.rt)/2, self.rt]:
for j in [self.tp, (self.tp+self.bm)/2, self.bm]:
dc.DrawCircle(f(i,j),2)
评论列表
文章目录