Package Pmv :: Module deleteCommands :: Class DeleteAtomSet
[hide private]
[frames] | no frames]

Class DeleteAtomSet

source code

ViewerFramework.VFCommand.Command --+    
                                    |    
                  mvCommand.MVCommand --+
                                        |
                                       DeleteAtomSet
Known Subclasses:
DeleteHydrogens

Command to remove an AtomSet from the MoleculeViewer
    
Package : Pmv
    
Module  : deleteCommands
    
Class   : DeleteAtomSet
    
Command : deleteAtomSet
    
Synopsis:

        None<---deleteAtomSet(atoms, **kw)

    
Required Arguments:

        atoms --- AtomSet to be deleted.

    



Instance Methods [hide private]
  __init__(self, func=None)
  onAddCmdToViewer(self)
method called when an instance of this command is added to the viewer.
  guiCallback(self, event=None)
called each time the 'Delete AtomSet' button is pressed
  continue_cb(self, ats)
  cancel_cb(self)
  __call__(self, atoms, **kw)
None <- deleteAtomSet(atoms, **kw)
  doit(self, ats)
Function to delete all the references to each atom of a AtomSet.
  removeHBond(self, b)

Inherited from mvCommand.MVCommand: 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)

guiCallback(self, event=None)

source code 
called each time the 'Delete AtomSet' button is pressed
Overrides: mvCommand.MVCommand.guiCallback

continue_cb(self, ats)

source code 
None

cancel_cb(self)

source code 
None

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

source code 

None <- deleteAtomSet(atoms, **kw)

atoms: AtomSet to be deleted.
Overrides: ViewerFramework.VFCommand.Command.__call__

doit(self, ats)

source code 
Function to delete all the references to each atom of a AtomSet.
Overrides: ViewerFramework.VFCommand.Command.doit

removeHBond(self, b)

source code 
None