Package Pmv :: Module extrusionCommands :: Class DisplayPath3DCommand
[hide private]
[frames] | no frames]

Class DisplayPath3DCommand

source code

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

This Command displays the computed sheet2D for each chain of the contained in the current selection.
    
Package : Pmv
    
Module  : extrusionCommands
    
Class   : DisplayPath3DCommand
    
Command name : displayPath3D
    
Synopsis:

        None <- displayPath3D(self, nodes, negate=False, only=False, **kw)
    
Required Arguments:
   
        nodes --- any set for MolKit nodes describing molecular components
    



Instance Methods [hide private]
  __init__(self, func=None)
  onAddCmdToViewer(self)
method called when an instance of this command is added to the viewer.
  onAddObjectToViewer(self, obj)
  createGeometries(self, obj)
  pickedVerticesToAtoms(self, geom, vertInd)
Function called to convert a picked vertex into an atom
  atomPropToVertices(self, geom, residues, propName, propIndex=None)
Function called to compute the array of colors
  getResInd(self, vi, chain)
  getResPts(self, residueindex, chain)
return the index of the first and the last point in the Sheet2D.path for the residue whose index is specified
  drawResidues(self, chain, res, only, negate)
  __call__(self, nodes, negate=False, only=False, **kw)
None <- displayPath3D(self, nodes, negate=False, only=False, **kw)
  doit(self, nodes, negate=False, only=False)
virtual method.
  buildFormDescr(self, formName)
descr <- buildFormDescr(self, formName): this virtual method is implemented in the classes derived from Command.
  guiCallback(self)
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, func=None)
(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)

onAddObjectToViewer(self, obj)

source code 
None

createGeometries(self, obj)

source code 
None

pickedVerticesToAtoms(self, geom, vertInd)

source code 
Function called to convert a picked vertex into an atom

atomPropToVertices(self, geom, residues, propName, propIndex=None)

source code 
Function called to compute the array of colors

getResInd(self, vi, chain)

source code 
None

getResPts(self, residueindex, chain)

source code 
return the index of the first and the last point in the Sheet2D.path for the residue whose index is specified

drawResidues(self, chain, res, only, negate)

source code 
None

__call__(self, nodes, negate=False, only=False, **kw)
(Call operator)

source code 
None <- displayPath3D(self, nodes, negate=False, only=False, **kw)
Overrides: ViewerFramework.VFCommand.Command.__call__

doit(self, nodes, negate=False, only=False)

source code 
virtual method. Has to be implemented by the sub classes
Overrides: ViewerFramework.VFCommand.Command.doit
(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)

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