class OEOverlap
OEOverlap calculates the static shape overlap between a reference molecule or grid and a fit molecule or grid. Note that this does not move the fit molecule(grid) nor does it optimize the overlap. It simply calculates the score for the provided orientation.
OEOverlap() OEOverlap(const OEOverlap &rhs) OEOverlap(const OEChem::OEMolBase &refmol) OEOverlap(const OESystem::OEScalarGrid &refmol)
Default and copy constructors.
OEOverlap &operator=(const OEOverlap &rhs)
Assignment operator. The contents of the passed OEColorOverlap reference are copied into an OEColorOverlap instance.
float GetCarbonRadius() const
Return the current value for the carbon radius approximation.
int GetHandle() const
unsigned int GetMethod() const
Return the current value of overlap method.
unsigned int GetRadiiApproximation() const
Return the current value of the radii approximation.
unsigned int GetRepresentationLevel() const
Return the current representation level.
bool GetUseHydrogens() const
Return the status of hydrogen use in OEOverlap.
bool Overlap(OEOverlapResults &res, float *atomOverlaps=0)
bool Overlap(const OEChem::OEMolBase &fitmol, OEOverlapResults &res,
float *atomOverlaps=0)
bool Overlap(const OESystem::OEScalarGrid &fitgrid, OEOverlapResults &res)
Calculate the overlap of the passed in fit molecule or fit grid and place the results into the passed instance of OEOverlapResults.
bool SetCarbonRadius(float cradius)
Set the radius to use when using OEOverlapRadii::Carbon. By default this is set to 1.7Å.
bool SetFitGrid(const OESystem::OEScalarGrid &fitgrid)
bool SetFitMol(const OEChem::OEMolBase &fitmol)
bool SetMethod(unsigned int m)
Set the method used to calculate overlap. The default for OEOverlap is OEOverlapMethod::Exact. Alternatives are defined in the OEOverlapMethod namespace (section 9.4).
bool SetRadiiApproximation(unsigned int type)
Set the radius approximation used to calculate overlap. The default for OEOverlap is OEOverlapRadii::Carbon. Alternatives are defined in the OEOverlapRadii namespace (section 9.5).
bool SetRefGrid(const OESystem::OEScalarGrid &refgrid)
Set a reference grid for the calculation. An internal copy is made. Any previous reference molecule or grid is cleared.
bool SetRefMol(const OEChem::OEMolBase &refmol)
Set a reference molecule for the calculation. An internal copy is made. Any previous reference molecule or grid is cleared.
bool SetRepresentationLevel(unsigned int type)
Set the representation level for the gaussians in OEOverlap. The default is OEOverlapRepresentation::Atomic. Alternatives are defined in the OEOverlapRepresentation namespace (section 9.6).
bool SetUseHydrogens(bool state)
Boolean to determine whether hydrogens are included in the shape calculation. By default this is false and hydrogens are ignored.