bfaca5dcfc55113e3f8fd3134e21ae9567a4097c,invesalius/data/viewer_slice.py,Viewer,UpdateCanvas,#Viewer#,1380
Before Change
self.interactor.Render()
def UpdateCanvas(self, evt=None):
for (m, mr) in self.measures.get(self.orientation, self.slice_data.number):
try:
self.canvas.draw_list.remove(mr)
except ValueError:
pass
for (m, mr) in self.measures.get(self.orientation, self.slice_data.number):
if m.visible:
self.canvas.draw_list.append(mr)
After Change
// Removing all measures
for i in cp_draw_list:
if not isinstance(i, (measures.AngularMeasure, measures.LinearMeasure)):
self.canvas.draw_list.append(i)
// Then add all needed measures
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: invesalius/invesalius3
Commit Name: bfaca5dcfc55113e3f8fd3134e21ae9567a4097c
Time: 2016-08-12
Author: totonixsame@gmail.com
File Name: invesalius/data/viewer_slice.py
Class Name: Viewer
Method Name: UpdateCanvas
Project Name: comic/grand-challenge.org
Commit Name: b63886addf175201fe2d284c5267e232c670d3bf
Time: 2018-12-03
Author: jamesmeakin@gmail.com
File Name: app/grandchallenge/core/contextprocessors/contextprocessors.py
Class Name:
Method Name: comic_site
Project Name: comic/grand-challenge.org
Commit Name: 1a61ba3655e575cbf4d20190182654cb677bce9c
Time: 2020-06-05
Author: 12661555+jmsmkn@users.noreply.github.com
File Name: app/grandchallenge/serving/tasks.py
Class Name:
Method Name: create_download