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

Class RemoveHBondCommand

source code

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

RemoveHBondCommand allows user to remove hydrogen bonds between specified
    atoms.
   
Package : Pmv
   
Module  : hbondCommands
   
Class   : RemoveHBondCommand
   
Command : removeHBond
   
Synopsis:

        None<-removeHBond(atom1, accAt)
   
Required Arguments:
        
        atom1 --- donAt or hAt of bond

        accAt --- accAt of bond 
    



Instance Methods [hide private]
  setupUndoBefore(self, atom1, atom2)
This method builds the self.undoCmds string.
  __call__(self, atom1, accAt, **kw)
None<-removeHBond(atom1, accAt)
  doit(self, atom1, accAt)
virtual method.

Inherited from mvCommand.MVCommand: __init__, 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, showForm, tkCb, updateGeom, warningMsg


Class Variables [hide private]

Inherited from ViewerFramework.VFCommand.Command: negateKw, objArgOnly


Method Details [hide private]

setupUndoBefore(self, atom1, atom2)

source code 
This method builds the self.undoCmds string. This method should have the same signature than the __call__. When this string is executed it should undo the actions of this command. This string will be appended to the undoCmdStack list if the command is successfuly carried out. This method handles only commands with the negateKw. Other commands have to overwrite it.
Overrides: ViewerFramework.VFCommand.Command.setupUndoBefore
(inherited documentation)

__call__(self, atom1, accAt, **kw)
(Call operator)

source code 

None<-removeHBond(atom1, accAt)

atom1 --- donAt or hAt of bond

accAt --- accAt of bond
Overrides: ViewerFramework.VFCommand.Command.__call__

doit(self, atom1, accAt)

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