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:

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
        for (m, mr) in self.measures.get(self.orientation, self.slice_data.number):
            if m.visible:
                self.canvas.draw_list.append(mr)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

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: unitedstates/congress-legislators
Commit Name: 85697d0830bda6c8ef058aeaf4ff268c1d83c1ea
Time: 2014-11-24
Author: jt@occams.info
File Name: scripts/114th_congress.py
Class Name:
Method Name:


Project Name: data61/python-paillier
Commit Name: 72c3e4d08113608350d196bac824f502814fba2f
Time: 2018-01-24
Author: brian@thorne.link
File Name: docs/conf.py
Class Name:
Method Name: