Class ModelBuilder3D
java.lang.Object
org.openscience.cdk.modeling.builder3d.ModelBuilder3D
The main class to generate the 3D coordinates of a molecule ModelBuilder3D.
Its use looks like:
ModelBuilder3D mb3d = ModelBuilder3D.getInstance(); IAtomContainer molecule = mb3d.generate3DCoordinates(molecule, false);
Standing problems:
- condensed ring systems which are unknown for the template class
- vdWaals clashes
- stereochemistry
- chains running through ring systems
- Author:
- cho, steinbeck
- Keywords:
- 3D coordinates, coordinate generation, 3D
- Created on:
- 2004-09-07
-
Method Summary
Modifier and TypeMethodDescriptiongenerate3DCoordinates(IAtomContainer molecule, boolean clone) Generate 3D coordinates with force field information.String[]Gives a list of possible force field types.static ModelBuilder3DgetInstance(IChemObjectBuilder builder) static ModelBuilder3DgetInstance(TemplateHandler3D templateHandler, String ffname, IChemObjectBuilder chemObjectBuilder) intReturns the number of loaded templates.
-
Method Details
-
getInstance
public static ModelBuilder3D getInstance(TemplateHandler3D templateHandler, String ffname, IChemObjectBuilder chemObjectBuilder) throws CDKException - Throws:
CDKException
-
getInstance
- Throws:
CDKException
-
getFfTypes
Gives a list of possible force field types.- Returns:
- the list
-
generate3DCoordinates
public IAtomContainer generate3DCoordinates(IAtomContainer molecule, boolean clone) throws CDKException, CloneNotSupportedException, IOException Generate 3D coordinates with force field information. -
getTemplateCount
public int getTemplateCount()Returns the number of loaded templates. Note that it may return 0 because templates are lazy loaded, that is upon the first ring being laid out.- Returns:
- 0, if not templates are loaded
-