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

Class MeasureDistance

source code

ViewerFramework.VFCommand.Command --+        
                                    |        
                  mvCommand.MVCommand --+    
                                        |    
                       MeasureAtomCommand --+
                                            |
                                           MeasureDistance
Known Subclasses:
setangleCommands.SetQuaternion, setangleCommands.SetTranslation

Computes the distance between atom1, atom2, atom3.All coordinates are Cartesian; result is in Angstrom.
   
Package : Pmv
   
Module  : measureCommands
   
Class   : MeasureDistance
   
Command : measureDistance
   
Synopsis:

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



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

doit(self, atom1, atom2)

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

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

source code 

float <--- measureDistance(atom1, atom2, **kw)

atom1 --- first atom

atom2 --- second atom
Overrides: ViewerFramework.VFCommand.Command.__call__