Package Pmv :: Module hbondCommands :: Class GetHydrogenBondDonors
[hide private]
[frames] | no frames]

Class GetHydrogenBondDonors

source code

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

This class allows user to get AtomSets of sp2 hydridized and sp3 hybridized hydrogenBond Donors able.
   
Package : Pmv
   
Module  : bondsCommands
   
Class   : GetHydrogenBondDonors
   
Command :getHBDonors 
   
Synopsis:

        sp2Donors, sp3Donors <- getHBDonors(nodes, donorList, **kw)
   
Required Arguments:
    
   nodes ---
   donorList ---
    



Instance Methods [hide private]
  __init__(self, func=None)
  onAddCmdToViewer(self)
method called when an instance of this command is added to the viewer.
  __call__(self, nodes, donorList=allDonors, **kw)
sp2Donors, sp3Donors <- getHBDonors(nodes, donorList, **kw)
  checkForPossibleH(self, ats, blen)
  doit(self, ats, donorList)
virtual method.

Inherited from mvCommand.MVCommand: guiCallback, 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]

__init__(self, func=None)
(Constructor)

source code 
None
Overrides: mvCommand.MVCommand.__init__

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, nodes, donorList=allDonors, **kw)
(Call operator)

source code 
sp2Donors, sp3Donors <- getHBDonors(nodes, donorList, **kw)
Overrides: ViewerFramework.VFCommand.Command.__call__

checkForPossibleH(self, ats, blen)

source code 
None

doit(self, ats, donorList)

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