Package Pmv :: Module editCommands :: Class MergeNPHsCommand
[hide private]
[frames] | no frames]

Class MergeNPHsCommand

source code

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

This class merges non-polar hydrogens and the carbons to which they are attached. There are three parts to the process:the charge(s) of non-polar hydrogens are added to those their carbons the bond between the npH and its carbon is removed from the carbon's bonds the hydrogen atoms are removed. 
    
Package:Pmv
    
Module :editCommands
    
Class:MergeNPHsCommand
    
Command:mergeNPHS
    
Synopsis:

        None<---mergeNPHS(nodes, **kw)
    
Required Arguments:
    
        nodes --- TreeNodeSet holding the current selection
    



Instance Methods [hide private]
  __init__(self, func=None)
  __call__(self, nodes, **kw)
None <- mergeNPHS(nodes, **kw)
  doit(self, nodes, **kw)
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, onAddCmdToViewer, 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__

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

source code 

None <- mergeNPHS(nodes, **kw)

nodes --- TreeNodeSet holding the current selection
Overrides: ViewerFramework.VFCommand.Command.__call__

doit(self, nodes, **kw)

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