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

Class MeasureTorsion

source code

ViewerFramework.VFCommand.Command --+        
                                    |        
                  mvCommand.MVCommand --+    
                                        |    
                       MeasureAtomCommand --+
                                            |
                                           MeasureTorsion
Known Subclasses:
setangleCommands.SetRelativeTorsion, setangleCommands.SetTorsion

Compute the torsion between atom1, atom2, atom3, atom4.All coordinates are Cartesian; result is in degrees.
   
Package : Pmv
   
Module  : measureCommands
   
Class   : MeasureTorsion
   
Command : measureTorsion
   
Synopsis:

        float <- measureTorsion(atom1, atom2, atom3, atom4, **kw)
   
Required Argument:
        
        atom1 --- first atom
        
atom2 --- second atom
        
atom3 --- third atom
        
atom4 --- fourth atom
    



Instance Methods [hide private]
  torsion(self, x1, x2, x3, x4)
Compute the torsion angle between x1, x2, x3, x4.
  doit(self, atom1, atom2, atom3, atom4)
virtual method.
  __call__(self, atom1, atom2, atom3, atom4, **kw)
float <--- measureTorsion(atom1, atom2, atom3, atom4, **kw)

Inherited from MeasureAtomCommand: getTransformedCoords, vvmult

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


Class Variables [hide private]

Inherited from ViewerFramework.VFCommand.Command: negateKw, objArgOnly


Method Details [hide private]

torsion(self, x1, x2, x3, x4)

source code 
Compute the torsion angle between x1, x2, x3, x4. All coordinates are cartesian; result is in degrees. Raises a ValueError if angle is not defined.

doit(self, atom1, atom2, atom3, atom4)

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

__call__(self, atom1, atom2, atom3, atom4, **kw)
(Call operator)

source code 

float <--- measureTorsion(atom1, atom2, atom3, atom4, **kw)

atom1 --- first atom

atom2 --- second atom

atom3 --- third atom

atom4 --- fourth atom
Overrides: ViewerFramework.VFCommand.Command.__call__