OENearestBond
class OENearestBond
The OENearestBond class, used by
OEGetNearestBond and
OEGetNearbyBond functions.
It stores a bond pointer, the associated distance and
the display position of the bond.
Constructors
OENearestBond(const OEChem::OEBondBase *bond, double distance)
OENearestAtom(const OEChem::OEBondBase *bond, double distance,
const OE2DPoint &displaypos)
Constructors.
If no display position is given then it will be initialized to OE2DPoint(0.0, 0.0).
GetBond
const OEChem::OEBondBase *GetBond() const
Returns the bond pointer stored in the OENearestBond object.
GetDisplayPosition
const OE2DPoint& GetDisplayPosition() const;
Returns the display position of the middle of the nearest bond.
GetDist
double GetDist() const
Returns the distance associated with the bond.
IsValid
bool IsValid() const
Returns whether the OENearestBond object is initialized correctly.