parameters: (self)
docstring: Control the Gold/Diff VTK windows.
docstring_summary: Control the Gold/Diff VTK windows.
docstring_tokens: Control the Gold / Diff VTK windows .
function: def updateOptions(self):
          """
          Control the Gold/Diff VTK windows.
          """
          value = mooseutils.gold(self._filename) is not None
          self.setVisible(value)
          self.setEnabled(value)
          if not value:
              self.GoldToggle.setChecked(False)
              self.DiffToggle.setChecked(False)
  
          # Gold window toggle
          gold = self.GoldToggle.isChecked() if self.GoldVTKWindow else False
          goldname = mooseutils.gold(self._filename)
          if gold and (not self.GoldVTKWindow.isVisible()):
              self.GoldVTKWindow.show()
              self.GoldVTKWindow.onSetFilename(goldname)
              self.GoldVTKWindow.onSetVariable(self._variable)
              self.GoldVTKWindow.onSetComponent(self._component)
              self.GoldVTKWindow.onWindowRequiresUpdate()
          elif (not gold) and self.GoldVTKWindow and self.GoldVTKWindow.isVisible():
              self.GoldVTKWindow.hide()
  
          # Diff Window toggle
          diff = self.DiffToggle.isChecked() if self._exodiff else False
          if diff and (not self.DiffVTKWindow.isVisible()):
  
              diffname = self._filename + '.diff'
              cmd = [self._exodiff, '-map', '-F', '1e-10', '-t', '5.5e-06',
                     os.path.abspath(self._filename),
                     os.path.abspath(goldname),
                     os.path.abspath(diffname)]
              subprocess.call(cmd)
  
              self.DiffVTKWindow.show()
              self.DiffVTKWindow.onSetFilename(diffname)
              self.DiffVTKWindow.onSetVariable(self._variable)
              self.DiffVTKWindow.onSetComponent(self._component)
              self.DiffVTKWindow.onWindowRequiresUpdate()
  
          elif (not diff) and (self.DiffVTKWindow is not None) and self.DiffVTKWindow.isVisible():
              self.DiffVTKWindow.hide()
  
          # Camera linkage
          link = self.LinkToggle.isChecked()
          if link:
              if gold and (self._gold_observer is None):
                  self._gold_observer = self.GoldVTKWindow._window.getVTKInteractor().AddObserver("RenderEvent", self._callbackGoldRenderEvent)
  
              if diff and (self._diff_observer is None):
                  self._diff_observer = self.DiffVTKWindow._window.getVTKInteractor().AddObserver("RenderEvent", self._callbackDiffRenderEvent)
  
          else:
              if self._gold_observer is not None:
                  self.GoldVTKWindow._window.getVTKInteractor().RemoveObserver(self._gold_observer)
                  self._gold_observer = None
  
              if self._diff_observer is not None:
                  self.DiffVTKWindow._window.getVTKInteractor().RemoveObserver(self._diff_observer)
                  self._diff_observer = None
function_tokens: def updateOptions ( self ) : value = mooseutils . gold ( self . _filename ) is not None self . setVisible ( value ) self . setEnabled ( value ) if not value : self . GoldToggle . setChecked ( False ) self . DiffToggle . setChecked ( False ) # Gold window toggle gold = self . GoldToggle . isChecked ( ) if self . GoldVTKWindow else False goldname = mooseutils . gold ( self . _filename ) if gold and ( not self . GoldVTKWindow . isVisible ( ) ) : self . GoldVTKWindow . show ( ) self . GoldVTKWindow . onSetFilename ( goldname ) self . GoldVTKWindow . onSetVariable ( self . _variable ) self . GoldVTKWindow . onSetComponent ( self . _component ) self . GoldVTKWindow . onWindowRequiresUpdate ( ) elif ( not gold ) and self . GoldVTKWindow and self . GoldVTKWindow . isVisible ( ) : self . GoldVTKWindow . hide ( ) # Diff Window toggle diff = self . DiffToggle . isChecked ( ) if self . _exodiff else False if diff and ( not self . DiffVTKWindow . isVisible ( ) ) : diffname = self . _filename + '.diff' cmd = [ self . _exodiff , '-map' , '-F' , '1e-10' , '-t' , '5.5e-06' , os . path . abspath ( self . _filename ) , os . path . abspath ( goldname ) , os . path . abspath ( diffname ) ] subprocess . call ( cmd ) self . DiffVTKWindow . show ( ) self . DiffVTKWindow . onSetFilename ( diffname ) self . DiffVTKWindow . onSetVariable ( self . _variable ) self . DiffVTKWindow . onSetComponent ( self . _component ) self . DiffVTKWindow . onWindowRequiresUpdate ( ) elif ( not diff ) and ( self . DiffVTKWindow is not None ) and self . DiffVTKWindow . isVisible ( ) : self . DiffVTKWindow . hide ( ) # Camera linkage link = self . LinkToggle . isChecked ( ) if link : if gold and ( self . _gold_observer is None ) : self . _gold_observer = self . GoldVTKWindow . _window . getVTKInteractor ( ) . AddObserver ( "RenderEvent" , self . _callbackGoldRenderEvent ) if diff and ( self . _diff_observer is None ) : self . _diff_observer = self . DiffVTKWindow . _window . getVTKInteractor ( ) . AddObserver ( "RenderEvent" , self . _callbackDiffRenderEvent ) else : if self . _gold_observer is not None : self . GoldVTKWindow . _window . getVTKInteractor ( ) . RemoveObserver ( self . _gold_observer ) self . _gold_observer = None if self . _diff_observer is not None : self . DiffVTKWindow . _window . getVTKInteractor ( ) . RemoveObserver ( self . _diff_observer ) self . _diff_observer = None