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

Class MeasureAngleGUICommand

source code

ViewerFramework.VFCommand.Command --+            
                                    |            
                  mvCommand.MVCommand --+        
                                        |        
                       MeasureAtomCommand --+    
                                            |    
   ViewerFramework.VFCommand.ICOM --+       |    
                                    |       |    
                     mvCommand.MVICOM --+   |    
                                        |   |    
                     mvCommand.MVAtomICOM --+    
                                            |    
                            MeasureGUICommand --+
                                                |
                                               MeasureAngleGUICommand

Accumulates picked atoms.Draws fans, lines and labels labelling the angle between trios of selected atoms (color-coded orange).Userpref 'measureAngleSL' sets the 'snakeLength' which is how many angle measureDisplays can be seen at the same time.When more than that number are measured, the first angle measured is no longer labeled.
   
Package : Pmv
   
Module  : measureCommands
   
Class   : MeasureAngleGUICommand
   
Command : measureAngleGC
   
Synopsis:

        angle/None<---measureAngleGC(atoms)
   
Required Argument:
        
        atoms --- atom(s)
        
angle --- returned when the number of atoms is a multiple of 3
    



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)
angle/None<---measureAngleGC(atoms)
  doit(self, ats)
virtual method.
  update(self, forward=1, event=None)
  normal(self, at0, at1, at2)

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 

angle/None<---measureAngleGC(atoms)

atoms --- atom(s)

angle --- returned when the number of atoms is a multiple of 3
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

normal(self, at0, at1, at2)

source code 
None