コード例 #1
0
ファイル: pixelinfoplugin.py プロジェクト: song2001/OOF2
 def update_thread(self, where):
     debug.subthreadTest()
     microstructure = self.toolbox.findMicrostructure()
     if microstructure and where is not None:
         mscntxt = ooflib.common.microstructure.getMSContextFromMS(
             microstructure)
         msname = microstructure.name()
         mscntxt.begin_reading()
         try:
             names = pixelgroup.pixelGroupNames(microstructure, where)
         finally:
             mscntxt.end_reading()
         grpnames = '\n'.join(names)
     else:
         msname = '(No microstructure)'
         grpnames = ''
     mainthread.runBlock(self.reallyupdate, (msname, grpnames))
コード例 #2
0
ファイル: pixelinfoplugin.py プロジェクト: anilkunwar/OOF2
 def update_thread(self, where):
     debug.subthreadTest()
     microstructure = self.toolbox.findMicrostructure()
     if microstructure and where is not None:
         mscntxt = ooflib.common.microstructure.getMSContextFromMS(
             microstructure)
         msname = microstructure.name()
         mscntxt.begin_reading()
         try:
             names = pixelgroup.pixelGroupNames(microstructure, where)
         finally:
             mscntxt.end_reading()
         grpnames = '\n'.join(names)
     else:
         msname = '(No microstructure)'
         grpnames = ''
     mainthread.runBlock(self.reallyupdate, (msname, grpnames))
コード例 #3
0
ファイル: pixelinfoplugin.py プロジェクト: pk-organics/OOF3D
 def grpdestroy(self, group, ms_name):
     microstructure = self.toolbox.findMicrostructure()
     if microstructure and microstructure.name() == ms_name:
         self.update(self.toolbox.currentPixel())
コード例 #4
0
ファイル: pixelinfoplugin.py プロジェクト: pk-organics/OOF3D
 def grpschngd(self, ms_name):
     microstructure = self.toolbox.findMicrostructure()
     if microstructure and microstructure.name() == ms_name:
         self.update(self.toolbox.currentPixel())
コード例 #5
0
ファイル: pixelinfoplugin.py プロジェクト: pk-organics/OOF3D
 def grpchanged(self, group, ms_name):
     microstructure = self.toolbox.findMicrostructure()
     if microstructure and microstructure.name() == ms_name:
         if group.name() in microstructure.groupNames():
             self.update(self.toolbox.currentPixel())
コード例 #6
0
ファイル: pixelinfoplugin.py プロジェクト: anilkunwar/OOF2
 def grpdestroy(self, group, ms_name):
     microstructure = self.toolbox.findMicrostructure()
     if microstructure and microstructure.name() == ms_name:
         self.update(self.toolbox.currentPixel())                
コード例 #7
0
ファイル: pixelinfoplugin.py プロジェクト: anilkunwar/OOF2
 def grpschngd(self, ms_name):
     microstructure = self.toolbox.findMicrostructure()
     if microstructure and microstructure.name() == ms_name:
         self.update(self.toolbox.currentPixel())
コード例 #8
0
ファイル: pixelinfoplugin.py プロジェクト: anilkunwar/OOF2
 def grpchanged(self, group, ms_name):
     microstructure = self.toolbox.findMicrostructure()
     if microstructure and microstructure.name() == ms_name:
         if group.name() in microstructure.groupNames():
             self.update(self.toolbox.currentPixel())