0750b92cc7d3c7f266c908032a8e4b887dd76043,ilastik/applets/pixelClassification/pixelClassificationGui.py,PixelClassificationGui,onLabelColorChanged,#PixelClassificationGui#,488

Before Change


    def onLabelColorChanged(self):
        super( PixelClassificationGui, self ).onLabelColorChanged()
        labelColors = map( lambda l: (l.brushColor().red(), l.brushColor().green(), l.brushColor().blue()), self.labelListData )
        self.topLevelOperatorView.LabelColors.setValue( labelColors )
        
    def onPmapColorChanged(self):
        super( PixelClassificationGui, self ).onPmapColorChanged()
        pmapColors = map( lambda l: (l.pmapColor().red(), l.pmapColor().green(), l.pmapColor().blue()), self.labelListData )

After Change


        super( PixelClassificationGui, self ).onLabelColorChanged()
        f = lambda l: (l.brushColor().red(), l.brushColor().green(), l.brushColor().blue())
        labelColors = map(f, self.labelListData)
        oldColors = self.topLevelOperatorView.LabelColors.value
        result = _listReplace(oldColors, labelColors)
        self.topLevelOperatorView.LabelColors.setValue(result)

    def getNextPmapColor(self):
        
        Return a QColor to use for the next label.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


Project Name: ilastik/ilastik
Commit Name: 0750b92cc7d3c7f266c908032a8e4b887dd76043
Time: 2013-02-06
Author: kemal.eren@iwr.uni-heidelberg.de
File Name: ilastik/applets/pixelClassification/pixelClassificationGui.py
Class Name: PixelClassificationGui
Method Name: onLabelColorChanged


Project Name: ilastik/ilastik
Commit Name: 0750b92cc7d3c7f266c908032a8e4b887dd76043
Time: 2013-02-06
Author: kemal.eren@iwr.uni-heidelberg.de
File Name: ilastik/applets/pixelClassification/pixelClassificationGui.py
Class Name: PixelClassificationGui
Method Name: onPmapColorChanged


Project Name: ilastik/ilastik
Commit Name: 0750b92cc7d3c7f266c908032a8e4b887dd76043
Time: 2013-02-06
Author: kemal.eren@iwr.uni-heidelberg.de
File Name: ilastik/applets/pixelClassification/pixelClassificationGui.py
Class Name: PixelClassificationGui
Method Name: onLabelNameChanged