Package org.openscience.cdk.layout
Class OverlapResolver
- java.lang.Object
-
- org.openscience.cdk.layout.OverlapResolver
-
@Deprecated public class OverlapResolver extends Object
Deprecated.does not resolve overlaps correctlyHelper class for Structure Diagram Generation. Resolves atom or bond overlaps after the actual SDG was done- Author:
- steinbeck
- Source code:
- main
- Belongs to CDK module:
- sdg
- Keywords:
- layout, 2D-coordinates
- Created on:
- 2003-09-4
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
OverlapResolver.OverlapPair
Deprecated.A little helper class to store pairs of overlapping atoms.
-
Constructor Summary
Constructors Constructor Description OverlapResolver()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
areIntersected(IBond bond1, IBond bond2)
Deprecated.Checks if two bonds cross each other.double
displace(IAtomContainer ac, Vector overlappingAtoms, Vector overlappingBonds)
Deprecated.Makes a small displacement to some atoms or rings in the given atomcontainer.double
getAtomOverlapScore(IAtomContainer ac, Vector overlappingAtoms)
Deprecated.Calculates a score based on the overlap of atoms.double
getBondOverlapScore(IAtomContainer ac, Vector overlappingBonds)
Deprecated.Calculates a score based on the intersection of bonds.double
getOverlapScore(IAtomContainer ac, Vector overlappingAtoms, Vector overlappingBonds)
Deprecated.Calculates a score based on the overlap of atoms and intersection of bonds.double
resolveOverlap(IAtomContainer ac, IRingSet sssr)
Deprecated.Main method to be called to resolve overlap situations.
-
-
-
Method Detail
-
resolveOverlap
public double resolveOverlap(IAtomContainer ac, IRingSet sssr)
Deprecated.Main method to be called to resolve overlap situations.- Parameters:
ac
- The atomcontainer in which the atom or bond overlap existssssr
- A ring set for this atom container if one exists, otherwhise null
-
displace
public double displace(IAtomContainer ac, Vector overlappingAtoms, Vector overlappingBonds)
Deprecated.Makes a small displacement to some atoms or rings in the given atomcontainer.- Parameters:
ac
- The AtomContainer to work onoverlappingAtoms
- Description of the ParameteroverlappingBonds
- Description of the Parameter
-
getOverlapScore
public double getOverlapScore(IAtomContainer ac, Vector overlappingAtoms, Vector overlappingBonds)
Deprecated.Calculates a score based on the overlap of atoms and intersection of bonds. The overlap is calculated by summing up the distances between all pairs of atoms, if they are less than half the standard bondlength apart.- Parameters:
ac
- The Atomcontainer to work onoverlappingAtoms
- Description of the ParameteroverlappingBonds
- Description of the Parameter- Returns:
- The overlapScore value
-
getAtomOverlapScore
public double getAtomOverlapScore(IAtomContainer ac, Vector overlappingAtoms)
Deprecated.Calculates a score based on the overlap of atoms. The overlap is calculated by summing up the distances between all pairs of atoms, if they are less than half the standard bondlength apart.- Parameters:
ac
- The Atomcontainer to work onoverlappingAtoms
- Description of the Parameter- Returns:
- The overlapScore value
-
getBondOverlapScore
public double getBondOverlapScore(IAtomContainer ac, Vector overlappingBonds)
Deprecated.Calculates a score based on the intersection of bonds.- Parameters:
ac
- The Atomcontainer to work onoverlappingBonds
- Description of the Parameter- Returns:
- The overlapScore value
-
-