29 #ifndef CDPL_PHARM_SPATIALFEATUREMAPPING_HPP
30 #define CDPL_PHARM_SPATIALFEATUREMAPPING_HPP
33 #include <unordered_map>
36 #include <boost/functional/hash.hpp>
49 class FeatureContainer;
144 typedef std::pair<const Feature*, const Feature*> FeaturePair;
145 typedef std::unordered_map<FeaturePair, double, boost::hash<FeaturePair> > FeaturePairToScoreMap;
150 FeaturePairToScoreMap posMatchScores;
151 FeaturePairToScoreMap geomMatchScores;
Definition of the type CDPL::Pharm::FeatureMapping.
Definition of matrix data types.
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.
Abstract base class for containers holding a sequence of Pharm::Feature objects with associated prope...
Definition: FeatureContainer.hpp:55
Data type for the storage and lookup of arbitrary feature to feature mappings.
Definition: FeatureMapping.hpp:54
Abstract base class representing a single pharmacophore feature within a parent Pharm::Pharmacophore.
Definition: Feature.hpp:48
Pharm::FeatureMapping specialization that perceives a reference-to-aligned feature mapping based on t...
Definition: SpatialFeatureMapping.hpp:57
void perceive(const FeatureContainer &ref_ftrs, const FeatureContainer &aligned_ftrs, const Math::Matrix4D &xform)
Computes the spatial feature mapping between the reference and aligned feature containers after apply...
std::function< bool(const Feature &, const Feature &)> TypeMatchFunction
Generic wrapper class used to store a user-defined feature type match function.
Definition: SpatialFeatureMapping.hpp:63
void setPositionMatchFunction(const PositionMatchFunction &func)
Specifies a function for checking the proximity of mapped feature positions.
double getGeometryMatchScore(const Feature &ref_ftr, const Feature &aligned_ftr) const
Returns the geometry-match score cached for the (ref_ftr, aligned_ftr) pair by the last perceive() ca...
double getPositionMatchScore(const Feature &ref_ftr, const Feature &aligned_ftr) const
Returns the position-match score cached for the (ref_ftr, aligned_ftr) pair by the last perceive() ca...
std::function< double(const Feature &, const Feature &, const Math::Matrix4D &)> PositionMatchFunction
Generic wrapper class used to store a user-defined feature position match function.
Definition: SpatialFeatureMapping.hpp:68
const GeometryMatchFunction & getGeometryMatchFunction() const
Returns the function that was registered for checking the match of mapped feature geometries.
const PositionMatchFunction & getPositionMatchFunction() const
Returns the function that was registered for checking the proximity of mapped feature positions.
std::function< double(const Feature &, const Feature &, const Math::Matrix4D &)> GeometryMatchFunction
Generic wrapper class used to store a user-defined feature geometry match function.
Definition: SpatialFeatureMapping.hpp:73
SpatialFeatureMapping(bool query_mode=false)
Constructs a SpatialFeatureMapping instance.
void setGeometryMatchFunction(const GeometryMatchFunction &func)
Specifies a function for checking the match of mapped feature geometries.
void setTypeMatchFunction(const TypeMatchFunction &func)
Specifies a function for testing the type compatibility of features.
const TypeMatchFunction & getTypeMatchFunction() const
Returns the function that was registered for testing the type compatibility of the features.
The namespace of the Chemical Data Processing Library.