Package Pmv :: Module fileCommands :: Class PDBReader
[hide private]
[frames] | no frames]

Class PDBReader

source code

ViewerFramework.VFCommand.Command --+        
                                    |        
                  mvCommand.MVCommand --+    
                                        |    
                           MoleculeLoader --+
                                            |
                                           PDBReader
Known Subclasses:
genparserCommands.GenPDBReader

Command to load PDB files using a PDB spec compliant parser
    
Package : Pmv
    
Module  : fileCommands
    
Class   : MoleculeReader
    
Command : readMolecule 
    
Synopsis:

        mols <--- readPDB(filename, **kw)
    
Required Arguments:

        filename --- path to the PDB file
    



Instance Methods [hide private]
  onAddCmdToViewer(self)
method called when an instance of this command is added to the viewer.
  onRemoveObjectFromViewer(self, obj)
Function to remove the sets able to reference a TreeNode created in this command : Here remove the alternate location list created when a pdb File is read.
  doit(self, filename, ask=True)
virtual method.
  __call__(self, filename, **kw)
mols <- readPDB(filename, **kw)

Inherited from MoleculeLoader: __init__, guiCallback

Inherited from mvCommand.MVCommand: 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]
  lastDir = None

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)

onRemoveObjectFromViewer(self, obj)

source code 
Function to remove the sets able to reference a TreeNode created in this command : Here remove the alternate location list created when a pdb File is read.
Overrides: MoleculeLoader.onRemoveObjectFromViewer

doit(self, filename, ask=True)

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

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

source code 

mols <- readPDB(filename, **kw)

filename --- path to the PDB file
Overrides: ViewerFramework.VFCommand.Command.__call__

Class Variable Details [hide private]

lastDir

None
Value:
None