Package Pmv :: Module writeMsmsAsCommands :: Class WriteColoredM
[hide private]
[frames] | no frames]

Class WriteColoredM

source code

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

Instance Methods [hide private]
  onAddCmdToViewer(self)
method called when an instance of this command is added to the viewer.
  writeCMsurface(self, mol, filename)
Write the MSMS surface corresponding to all selected molecules in the .m format with rbg color for each vertex
  doit(self, nodes, filename)
virtual method.
  __call__(self, nodes, filename, **kw)
None <- writeCM(self, nodes, filename, **kw) Write colored .m files nodes : current selection, or string representing nodes filename: filename
  guiCallback(self)

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, onAddNewCmd, onCmdRun, setLastUsedValues, setupUndoAfter, setupUndoBefore, showForm, tkCb, updateGeom, warningMsg


Class Variables [hide private]

Inherited from ViewerFramework.VFCommand.Command: negateKw, objArgOnly


Method Details [hide private]

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)

writeCMsurface(self, mol, filename)

source code 
Write the MSMS surface corresponding to all selected molecules in the .m format with rbg color for each vertex

doit(self, nodes, filename)

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

__call__(self, nodes, filename, **kw)
(Call operator)

source code 
None <- writeCM(self, nodes, filename, **kw) Write colored .m files nodes : current selection, or string representing nodes filename: filename
Overrides: ViewerFramework.VFCommand.Command.__call__

guiCallback(self)

source code 
None
Overrides: mvCommand.MVCommand.guiCallback