Feature

This is an abstract class and cannot be directly instanced.


[ ligand_pharma | Source | Keywords | Summary | Ancestors | All Members | Descendants ]

Quick Index

KEYWORD
AUTHORS
CHANGES LOG
GOALS
USAGE

Class Summary

class Feature
{
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_;
}; // Feature

Back to the top of Feature


KEYWORD

Back to the top of Feature


AUTHORS

Oranit Dror (mailto: oranit@post.tau.ac.il)

Copyright: SAMBA group, Tel-Aviv Univ. Israel, 2004.

Back to the top of Feature


CHANGES LOG

Back to the top of Feature


GOALS

Back to the top of Feature

		

USAGE

		

Back to the top of Feature


Feature(const unsigned int id_) ;

  Feature(const unsigned int id_) ;

Function is currently defined inline.


Back to the top of Feature


Feature(const unsigned int id_, const Vector3& center) ;

  Feature(const unsigned int id_, const Vector3& center) ;

Function is currently defined inline.


Back to the top of Feature


FEATURE_TYPE featureType() const ;

  FEATURE_TYPE featureType() const                  
;

Function is currently defined inline.


Back to the top of Feature


char* getFeatureTypeString() const ;

  char* getFeatureTypeString() const                                              
;

Function is currently defined inline.


Back to the top of Feature


unsigned int getID() const ;

Return the feature's identifier in the molecule

  unsigned int getID() const               
;

Function is currently defined inline.


Back to the top of Feature


unsigned int getRigidGroupID() const ;

return first group id

  unsigned int getRigidGroupID() const                                                                                                                                         
;

Function is currently defined inline.


Back to the top of Feature


const vector< unsigned int>& getAllRigidGroups() const ;

return all groups that include this feature

  const vector< unsigned int>& getAllRigidGroups() const                        
;

Function is currently defined inline.


Back to the top of Feature


const Vector3& getCenter() const ;

  const Vector3& getCenter() const                    
;

Function is currently defined inline.


Back to the top of Feature


float getScore(const Feature* otherFeature) const ;

  float getScore(const Feature* otherFeature) const                                                                                                                                                             
;

Function is currently defined inline.


Back to the top of Feature


bool isValid() ;

  bool isValid()                            
;

Function is currently defined inline.


Back to the top of Feature


float weight() const ;

  float weight() const                    
;

Function is currently defined inline.


Back to the top of Feature


void getAtoms(vector< const Mol2Atom*>& atoms) const;

Return the atoms of the feature

  virtual void getAtoms(vector< const Mol2Atom*>& atoms) const;    

Back to the top of Feature


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.


Back to the top of Feature


float getRadiusForCenterFit(const Feature* otherFeature) const ;

  virtual float getRadiusForCenterFit(const Feature* otherFeature) const                                                                               
;

Function is currently defined inline.


Back to the top of Feature


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;     

Back to the top of Feature


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;     

Back to the top of Feature


void setCenter(const Vector3& center) ;

  void setCenter(const Vector3& center)                      
;

Function is currently defined inline.


Back to the top of Feature


void addRigidGroup(unsigned int groupID) ;

  void addRigidGroup(unsigned int groupID)                                    
;

Function is currently defined inline.


Back to the top of Feature


void setValidity(bool valid) ;

  void setValidity(bool valid)                             
;

Function is currently defined inline.


Back to the top of Feature


void setWeight(float w) ;

  void setWeight(float w)                 
;

Function is currently defined inline.


Back to the top of Feature


void setRadiusForCenterFit(float r) ;

  void setRadiusForCenterFit(float r)                             
;

Function is currently defined inline.


Back to the top of Feature


void resetValidityAndWeight() ;

  void resetValidityAndWeight()                                                                                     ;

Function is currently defined inline.


Back to the top of Feature


void dump(ostream& output) const;

  virtual void dump(ostream& output) const;    

Back to the top of Feature


void outputMol2(ostream& output) const;

  virtual void outputMol2(ostream& output) const;    

Back to the top of Feature


void outputMol2(const RigidTrans3& transformation, ostream& output) const;

output transformed feature center

  virtual void outputMol2(const RigidTrans3& transformation, ostream& output) const;    

Back to the top of Feature


friend ostream& operator<<(ostream& s, const Feature& feature) ;

  friend ostream& operator<<(ostream& s, const Feature& feature)                                                                                                                                                                                                                                                                       
;

Function is currently defined inline.


Back to the top of Feature


~Feature() ;

  virtual ~Feature()    
;

Function is currently defined inline.


Back to the top of Feature


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;    

Back to the top of Feature


unsigned int id;

The index of the feature in the molecule

  unsigned int id;

Back to the top of Feature


vector< unsigned int> rigidGroups;

  vector< unsigned int> rigidGroups;

Back to the top of Feature


Vector3 center_;

  Vector3 center_;

Back to the top of Feature


bool isValidFeature_;

  bool isValidFeature_;

Back to the top of Feature


FEATURE_TYPE type_;

  FEATURE_TYPE type_;

Back to the top of Feature


float weight_;

  float weight_;

Back to the top of Feature


float radiusForCenterFit_;

  float radiusForCenterFit_;

Back to the top of Feature


All Members

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_;

Back to the top of Feature


Ancestors

Class does not inherit from any other class.

Back to the top of Feature


Descendants

Back to the top of Feature


Generated from source by the Cocoon utilities on Mon Dec 21 11:44:46 2009 .

Report problems to jkotula@unimax.com