This is an abstract class and cannot be directly instanced.
[ ligand_pharma | Source | Keywords | Summary | Ancestors | All Members | Descendants ]
public: | ||
// Constructors | ||
Feature(const unsigned int id_) ; | ||
Feature(const unsigned int id_, const Vector3& center) ; | ||
// Inspectors | ||
FEATURE_TYPE | featureType() const ; | |
char* | getFeatureTypeString() const ; | |
unsigned int | getID() const ; | |
unsigned int | getRigidGroupID() const ; | |
const vector< unsigned int>& | getAllRigidGroups() const ; | |
const Vector3& | getCenter() const ; | |
float | getScore(const Feature* otherFeature) const ; | |
bool | isValid() ; | |
float | weight() const ; | |
void | getAtoms(vector< const Mol2Atom*>& atoms) const; | // pure virtual |
float | getRadiusForCenterFit() const ; | |
float | getRadiusForCenterFit(const Feature* otherFeature) const ; | |
bool | canBeMatched(const RigidTrans3& transformation, const Feature* otherFeature) const; | // pure virtual |
bool | operator==(const Feature& otherFeature) const; | // pure virtual |
// Setters | ||
void | setCenter(const Vector3& center) ; | |
void | addRigidGroup(unsigned int groupID) ; | |
void | setValidity(bool valid) ; | |
void | setWeight(float w) ; | |
void | setRadiusForCenterFit(float r) ; | |
// Misc. | ||
void | resetValidityAndWeight() ; | |
// Output | ||
void | dump(ostream& output) const; | // pure virtual |
void | outputMol2(ostream& output) const; | // pure virtual |
void | outputMol2(const RigidTrans3& transformation, ostream& output) const; | // pure virtual |
friend ostream& | operator<<(ostream& s, const Feature& feature) ; | |
~Feature() ; | ||
protected: | ||
float | getScoreVirtual(const Feature* otherFeature) const; | // pure virtual |
unsigned int | id; | |
vector< unsigned int> | rigidGroups; | |
Vector3 | center_; | |
bool | isValidFeature_; | |
FEATURE_TYPE | type_; | |
float | weight_; | |
float | radiusForCenterFit_; |
Copyright: SAMBA group, Tel-Aviv Univ. Israel, 2004.
Feature(const unsigned int id_) ;
Feature(const unsigned int id_) ;
Function is currently defined inline.
Feature(const unsigned int id_, const Vector3& center) ;
Feature(const unsigned int id_, const Vector3& center) ;
Function is currently defined inline.
FEATURE_TYPE featureType() const ;
FEATURE_TYPE featureType() const ;
Function is currently defined inline.
char* getFeatureTypeString() const ;
char* getFeatureTypeString() const ;
Function is currently defined inline.
Return the feature's identifier in the molecule
unsigned int getID() const ;
Function is currently defined inline.
unsigned int getRigidGroupID() const ;
return first group id
unsigned int getRigidGroupID() const ;
Function is currently defined inline.
const vector< unsigned int>& getAllRigidGroups() const ;
return all groups that include this feature
const vector< unsigned int>& getAllRigidGroups() const ;
Function is currently defined inline.
const Vector3& getCenter() const ;
const Vector3& getCenter() const ;
Function is currently defined inline.
float getScore(const Feature* otherFeature) const ;
float getScore(const Feature* otherFeature) const ;
Function is currently defined inline.
bool isValid() ;
Function is currently defined inline.
float weight() const ;
Function is currently defined inline.
void getAtoms(vector< const Mol2Atom*>& atoms) const;
Return the atoms of the feature
virtual void getAtoms(vector< const Mol2Atom*>& atoms) const;
float getRadiusForCenterFit() const ;
Default match threshold value - used only in Vote, for feature hash table query
virtual float getRadiusForCenterFit() const ;
Function is currently defined inline.
float getRadiusForCenterFit(const Feature* otherFeature) const ;
virtual float getRadiusForCenterFit(const Feature* otherFeature) const ;
Function is currently defined inline.
bool canBeMatched(const RigidTrans3& transformation, const Feature* otherFeature) const;
Return true if the two features can be matched after applying the given transformation on the current feature according to their type and the distance between their centers is below threshold
virtual bool canBeMatched(const RigidTrans3& transformation, const Feature* otherFeature) const;
bool operator==(const Feature& otherFeature) const;
Return true if the center of the two features is the same.
virtual bool operator==(const Feature& otherFeature) const;
void setCenter(const Vector3& center) ;
void setCenter(const Vector3& center) ;
Function is currently defined inline.
void addRigidGroup(unsigned int groupID) ;
void addRigidGroup(unsigned int groupID) ;
Function is currently defined inline.
void setValidity(bool valid) ;
void setValidity(bool valid) ;
Function is currently defined inline.
void setWeight(float w) ;
Function is currently defined inline.
void setRadiusForCenterFit(float r) ;
void setRadiusForCenterFit(float r) ;
Function is currently defined inline.
void resetValidityAndWeight() ;
void resetValidityAndWeight() ;
Function is currently defined inline.
void dump(ostream& output) const;
virtual void dump(ostream& output) const;
void outputMol2(ostream& output) const;
virtual void outputMol2(ostream& output) const;
void outputMol2(const RigidTrans3& transformation, ostream& output) const;
output transformed feature center
virtual void outputMol2(const RigidTrans3& transformation, ostream& output) const;
friend ostream& operator<<(ostream& s, const Feature& feature) ;
friend ostream& operator<<(ostream& s, const Feature& feature) ;
Function is currently defined inline.
virtual ~Feature() ;
Function is currently defined inline.
float getScoreVirtual(const Feature* otherFeature) const;
Return the score for matching the two features. The score is negative if the two features cannot be mathed according to their types. If the types are matched a positive score is returned according to the thir importance (defined by the user)
virtual float getScoreVirtual(const Feature* otherFeature) const;
The index of the feature in the molecule
unsigned int id;
vector< unsigned int> rigidGroups;
vector< unsigned int> rigidGroups;
Vector3 center_;
bool isValidFeature_;
FEATURE_TYPE type_;
float weight_;
float radiusForCenterFit_;
public: | ||
---|---|---|
// Inspectors | ||
FEATURE_TYPE | featureType() const ; | |
char* | getFeatureTypeString() const ; | |
unsigned int | getID() const ; | |
unsigned int | getRigidGroupID() const ; | |
const vector< unsigned int>& | getAllRigidGroups() const ; | |
const Vector3& | getCenter() const ; | |
float | getScore(const Feature* otherFeature) const ; | |
bool | isValid() ; | |
float | weight() const ; | |
void | getAtoms(vector< const Mol2Atom*>& atoms) const; | // pure virtual |
float | getRadiusForCenterFit() const ; | |
float | getRadiusForCenterFit(const Feature* otherFeature) const ; | |
bool | canBeMatched(const RigidTrans3& transformation, const Feature* otherFeature) const; | // pure virtual |
bool | operator==(const Feature& otherFeature) const; | // pure virtual |
// Setters | ||
void | setCenter(const Vector3& center) ; | |
void | addRigidGroup(unsigned int groupID) ; | |
void | setValidity(bool valid) ; | |
void | setWeight(float w) ; | |
void | setRadiusForCenterFit(float r) ; | |
// Misc. | ||
void | resetValidityAndWeight() ; | |
// Output | ||
void | dump(ostream& output) const; | // pure virtual |
void | outputMol2(ostream& output) const; | // pure virtual |
void | outputMol2(const RigidTrans3& transformation, ostream& output) const; | // pure virtual |
friend ostream& | operator<<(ostream& s, const Feature& feature) ; | |
protected: | ||
float | getScoreVirtual(const Feature* otherFeature) const; | // pure virtual |
unsigned int | id; | |
vector< unsigned int> | rigidGroups; | |
Vector3 | center_; | |
bool | isValidFeature_; | |
FEATURE_TYPE | type_; | |
float | weight_; | |
float | radiusForCenterFit_; |
Report problems to jkotula@unimax.com