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

Class AddHBondHydrogens

source code

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

This command adds hydrogen atoms to preexisting hydrogen bonds
    
Package : Pmv
   
Module  : hbondCommands
   
Class   : AddHBondHydrogens
   
Command : addHBondHs
   
Synopsis:

    newHs <- addHBondHs(nodes, **kw):
   
Required Arguments:
        
            nodes --- atoms 

            newHs are new atoms, added to hbond.donAt

    



Instance Methods [hide private]
  __init__(self, func=None)
  onAddCmdToViewer(self)
method called when an instance of this command is added to the viewer.
  dist(self, c1, c2)
  chooseH(self, at, accAt)
  doit(self, ats, renumber=1)
virtual method.
  __call__(self, nodes, **kw)
newHs <--- addHBondHs(nodes, **kw)

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)

dist(self, c1, c2)

source code 
None

chooseH(self, at, accAt)

source code 
None

doit(self, ats, renumber=1)

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

__call__(self, nodes, **kw)
(Call operator)

source code 

newHs <--- addHBondHs(nodes, **kw)

nodes --- atoms

newHs are new atoms, added to hbond.donAt
Overrides: ViewerFramework.VFCommand.Command.__call__