Package Pmv :: Module measureCommands :: Class MeasureGUICommand
[hide private]
[frames] | no frames]

Class MeasureGUICommand

source code

ViewerFramework.VFCommand.Command --+        
                                    |        
                  mvCommand.MVCommand --+    
                                        |    
                       MeasureAtomCommand --+
                                            |
   ViewerFramework.VFCommand.ICOM --+       |
                                    |       |
                     mvCommand.MVICOM --+   |
                                        |   |
                     mvCommand.MVAtomICOM --+
                                            |
                                           MeasureGUICommand
Known Subclasses:
MeasureTorsionGUICommand, MeasureAngleGUICommand, MeasureDistanceCtrlGUICommand, MeasureDistanceGUICommand

Base class for commands which provide measureCommands user-interface.Implements setLength_cb, userpref callback, setLength, guiCallback and stopICOM

Package : Pmv

Module : measureCommands

Class : MeasureGUICommand

Instance Methods [hide private]
  __init__(self, func=None)
  setLength_cb(self, name, oldval, newLength)
  continuousUpdate_cb(self, name, oldval, newval)
  update_cb(self, event=None)
  setLength(self, newLength)
  guiCallback(self, event=None)
  setupUndoBefore(self, ats)
This method builds the self.undoCmds string.
  undo(self, *args, **kw)
  onRemoveObjectFromViewer(self, mol)
  startICOM(self)
gets called every time this command is about to be run becuase of a picking event.
  initICOM(self, modifier)
gets called when the ICOM is registered using the set method of the interactiveCommandCaller.
  stopICOM(self)
gets called when this command stops being bound to picking here one should withdraw forms mainly

Inherited from MeasureAtomCommand: getTransformedCoords, vvmult

Inherited from mvCommand.MVCommand: strArg

Inherited from mvCommand.MVCommand (private): _strArg

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

Inherited from mvCommand.MVAtomICOM: getObjects


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__

setLength_cb(self, name, oldval, newLength)

source code 
None

continuousUpdate_cb(self, name, oldval, newval)

source code 
None

update_cb(self, event=None)

source code 
None

setLength(self, newLength)

source code 
None

guiCallback(self, event=None)

source code 
None
Overrides: mvCommand.MVCommand.guiCallback

setupUndoBefore(self, ats)

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)

undo(self, *args, **kw)

source code 
None

onRemoveObjectFromViewer(self, mol)

source code 
None

startICOM(self)

source code 
gets called every time this command is about to be run becuase of a picking event. It is called just before the Pick is converted into objects.
Overrides: ViewerFramework.VFCommand.ICOM.startICOM
(inherited documentation)

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)

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)