Class InventorFragment
- java.lang.Object
-
- com.actelion.research.chem.coords.InventorFragment
-
public class InventorFragment extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected double[]mAtomXprotected double[]mAtomYprotected int[]mGlobalAtomprotected int[]mGlobalBondprotected int[]mGlobalToLocalAtomprotected int[]mPriority
-
Constructor Summary
Constructors Modifier Constructor Description protectedInventorFragment(InventorFragment f, int mode)protectedInventorFragment(StereoMolecule mol, int atoms, int mode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidarrangeWith(InventorFragment f)protected doublecalculatePreferredAttachmentAngle(double x, double y, int neighbourAtomCount, double padding)protected voidflip(double x, double y, double mirrorAngle)protected voidflipOneSide(int bond)protected doublegetAtomX(int index)protected doublegetAtomY(int index)protected java.util.ArrayList<int[]>getCollisionList()protected doublegetCollisionPanalty()protected intgetGlobalAtom(int localAtom)protected doublegetHeight()protected intgetLocalAtom(int globalAtom)protected doublegetWidth()protected booleanisMember(int globalAtom)protected voidlocateBonds()protected voidoptimizeAtomCoordinates(int atom)protected voidrotate(double x, double y, double angleDif)protected intsize()protected voidtranslate(double dx, double dy)
-
-
-
Constructor Detail
-
InventorFragment
protected InventorFragment(StereoMolecule mol, int atoms, int mode)
-
InventorFragment
protected InventorFragment(InventorFragment f, int mode)
-
-
Method Detail
-
size
protected int size()
-
getAtomX
protected double getAtomX(int index)
-
getAtomY
protected double getAtomY(int index)
-
getWidth
protected double getWidth()
-
getHeight
protected double getHeight()
-
isMember
protected boolean isMember(int globalAtom)
-
getGlobalAtom
protected int getGlobalAtom(int localAtom)
-
getLocalAtom
protected int getLocalAtom(int globalAtom)
-
translate
protected void translate(double dx, double dy)
-
rotate
protected void rotate(double x, double y, double angleDif)
-
flip
protected void flip(double x, double y, double mirrorAngle)
-
flipOneSide
protected void flipOneSide(int bond)
-
arrangeWith
protected void arrangeWith(InventorFragment f)
-
getCollisionList
protected java.util.ArrayList<int[]> getCollisionList()
-
getCollisionPanalty
protected double getCollisionPanalty()
-
locateBonds
protected void locateBonds()
-
optimizeAtomCoordinates
protected void optimizeAtomCoordinates(int atom)
-
calculatePreferredAttachmentAngle
protected double calculatePreferredAttachmentAngle(double x, double y, int neighbourAtomCount, double padding)- Parameters:
x-y-- Returns:
- angle
-
-