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

Class MeasureAngle

source code

ViewerFramework.VFCommand.Command --+        
                  mvCommand.MVCommand --+    
                       MeasureAtomCommand --+

Compute the angle between atom1, atom2, atom3.All coordinates are Cartesian; result is in degrees.
Package : Pmv
Module  : measureCommands
Class   : MeasureAngle
Command : measureAngle

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

Instance Methods [hide private]
  angle(self, c1, c2, c3)
  doit(self, atom1, atom2, atom3)
virtual method.
  __call__(self, atom1, atom2, atom3, **kw)
float <- measureAngle(atom1, atom2, atom3 **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]

angle(self, c1, c2, c3)

source code 

doit(self, atom1, atom2, atom3)

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

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

source code 

float <- measureAngle(atom1, atom2, atom3 **kw)

atom1 --- first atom

atom2 --- second atom

atom3 --- third atom
Overrides: ViewerFramework.VFCommand.Command.__call__