Package Pmv :: Module repairCommands :: Class CheckForCloseContactsGUICommand
[hide private]
[frames] | no frames]

Class CheckForCloseContactsGUICommand

source code

ViewerFramework.VFCommand.Command --+    
                                    |    
                  mvCommand.MVCommand --+
                                        |
                                       CheckForCloseContactsGUICommand

This class provides Graphical User Interface to CheckForCloseContactsCommand which is invoked by it
   
Package : Pmv
   
Module  : repairCommands
   
Class   : CheckForCloseContactsGUICommand
   
Command : checkForCloseContactsGC
   
Synopsis:

        None <--- checkForCloseContactsGC(keynodes,checkNodes, percentCutoff,distanceCutoff, distSelectorString,**kw)
   
Required Arguments:

        keyNodes --- atoms to use as reference points
        
checkNodes --- atoms to check to see if close to keyNodes
   
Optional Arguments:
        
        percentCutoff --- vdw scaling factor
        
distanceCutoff --- distance for DistanceSelector
        
distSelectorString --- name of class of selector to use
        
constant --- possible constant value to be added into selection

close is defined as interatomic distance< percentCutoff*(key_radius+check_radius) where the radii depend on atom element .
    



Instance Methods [hide private]
  onRemoveObjFromViewer(self, obj)
  onAddCmdToViewer(self)
method called when an instance of this command is added to the viewer.
  __call__(self, keyNodes, checkNodes, percentCutoff=1.0, distanceCutoff=3.0, distSelectorString='CloserThanVDWSelector', constant=0., **kw)
None <--- checkForCloseContactsGC(keynodes,checkNodes, percentCutoff,distanceCutoff, distSelectorString,**kw) Required Arguments: keyNodes --- atoms to use as reference points checkNodes --- atoms to check to see if close to keyNodes Optional Arguments: percentCutoff --- vdw scaling factor distanceCutoff --- distance for DistanceSelector distSelectorString --- name of class of selector to use constant --- possible constant value to be added into selection for vdw selectors ,close is defined as interatomic distance< percentCutoff*(key_radius+check_radius) where the radii depend on atom element.
  doit(self, keyNodes, checkNodes, percentCutoff, distanceCutoff, distSelectorString, constant)
virtual method.
  cleanupDicts(self, atDict, distDict)
  dismiss_cb(self, event=None)
  setupDisplay(self, lineVerts, faces, labelVerts, labelStrs, colors)
  save_sets(self, event=None)
  showAllCloseContacts(self, atDict, distDict, event=None)
  showCloseContacts(self, atDict, distDict, event=None)
  buildForm(self)
  setDistSelector_cb(self, event=None)
  update_old_values(self)
  ok_cb(self, event=None)
  cancel_cb(self, event=None)
  guiCallback(self)

Inherited from mvCommand.MVCommand: __init__, strArg

Inherited from mvCommand.MVCommand (private): _strArg

Inherited from ViewerFramework.VFCommand.Command: __repr__, addCallbackAfter, addCallbackBefore, addUndoCall, afterDoit, beforeDoit, buildFormDescr, buildLogArgList, checkDependencies, cleanup, customizeGUI, doitWrapper, getArguments, getHelp, getLastUsedValues, getLogArgs, getValNamedArgs, log, logString, onAddNewCmd, onCmdRun, setLastUsedValues, setupUndoAfter, setupUndoBefore, showForm, tkCb, updateGeom, warningMsg


Class Variables [hide private]

Inherited from ViewerFramework.VFCommand.Command: negateKw, objArgOnly


Method Details [hide private]

onRemoveObjFromViewer(self, obj)

source code 
None

onAddCmdToViewer(self)

source code 
method called when an instance of this command is added to the viewer. This enable viewer-addition time initializations
Overrides: ViewerFramework.VFCommand.Command.onAddCmdToViewer
(inherited documentation)

__call__(self, keyNodes, checkNodes, percentCutoff=1.0, distanceCutoff=3.0, distSelectorString='CloserThanVDWSelector', constant=0., **kw)
(Call operator)

source code 
None <--- checkForCloseContactsGC(keynodes,checkNodes, percentCutoff,distanceCutoff, distSelectorString,**kw)
        
Required Arguments:

            keyNodes --- atoms to use as reference points
            
checkNodes --- atoms to check to see if close to keyNodes
        
Optional Arguments:

            percentCutoff --- vdw scaling factor
            
distanceCutoff --- distance for DistanceSelector
            
distSelectorString --- name of class of selector to use
            
constant --- possible constant value to be added into selection
            
for vdw selectors ,close is defined as interatomic distance< percentCutoff*(key_radius+check_radius) where the radii depend on atom element.

Overrides: ViewerFramework.VFCommand.Command.__call__

doit(self, keyNodes, checkNodes, percentCutoff, distanceCutoff, distSelectorString, constant)

source code 
virtual method. Has to be implemented by the sub classes
Overrides: ViewerFramework.VFCommand.Command.doit
(inherited documentation)

cleanupDicts(self, atDict, distDict)

source code 
None

dismiss_cb(self, event=None)

source code 
None

setupDisplay(self, lineVerts, faces, labelVerts, labelStrs, colors)

source code 
None

save_sets(self, event=None)

source code 
None

showAllCloseContacts(self, atDict, distDict, event=None)

source code 
None

showCloseContacts(self, atDict, distDict, event=None)

source code 
None

buildForm(self)

source code 
None

setDistSelector_cb(self, event=None)

source code 
None

update_old_values(self)

source code 
None

ok_cb(self, event=None)

source code 
None

cancel_cb(self, event=None)

source code 
None

guiCallback(self)

source code 
None
Overrides: mvCommand.MVCommand.guiCallback