Package Pmv :: Module setangleCommands :: Class SetTorsionGUICommand
[hide private]
[frames] | no frames]

Class SetTorsionGUICommand

source code

ViewerFramework.VFCommand.Command --+                
                                    |                
                  mvCommand.MVCommand --+            
                                        |            
       measureCommands.MeasureAtomCommand --+        
                                            |        
   ViewerFramework.VFCommand.ICOM --+       |        
                                    |       |        
                     mvCommand.MVICOM --+   |        
                                        |   |        
                     mvCommand.MVAtomICOM --+        
                                            |        
            measureCommands.MeasureGUICommand --+    
                                                |    
         measureCommands.MeasureTorsionGUICommand --+
                                                    |
                                                   SetTorsionGUICommand

Instance Methods [hide private]
  guiCallback(self)
  onAddCmdToViewer(self)
  onRemoveObjectFromViewer(self, mol)
  __call__(self, atoms, angle=None, **kw)
torsion/None<-setTorsionGC(atoms, angle=None) the torsion is returned when the number of atoms is a multiple of 4
  doit(self, ats, angle)
  update(self, forward=1, event=None)
  transformCoords(self, deltaAngle)
deltaAngle is NOW not final angle wanted but relative
  slideCallback(self, eventval)
  rdSet(self, event=None)
  setupUndoBefore(self, ats, angle)
This method builds the self.undoCmds string.
  setupUndoAfter(self, ats, angle, **kw)
A chance to modify self.undoCmds after the command was carried out
  Accept_cb(self)
  Done_cb(self)
  startICOM(self)
gets called every time this command is about to be run becuase of a picking event.
  stopICOM(self)
gets called when this command stops being bound to picking here one should withdraw forms mainly
  repeat_transTors(self, event=None)
  new_Tors(self, event=0)
  updateHistory(self)
1: call TorsionHistory.getTorsion: make a new TorsionAngle or add current angle to angleList 2: put TA.name_string into ListBox 3: best if insert a tuple (string to be displayed, item itself) 4: adjust size with self.historyList.configure(height=self.[].size) 5: limit overall size to 4
  HLCommand(self, event=None)
double-clicking selection in listbox causes curselection to be picked...
  getAngList(self, event=None)
  stepBack(self, event=None)
  startOver(self, event=None)
  resetAngle(self, thisTA, event=None)
  resetAll(self, event=None)
  buildForm(self)
  mouseUp(self, event=None)

Inherited from measureCommands.MeasureTorsionGUICommand: __init__

Inherited from measureCommands.MeasureGUICommand: continuousUpdate_cb, initICOM, setLength, setLength_cb, undo, update_cb

Inherited from measureCommands.MeasureAtomCommand: getTransformedCoords, vvmult

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, showForm, tkCb, updateGeom, warningMsg

Inherited from mvCommand.MVAtomICOM: getObjects


Class Variables [hide private]

Inherited from ViewerFramework.VFCommand.Command: negateKw, objArgOnly


Method Details [hide private]

guiCallback(self)

source code 
None
Overrides: measureCommands.MeasureGUICommand.guiCallback

onAddCmdToViewer(self)

source code 
None
Overrides: measureCommands.MeasureTorsionGUICommand.onAddCmdToViewer

onRemoveObjectFromViewer(self, mol)

source code 
None
Overrides: measureCommands.MeasureGUICommand.onRemoveObjectFromViewer

__call__(self, atoms, angle=None, **kw)
(Call operator)

source code 
torsion/None<-setTorsionGC(atoms, angle=None) the torsion is returned when the number of atoms is a multiple of 4
Overrides: measureCommands.MeasureTorsionGUICommand.__call__

doit(self, ats, angle)

source code 
None
Overrides: measureCommands.MeasureTorsionGUICommand.doit

update(self, forward=1, event=None)

source code 
None
Overrides: measureCommands.MeasureTorsionGUICommand.update

transformCoords(self, deltaAngle)

source code 
deltaAngle is NOW not final angle wanted but relative

slideCallback(self, eventval)

source code 
None

rdSet(self, event=None)

source code 
None

setupUndoBefore(self, ats, angle)

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: measureCommands.MeasureGUICommand.setupUndoBefore

setupUndoAfter(self, ats, angle, **kw)

source code 
A chance to modify self.undoCmds after the command was carried out
Overrides: ViewerFramework.VFCommand.Command.setupUndoAfter
(inherited documentation)

Accept_cb(self)

source code 
None

Done_cb(self)

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: measureCommands.MeasureGUICommand.startICOM

stopICOM(self)

source code 
gets called when this command stops being bound to picking here one should withdraw forms mainly
Overrides: measureCommands.MeasureGUICommand.stopICOM

repeat_transTors(self, event=None)

source code 
None

new_Tors(self, event=0)

source code 
None

updateHistory(self)

source code 
1: call TorsionHistory.getTorsion: make a new TorsionAngle or add current angle to angleList 2: put TA.name_string into ListBox 3: best if insert a tuple (string to be displayed, item itself) 4: adjust size with self.historyList.configure(height=self.[].size) 5: limit overall size to 4

HLCommand(self, event=None)

source code 
double-clicking selection in listbox causes curselection to be picked... 1:self.atomList set to atoms of curselection 2:self.mov_atoms set to atoms of curselection 3:self.selAtom[1-4].Set(vertices=atoms.coords) 4:reset entry +slider and init_bondAngle etc 5.add current angle to selection's.angleList

getAngList(self, event=None)

source code 
None

stepBack(self, event=None)

source code 
None

startOver(self, event=None)

source code 
None

resetAngle(self, thisTA, event=None)

source code 
None

resetAll(self, event=None)

source code 
None

buildForm(self)

source code 
None

mouseUp(self, event=None)

source code 
None