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

Class MergeSetsCommand

source code

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

This class allows the user to merge two sets into one. 
    
Package:Pmv
    
Module :editCommands
    
Class:MergeSetsCommand
    
Command:mergeSets
    
Synopsis:

        None <- mergeSets(set1, set2, **kw)
    
Required Arguments:

        set1 --- first set
        
set2 --- second set
One by one items in the first set adopt children of items of the second set

    



Instance Methods [hide private]
  updateAllAtoms(self, mols, negate)
  __call__(self, set1, set2, **kw)
removedItems <- mergeSets(set1, set2, **kw)
  doit(self, set1, set2, **kw)
virtual method.
  guiCallback(self)
Default callback function called by the gui

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, 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]

updateAllAtoms(self, mols, negate)

source code 
None

__call__(self, set1, set2, **kw)
(Call operator)

source code 

removedItems <- mergeSets(set1, set2, **kw)

set1 --- first set

set2 --- second set
Overrides: ViewerFramework.VFCommand.Command.__call__

doit(self, set1, set2, **kw)

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

guiCallback(self)

source code 
Default callback function called by the gui
Overrides: mvCommand.MVCommand.guiCallback