Package Pmv :: Module msmsCommands :: Class MsmsNPR
[hide private]
[frames] | no frames]

Class MsmsNPR

source code

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

This command sets colors of MSMS surface to make it look NPR

    Package : Pmv

    Module  : msmsCommands

    Class   : MsmsNPR

    Command name : msmsNPR

    
Synopsis:

    None <- msmsNPR(nodes)
    
Required Arguments :

    nodes --- current selection

    



Instance Methods [hide private]
  checkDependencies(self)
virtual method.
  setColors(self, mol)
  doit(self, nodes)
virtual method.
  __call__(self, nodes, **kw)
None <--- msmsNPR(nodes, **kw)...
  guiCallback(self)
Default callback function called by the gui

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, 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]

checkDependencies(self)

source code 
virtual method. Has to be implemented by the sub classes. Method called when command is loaded, if all the dependencies are not found the command won't be loaded.
Overrides: ViewerFramework.VFCommand.Command.checkDependencies
(inherited documentation)

setColors(self, mol)

source code 
None

doit(self, nodes)

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

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

source code 
None <--- msmsNPR(nodes, **kw)

            
Required Arguments :

            nodes: TreeNodeSet holding the current selection

Overrides: ViewerFramework.VFCommand.Command.__call__

guiCallback(self)

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