Package Pmv :: Module sdCommands :: Class ReadTransformations
[hide private]
[frames] | no frames]

Class ReadTransformations

source code

ViewerFramework.VFCommand.Command --+    
                                    |    
                  mvCommand.MVCommand --+
                                        |
                                       ReadTransformations

This command is invoked everytime the Qlist Filename entryfield is invoked. If the Center Chooser checkbutton is on, the CenterChooser popup dialog will come up to allow the center of rotation to be defined before the transformation list is read in. If this is turned off, the center of rotation defaults to either the previous center (if readTransformations has been invoked previously for this molecule), or to the molecules center of gravity. readTransformations then reads in lines from the file, which have the format 'score tx ty tz rx ry rz theta rank'. These are converted into a list of raw transformations (needed for writing out the preferred list), and also a list of total transformations (which take into account the center of rotation)

Instance Methods [hide private]
  __call__(self, molName, fileName, center=None, **kw)
None <- commandName( *args, **kw)
  guiCallback(self)
Default callback function called by the gui
  doit(self, mol, fileName, center=None, **kw)
virtual method.

Inherited from mvCommand.MVCommand: __init__, 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]

__call__(self, molName, fileName, center=None, **kw)
(Call operator)

source code 
None <- commandName( *args, **kw)
Overrides: ViewerFramework.VFCommand.Command.__call__
(inherited documentation)

guiCallback(self)

source code 
Default callback function called by the gui
Overrides: mvCommand.MVCommand.guiCallback

doit(self, mol, fileName, center=None, **kw)

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