Package Pmv :: Module displayCommands :: Class DisplayBackboneTrace
[hide private]
[frames] | no frames]

Class DisplayBackboneTrace

source code

 ViewerFramework.VFCommand.Command --+            
                                     |            
                   mvCommand.MVCommand --+        
                                         |        
ViewerFramework.VFCommand.ICOM --+       |        
                                 |       |        
                  mvCommand.MVICOM --+   |        
                                     |   |        
                  mvCommand.MVAtomICOM --+        
                                         |        
                            DisplayCommand --+    
                                             |    
                         DisplaySticksAndBalls --+
                                                 |
                                                DisplayBackboneTrace

The displayBackboneTrace command allows the user to display/undisplay the given nodes using the sticks and balls representation, where the bonds are represented by cylinders and the atoms by balls.The radii of the cylinders and the balls, and the quality of the spheres are user defined. The user can chose to display or not the balls.
    
Package : Pmv
    
Module  : displayCommands
    
Class   : DisplayBackboneTrace
    
Command : displayBackboneTrace
    
Synopsis:

        None <- displayBackboneTrace(nodes,  only=0, negate=0, noballs=0,
                                      bradii=0.4, bquality=4, cradius=0.2,
                                      absolute=1, **kw)

        nodes   : any set of MolKit nodes describing molecular components

        only    : Boolean flag specifying whether or not to only display
                  the current selection

        negate  : Boolean flag specifying whether or not to undisplay
                  the current selection

        noballs : Boolean flag specifying whether or not to undisplay the
                  balls geometry of the current selection

        cradius : specifies the cylinder radius

        bradii  : specifies the radius of the balls if displayed.

        bquality: specifies the quality of the balls if displayed.

        keywords: display BackboneTrace representation

    



Instance Methods [hide private]
  onAddObjectToViewer(self, obj)
  setupUndoBefore(self, nodes, only=False, negate=False, bRad=0.3, bScale=0.0, bquality=0, cradius=0.2, cquality=0, absolute=True, sticksBallsLicorice='Sticks and Balls')
  buildFormDescr(self, formName='default', title="Display backbone trace")
This is where descr gets created.
  doit(self, nodes, only=False, negate=False, bRad=0.3, bScale=0.0, bquality=0, cradius=0.2, cquality=0, sticksBallsLicorice='Sticks and Balls', **kw)

Inherited from DisplaySticksAndBalls: __call__, ballsAndLicorice_cb, cleanup, guiCallback, onRemoveObjectFromViewer

Inherited from DisplayCommand: __init__, getFormValues, getLastUsedValues, getNodes, handleDisplayValue, handleNegateOnly, onAddCmdToViewer, setLastUsedValues, updateGeom

Inherited from mvCommand.MVCommand: strArg

Inherited from mvCommand.MVCommand (private): _strArg

Inherited from ViewerFramework.VFCommand.Command: __repr__, addCallbackAfter, addCallbackBefore, addUndoCall, afterDoit, beforeDoit, buildLogArgList, checkDependencies, customizeGUI, doitWrapper, getArguments, getHelp, getLogArgs, getValNamedArgs, log, logString, onAddNewCmd, onCmdRun, setupUndoAfter, showForm, tkCb, warningMsg

Inherited from mvCommand.MVAtomICOM: getObjects

Inherited from ViewerFramework.VFCommand.ICOM: initICOM, startICOM, stopICOM


Class Variables [hide private]

Inherited from ViewerFramework.VFCommand.Command: negateKw, objArgOnly


Method Details [hide private]

onAddObjectToViewer(self, obj)

source code 
None
Overrides: DisplaySticksAndBalls.onAddObjectToViewer

setupUndoBefore(self, nodes, only=False, negate=False, bRad=0.3, bScale=0.0, bquality=0, cradius=0.2, cquality=0, absolute=True, sticksBallsLicorice='Sticks and Balls')

source code 
None
Overrides: DisplaySticksAndBalls.setupUndoBefore

buildFormDescr(self, formName='default', title="Display backbone trace")

source code 
This is where descr gets created. It is called for each formName if the associated form doesn't already exists. If a command has several form buildFormDescr will be called for each formName.
Overrides: DisplaySticksAndBalls.buildFormDescr

doit(self, nodes, only=False, negate=False, bRad=0.3, bScale=0.0, bquality=0, cradius=0.2, cquality=0, sticksBallsLicorice='Sticks and Balls', **kw)

source code 
None
Overrides: DisplaySticksAndBalls.doit