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

Class loadVUFile

source code

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

Command to a load a VU file to display

Instance Methods [hide private]
  __init__(self)
  onAddCmdToViewer(self)
method called when an instance of this command is added to the viewer.
  buildFormDescr(self, formName)
descr <- buildFormDescr(self, formName): this virtual method is implemented in the classes derived from Command.
  guiCallback(self, event=None, *args, **kw)
Default callback function called by the gui
  loadFile(self, filename)
load the vector pts and color from a file .vu
  doit(self, vectName, filelist)
virtual method.
  __call__(self, vectName, filelist, **kw)
None <- loadVUFile(vectName, filelist,**kw) vectName: Name of the vectobj filelist :list of file *.vu holding the coordinate a the vector to display

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)

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)

guiCallback(self, event=None, *args, **kw)

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

loadFile(self, filename)

source code 
load the vector pts and color from a file .vu

doit(self, vectName, filelist)

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

__call__(self, vectName, filelist, **kw)
(Call operator)

source code 
None <- loadVUFile(vectName, filelist,**kw) vectName: Name of the vectobj filelist :list of file *.vu holding the coordinate a the vector to display
Overrides: ViewerFramework.VFCommand.Command.__call__