Package Pmv :: Module vectfieldCommands :: Class loadVect
[hide private]
[frames] | no frames]

Class loadVect

source code

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

Command to load a Vect field for a molecule.

Instance Methods [hide private]
  __init__(self)
  onAddCmdToViewer(self)
method called when an instance of this command is added to the viewer.
  doit(self, name, folderPath)
name,file
  __call__(self, name, folderPath, **kw)
None <- loadVect(nodes, file,**kw) name: name of the vect obj folderPath : Path to folder of *.vu
  onAddObjectToViewer(self, obj)
  createGeometries(self, name)
  buildFormDescr(self, formName)
descr <- buildFormDescr(self, formName): this virtual method is implemented in the classes derived from Command.
  entryValidate(self, text)
Method to validate the name of the msms surface.
  guiCallback(self, **kw)
Default callback function called by the gui

Inherited from mvCommand.MVCommand: strArg

Inherited from mvCommand.MVCommand (private): _strArg

Inherited from ViewerFramework.VFCommand.Command: __repr__, addCallbackAfter, addCallbackBefore, addUndoCall, afterDoit, beforeDoit, buildLogArgList, checkDependencies, cleanup, customizeGUI, doitWrapper, getArguments, getHelp, getLastUsedValues, getLogArgs, getValNamedArgs, log, logString, onAddNewCmd, onCmdRun, setLastUsedValues, setupUndoAfter, setupUndoBefore, showForm, tkCb, updateGeom, warningMsg


Class Variables [hide private]

Inherited from ViewerFramework.VFCommand.Command: negateKw, objArgOnly


Method Details [hide private]

__init__(self)
(Constructor)

source code 
None
Overrides: mvCommand.MVCommand.__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)

doit(self, name, folderPath)

source code 
name,file
Overrides: ViewerFramework.VFCommand.Command.doit

__call__(self, name, folderPath, **kw)
(Call operator)

source code 
None <- loadVect(nodes, file,**kw) name: name of the vect obj folderPath : Path to folder of *.vu
Overrides: ViewerFramework.VFCommand.Command.__call__

onAddObjectToViewer(self, obj)

source code 
None

createGeometries(self, name)

source code 
None

buildFormDescr(self, formName)

source code 
descr <- buildFormDescr(self, formName): this virtual method is implemented in the classes derived from Command. This is where the inputFormDescr is created and the description of the widgets appended. If a command has several inputForm buildFormDescr should build all the inputFormDescr and you do a if / elif check to know which one to create. formName : string name of the form corresponding to this descr.
Overrides: ViewerFramework.VFCommand.Command.buildFormDescr
(inherited documentation)

entryValidate(self, text)

source code 
Method to validate the name of the msms surface. This name will be used by other command to build Pmw widget so it can't contain an '_'.

guiCallback(self, **kw)

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