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

Class MeasureDistanceCtrlGUICommand

source code

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

Accumulates picked atoms. Draws lines between pairs of selected atoms, labeled by distance (color-coded yellow).Userpref 'measureDistanceSL' sets the 'snakeLength' which is how many distance measures can be displayed at the same time.When more than that number are measured, the first distance measured is no longer labeled.
   
Package : Pmv
   
Module  : measureCommands
   
Class   : MeasureDistanceGUICommand
   
Command : measureDistanceGC
   
Synopsis:

        distance/None<---measureDistanceGC(atoms)
   
Required Argument:
        
           atoms --- atom(s)
    



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)
distance/None<---measureDistanceGC(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 

distance/None<---measureDistanceGC(atoms)

atoms --- atom(s)
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