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

Class MergeLonePairsCommand

source code

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

This class merges lone-pairs and the sulfur atoms to which they are attached.There are three parts to the process:the charges of lone-pairs, if any, are added to those of the sulfurs the bond between the lone-pair and its sulfur is removed from the sulfur's bonds the lone-pair 'atoms' are deleted
    
Package:Pmv
    
Module :editCommands
    
Class:MergeLonePairsCommand
    
Command:mergeLPS
    
Synopsis:

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

    NB: the lone pairs are identified by these criteria:
    
the element field of the lone pair 'atom' is 'Xx' and its name has a 'L'
in the first or second position.
    



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