Package Pmv :: Module visionCommands :: Class ExportSets
[hide private]
[frames] | no frames]

Class ExportSets

source code

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

Command to export PMV sets (sets defined through the selection command) into Vision. Each set is exported as a Vision node, added to the Pmv Library into the category Molecules.

Instance Methods [hide private]
  __init__(self)
  onAddNewCmd(self, cmd)
method called whenever a new command is added to the viewer
  doit(self, sets)
virtual method.
  __call__(self, sets, *args, **kw)
export sets ( sets )
  guiCallback(self)
  buildFormDescr(self, formName)
descr <- buildFormDescr(self, formName): this virtual method is implemented in the classes derived from Command.

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, onAddCmdToViewer, 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__

onAddNewCmd(self, cmd)

source code 
method called whenever a new command is added to the viewer
Overrides: ViewerFramework.VFCommand.Command.onAddNewCmd
(inherited documentation)

doit(self, sets)

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

__call__(self, sets, *args, **kw)
(Call operator)

source code 
export sets ( sets )
Overrides: ViewerFramework.VFCommand.Command.__call__

guiCallback(self)

source code 
None
Overrides: mvCommand.MVCommand.guiCallback

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)