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 booleanmKeepMarkedAtomsprotected int[]mPriority
-
Constructor Summary
Constructors Modifier Constructor Description protectedInventorFragment(InventorFragment f)protectedInventorFragment(StereoMolecule mol, int atoms, boolean keepMarkedAtoms)
-
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 booleanequals(InventorFragment f)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)
-
-
-
Field Detail
-
mGlobalAtom
protected int[] mGlobalAtom
-
mGlobalBond
protected int[] mGlobalBond
-
mGlobalToLocalAtom
protected int[] mGlobalToLocalAtom
-
mPriority
protected int[] mPriority
-
mAtomX
protected double[] mAtomX
-
mAtomY
protected double[] mAtomY
-
mKeepMarkedAtoms
protected boolean mKeepMarkedAtoms
-
-
Constructor Detail
-
InventorFragment
protected InventorFragment(StereoMolecule mol, int atoms, boolean keepMarkedAtoms)
-
InventorFragment
protected InventorFragment(InventorFragment f)
-
-
Method Detail
-
size
protected int size()
-
equals
protected boolean equals(InventorFragment f)
-
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
-
-