OENearestResidue

class OENearestResidue

The OENearestResidue class that is used by OEGetNearestResidue and OEGetNearbyResidue functions. It stores an atom pointer, an associated distance and the display position of the atom.

Constructors

OENearestResidue(const OEChem::OEResidue &residue, double dist,
                 const OEDepict::OE2DPoint &pos)

Constructor.

GetDisplayPosition

const OEDepict::OE2DPoint &GetDisplayPosition() const

Returns the display position of the nearest residue.

GetDist

double GetDist() const

Returns the distance associated with the residue.

GetResidue

const OEChem::OEResidue &GetResidue() const

Returns the residue stored in the OENearestResidue object.

IsValid

bool IsValid() const

Returns whether the OENearestResidue object is initialized correctly.