Class TemplateHandler3D
java.lang.Object
org.openscience.cdk.modeling.builder3d.TemplateHandler3D
Helper class for ModelBuilder3D. Handles templates. This is
our layout solution for 3D ring systems
- Author:
- cho, steinbeck, John Mayfield
- Source code:
- main
- Belongs to CDK module:
- builder3d
- Created on:
- 2004-09-21
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic BitSet
static TemplateHandler3D
getLargestRingSet
(List<IRingSet> ringSystems) Returns the largest (number of atoms) ring set in a molecule.getTemplateAt
(int position) Gets the templateAt attribute of the TemplateHandler object.int
Gets the templateCount attribute of the TemplateHandler object.void
mapTemplates
(IAtomContainer ringSystems, double numberOfRingAtoms) Deprecated.void
mapTemplates
(IAtomContainer mol, int numberOfRingAtoms) Checks if one of the loaded templates is a substructure in the given Molecule.
-
Field Details
-
TEMPLATE_PATH
- See Also:
-
-
Method Details
-
getInstance
- Throws:
CDKException
-
getBitSetFromFile
- Throws:
Exception
-
getLargestRingSet
Returns the largest (number of atoms) ring set in a molecule.- Parameters:
ringSystems
- RingSystems of a molecule- Returns:
- The largestRingSet
-
mapTemplates
@Deprecated public void mapTemplates(IAtomContainer ringSystems, double numberOfRingAtoms) throws CDKException, CloneNotSupportedException Deprecated. -
mapTemplates
public void mapTemplates(IAtomContainer mol, int numberOfRingAtoms) throws CDKException, CloneNotSupportedException Checks if one of the loaded templates is a substructure in the given Molecule. If so, it assigns the coordinates from the template to the respective atoms in the Molecule.- Parameters:
mol
- AtomContainer from the ring systems.numberOfRingAtoms
- Number of atoms in the specified ring- Throws:
CloneNotSupportedException
- The atomcontainer cannot be cloned.CDKException
-
getTemplateCount
public int getTemplateCount()Gets the templateCount attribute of the TemplateHandler object.- Returns:
- The templateCount value
-
getTemplateAt
Gets the templateAt attribute of the TemplateHandler object.- Parameters:
position
- Description of the Parameter- Returns:
- The templateAt value
-
mapTemplates(org.openscience.cdk.interfaces.IAtomContainer, int)