Package Pmv :: Module genparserCommands :: Class GenPDBReader
[hide private]
[frames] | no frames]

Class GenPDBReader

source code

ViewerFramework.VFCommand.Command --+            
                                    |            
                  mvCommand.MVCommand --+        
                                        |        
              fileCommands.MoleculeLoader --+    
                                            |    
                       fileCommands.PDBReader --+
                                                |
                                               GenPDBReader

Command to load PDB files using parser with user defined specifications

Instance Methods [hide private]
  __init__(self)
  _doit(self, filename, specs)
does the parsing of the pdb file using specs object
  doit(self, filename, specfile)
takes a pdb file name and a specification file name
  __call__(self, filename, specfile, **kw)
mol <- genreadPDB(filename, specfile, **kw) filename: path name of the PDB file specfile: a specification file name
  guiCallback(self, event=None, *args, **kw)
  extractSpecs(self, file)
takes a specification file in proper format and creates a specs object

Inherited from fileCommands.PDBReader: onAddCmdToViewer, onRemoveObjectFromViewer

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]

Inherited from fileCommands.PDBReader: lastDir

Inherited from ViewerFramework.VFCommand.Command: negateKw, objArgOnly


Method Details [hide private]

__init__(self)
(Constructor)

source code 
None
Overrides: fileCommands.MoleculeLoader.__init__

_doit(self, filename, specs)

source code 
does the parsing of the pdb file using specs object

doit(self, filename, specfile)

source code 
takes a pdb file name and a specification file name
Overrides: fileCommands.PDBReader.doit

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

source code 
mol <- genreadPDB(filename, specfile, **kw) filename: path name of the PDB file specfile: a specification file name
Overrides: fileCommands.PDBReader.__call__

guiCallback(self, event=None, *args, **kw)

source code 
None
Overrides: fileCommands.MoleculeLoader.guiCallback

extractSpecs(self, file)

source code 
takes a specification file in proper format and creates a specs object