29 #ifndef CDPL_PHARM_CATIONPIINTERACTIONCONSTRAINT_HPP
30 #define CDPL_PHARM_CATIONPIINTERACTIONCONSTRAINT_HPP
52 static constexpr
double DEF_MIN_DISTANCE = 3.5;
54 static constexpr
double DEF_MAX_DISTANCE = 5.5;
56 static constexpr
double DEF_MAX_ANGLE = 45.0;
67 double max_ang = DEF_MAX_ANGLE):
69 minDist(min_dist), maxDist(max_dist), maxAngle(max_ang) {}
Definition of the preprocessor macro CDPL_PHARM_API.
#define CDPL_PHARM_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
Constraint functor that tests whether an aromatic/cationic feature pair satisfies the geometric crite...
Definition: CationPiInteractionConstraint.hpp:48
double getMaxDistance() const
Returns the currently configured maximum cation-aromatic distance.
CationPiInteractionConstraint(bool aro_cat, double min_dist=DEF_MIN_DISTANCE, double max_dist=DEF_MAX_DISTANCE, double max_ang=DEF_MAX_ANGLE)
Constructs a CationPiInteractionConstraint functor with the specified constraints.
Definition: CationPiInteractionConstraint.hpp:66
double getMaxAngle() const
Returns the currently configured maximum angle between cation displacement and aromatic-plane normal.
double getMinDistance() const
Returns the currently configured minimum cation-aromatic distance.
bool operator()(const Feature &ftr1, const Feature &ftr2) const
Tests whether ftr1 and ftr2 satisfy the geometric cation-π criteria.
Abstract base class representing a single pharmacophore feature within a parent Pharm::Pharmacophore.
Definition: Feature.hpp:48
The namespace of the Chemical Data Processing Library.