Class MTStructureFactory

Inherits from:
NSObject
Declared in:
../libmoltalk/MTStructureFactory.oh

Class Hierarchy

    NSObject
      |
      +---MTStructureFactory

Class Description

This factory can instantiate objects of the class MTStructure. If you want to create subclasses of MTStructure, implement a subclass of MTStructureFactory and overwrite +newInstance. Then set it to be the new default factory class with +setDefaultStructureFactory:.

options that will be passed to the parser:
PDBPARSER_ALL_NMRMODELS=1
PDBPARSER_IGNORE_SIDECHAINS=2
PDBPARSER_IGNORE_HETEROATOMS=4
PDBPARSER_IGNORE_SOLVENT=8
PDBPARSER_IGNORE_COMPOUND=16
PDBPARSER_IGNORE_SOURCE=32
PDBPARSER_IGNORE_KEYWORDS=64
PDBPARSER_IGNORE_EXPDTA=128
PDBPARSER_IGNORE_REMARK=256
PDBPARSER_IGNORE_REVDAT=512
PDBPARSER_DONT_VERIFYCONNECTIVITY=1024
PDBPARSER_IGNORE_SEQRES=2048
PDBPARSER_ALL_ALTERNATE_ATOMS=4096
PDBPARSER_IGNORE_HYDROGENS=8192
PDBPARSER_ALL_REMARKS=16384

Last modified:
16-May-2006 (../libmoltalk/MTStructureFactory.oh)

Method Index

Methods

+(id)newInstance

internally used to create the instance of the correct type.
This method should be overidden in subclasses wich create subclasses of class MTStructure.

+(id)newStructure

creates a new instance of type MTStructure, calls +newInstance

+(id)newStructureFromPDBDirectory:(NSString*)code

reads and parses a file in PDB format from the PDB mirroring directory structure
and returns the resulting object of type: MTStructure

+(id)newStructureFromPDBDirectory:(NSString*)code options:(long)opts

reads and parses a file in PDB format from the PDB mirroring directory structure
and returns the resulting object of type: MTStructure
accepts a combination of options to pass to the parser.

+(id)newStructureFromPDBFile:(NSString*)fn

reads and parses a file in PDB format and returns the resulting object of type: Structure

+(id)newStructureFromPDBFile:(NSString*)fn options:(long)opts

reads and parses a file in PDB format and returns the resulting object of type: MTStructure
accepts a combination of options to pass to the parser.

+(void)setDefaultStructureFactory:(Class)klass

sets the class which will create instances. Per default set to MTStructureFactory.


generated 07-Jun-2006 by ObjcDoc 3.0.0