Package Pmv :: Module superimposeCommandsNew :: Class SuperimposeAtomsGUICommand
[hide private]
[frames] | no frames]

Class SuperimposeAtomsGUICommand

source code

ViewerFramework.VFCommand.Command --+        
                                    |        
                  mvCommand.MVCommand --+    
                                        |    
                       SuperimposeCommand --+
                                            |
   ViewerFramework.VFCommand.ICOM --+       |
                                    |       |
                     mvCommand.MVICOM --+   |
                                        |   |
                     mvCommand.MVAtomICOM --+
                                            |
                                           SuperimposeAtomsGUICommand



The SuperimposeAtomsGUICommand provides a GUI interface to the
SuperimposeAtomsCommand. This commands allows the user to create two sets
of atoms one reference and mobile of the same length by picking,
by string or using the alignment editor.
These two sets are then fed to the SuperimposeAtoms command.

- For now Only two 2 sets of Atoms belonging to a ref molecule and
  a mobile molecule can be superimposed simultaneously.

- The command provides two way of defining those two sets of atoms:
  * By picking nodes 
  * By string:
  * Using the alignment editor



Instance Methods [hide private]
  __init__(self, func=None)
  onAddCmdToViewer(self)
method called when an instance of this command is added to the viewer.
  onRemoveObjectFromViewer(self, obj)
  initICOM(self, modifier)
gets called when the ICOM is registered using the set method of the interactiveCommandCaller.
  labelByName(self, pick)
  unlabelLevel(self, newLevel, oldLevel)
  stopICOM(self)
gets called when this command stops being bound to picking here one should withdraw forms mainly
  createNodesSets(self, refnodes=None, mobnodes=None)
  createPairs(self, refnames, mobnames, slice, choice)
  pick_cb(self)
  string_cb(self)
  setDefault(self, text)
  delete_cb(self)
  dismiss_cb(self)
  continuous_cb(self)
  reset_cb(self)
  superimpose_cb(self)
  add_cb(self)
  refremove_cb(self)
  mobremove_cb(self)
  refmoveup_cb(self)
  mobmoveup_cb(self)
  refmovedown_cb(self)
  mobmovedown_cb(self)
  guiCallback(self)
Default callback function called by the gui
  buildFormDescr(self, formName)
descr <- buildFormDescr(self, formName): this virtual method is implemented in the classes derived from Command.

Inherited from SuperimposeCommand: __call__, doit

Inherited from mvCommand.MVCommand: strArg

Inherited from mvCommand.MVCommand (private): _strArg

Inherited from ViewerFramework.VFCommand.Command: __repr__, addCallbackAfter, addCallbackBefore, addUndoCall, afterDoit, beforeDoit, buildLogArgList, checkDependencies, cleanup, customizeGUI, doitWrapper, getArguments, getHelp, getLastUsedValues, getLogArgs, getValNamedArgs, log, logString, onAddNewCmd, onCmdRun, setLastUsedValues, setupUndoAfter, setupUndoBefore, showForm, tkCb, updateGeom, warningMsg

Inherited from mvCommand.MVAtomICOM: getObjects

Inherited from ViewerFramework.VFCommand.ICOM: startICOM


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: SuperimposeCommand.onAddCmdToViewer

onRemoveObjectFromViewer(self, obj)

source code 
None

initICOM(self, modifier)

source code 
gets called when the ICOM is registered using the set method of the interactiveCommandCaller.
Overrides: ViewerFramework.VFCommand.ICOM.initICOM
(inherited documentation)

labelByName(self, pick)

source code 
None

unlabelLevel(self, newLevel, oldLevel)

source code 
None

stopICOM(self)

source code 
gets called when this command stops being bound to picking here one should withdraw forms mainly
Overrides: ViewerFramework.VFCommand.ICOM.stopICOM
(inherited documentation)

createNodesSets(self, refnodes=None, mobnodes=None)

source code 
None

createPairs(self, refnames, mobnames, slice, choice)

source code 
None

pick_cb(self)

source code 
None

string_cb(self)

source code 
None

setDefault(self, text)

source code 
None

delete_cb(self)

source code 
None

dismiss_cb(self)

source code 
None

continuous_cb(self)

source code 
None

reset_cb(self)

source code 
None

superimpose_cb(self)

source code 
None

add_cb(self)

source code 
None

refremove_cb(self)

source code 
None

mobremove_cb(self)

source code 
None

refmoveup_cb(self)

source code 
None

mobmoveup_cb(self)

source code 
None

refmovedown_cb(self)

source code 
None

mobmovedown_cb(self)

source code 
None

guiCallback(self)

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

buildFormDescr(self, formName)

source code 
descr <- buildFormDescr(self, formName): this virtual method is implemented in the classes derived from Command. This is where the inputFormDescr is created and the description of the widgets appended. If a command has several inputForm buildFormDescr should build all the inputFormDescr and you do a if / elif check to know which one to create. formName : string name of the form corresponding to this descr.
Overrides: ViewerFramework.VFCommand.Command.buildFormDescr
(inherited documentation)