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

Class MeasureTorsionGUICommand

source code

ViewerFramework.VFCommand.Command --+            
                                    |            
                  mvCommand.MVCommand --+        
                                        |        
                       MeasureAtomCommand --+    
                                            |    
   ViewerFramework.VFCommand.ICOM --+       |    
                                    |       |    
                     mvCommand.MVICOM --+   |    
                                        |   |    
                     mvCommand.MVAtomICOM --+    
                                            |    
                            MeasureGUICommand --+
                                                |
                                               MeasureTorsionGUICommand
Known Subclasses:
setangleCommands.SetTorsionGUICommand

Label torsion between four atoms (color coded cyan) Accumulates picked atoms.Draws polygons and labels showing the torsion angle between groups of 4 selected atoms (color-coded cyan).Userpref 'measureTorsionSL' sets the 'snakeLength' which is how many torsion measureDisplays can be seen at the same time.When more than that number are measured, the first torsion measured is no longer labeled.
   
Package : Pmv
   
Module  : measureCommands
   
Class   : MeasureTorsionGUICommand
   
Command : measureTorsionGC
   
Synopsis:

        torsion/None<---measureTorsionGC(atoms)
   
Required Argument:
        
           atoms  --- the atom(s)
           
torsion --- returned when the number of atoms is a multiple of 4 
    



Instance Methods [hide private]
  __init__(self, func=None)
  onAddCmdToViewer(self)
method called when an instance of this command is added to the viewer.
  __call__(self, atoms, **kw)
torsion/None<-measureTorsionGC(atoms)
  doit(self, ats)
virtual method.
  update(self, forward=1, event=None)

Inherited from MeasureGUICommand: continuousUpdate_cb, guiCallback, initICOM, onRemoveObjectFromViewer, setLength, setLength_cb, setupUndoBefore, startICOM, stopICOM, undo, update_cb

Inherited from 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, 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: MeasureGUICommand.__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)

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

source code 

torsion/None<-measureTorsionGC(atoms)

atoms --- the atom(s)

torsion --- returned when the number of atoms is a multiple of 4
Overrides: ViewerFramework.VFCommand.Command.__call__

doit(self, ats)

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

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

source code 
None