[ ligand_pharma | Source | Keywords | Summary | Ancestors | All Members | Descendants ]
public: | |
// Constructors | |
Mol2Atom(); | |
Mol2Atom(const Vector3& p, const unsigned short aid, const string atom_name, const string atom_type, const ELEMENT element_, const unsigned int subst_id, const string subst_name, const float partialCharge_); | |
explicit | Mol2Atom(const char* const mol2rec); |
// Inspectors | |
unsigned short | getAtomId() const ; |
string | getAtomName() const ; |
string | getAtomType() const ; |
unsigned int | getSubstId() const ; |
string | getSubstName() const ; |
float | getPartialCharge() const ; |
float | getRadius() const; |
bool | isHetero() const ; |
ELEMENT | getElement() const ; |
static ELEMENT | getElement(const string atomName, const string sybylAtomType); |
// Modifiers | |
void | setPartialCharge(float charge) ; |
// io | |
void | dumpInfo(ostream& output) const; |
friend ostream& | operator<<(ostream& s, const Mol2Atom& at); |
ostream& | output2PDB(ostream& s, unsigned int atomOffset ) const; |
static void | buildAtomType2ElementMap(); |
static void | buildElement2RadiusMap(); |
protected: | |
unsigned short | atomId; |
string | atomName; |
string | atomType; |
ELEMENT | element; |
unsigned int | substId; |
string | substName; |
float | partialCharge; |
copyright: SAMBA Group , Tel-Aviv Univ. Israel, 2003.
An empty constructor that gives the atom members null values
Mol2Atom();
An explicit constructor
Mol2Atom(const Vector3& p, const unsigned short aid, const string atom_name, const string atom_type, const ELEMENT element_, const unsigned int subst_id, const string subst_name, const float partialCharge_);
explicit Mol2Atom(const char* const mol2rec);
A constructor that intiates an atom type from a line of a Mol2 record
explicit Mol2Atom(const char* const mol2rec);
unsigned short getAtomId() const ;
returns the atom id in the mol2 file
unsigned short getAtomId() const ;
Function is currently defined inline.
returns atom name
string getAtomName() const ;
Function is currently defined inline.
returns atom Sybyl type
string getAtomType() const ;
Function is currently defined inline.
unsigned int getSubstId() const ;
returns substructure id
unsigned int getSubstId() const ;
Function is currently defined inline.
returns substructure name
string getSubstName() const ;
Function is currently defined inline.
float getPartialCharge() const ;
float getPartialCharge() const ;
Function is currently defined inline.
float getRadius() const;
bool isHetero() const ;
Function is currently defined inline.
ELEMENT getElement() const ;
Function is currently defined inline.
ELEMENT getElement(const string atomName, const string sybylAtomType);
Determines the periodic table element according to the given SYBYL atom type
static ELEMENT getElement(const string atomName, const string sybylAtomType);
void setPartialCharge(float charge) ;
void setPartialCharge(float charge) ;
Function is currently defined inline.
void dumpInfo(ostream& output) const;
void dumpInfo(ostream& output) const;
friend ostream& operator<<(ostream& s, const Mol2Atom& at);
Writing back the mol2 line - without the endline
friend ostream& operator<<(ostream& s, const Mol2Atom& at);
ostream& output2PDB(ostream& s, unsigned int atomOffset ) const;
Writing back in PDB format
ostream& output2PDB(ostream& s, unsigned int atomOffset = 0) const;
void buildAtomType2ElementMap();
This method builds a static hash that maps sybyl atom type in upper case to the appropriate atom element.
static void buildAtomType2ElementMap();
void buildElement2RadiusMap();
builds mapping between element type and radius
static void buildElement2RadiusMap();
unsigned short atomId; // atom index
string atomName; // atom name
string atomType; // Sybyl atom type
ELEMENT element; // The periodic table element
unsigned int substId; // id of the substructure (not in use now, may cause problems with more than one substr)
string substName; // name of the substructure (not in use now, may cause problems with more than one substr)
float partialCharge; // atom partialCharge
public: | ||
---|---|---|
// Constructors | ||
explicit | Mol2Atom(const char* const mol2rec); | |
// Inspectors | ||
unsigned short | getAtomId() const ; | |
string | getAtomName() const ; | |
string | getAtomType() const ; | |
unsigned int | getSubstId() const ; | |
string | getSubstName() const ; | |
float | getPartialCharge() const ; | |
float | getRadius() const; | |
bool | isHetero() const ; | |
ELEMENT | getElement() const ; | |
static ELEMENT | getElement(const string atomName, const string sybylAtomType); | |
// Modifiers | ||
void | setPartialCharge(float charge) ; | |
// io | ||
void | dumpInfo(ostream& output) const; | |
friend ostream& | operator<<(ostream& s, const Mol2Atom& at); | |
ostream& | output2PDB(ostream& s, unsigned int atomOffset ) const; | |
static void | buildAtomType2ElementMap(); | |
static void | buildElement2RadiusMap(); | |
protected: | ||
unsigned short | atomId; | |
string | atomName; | |
string | atomType; | |
ELEMENT | element; | |
unsigned int | substId; | |
string | substName; | |
float | partialCharge; |
Report problems to jkotula@unimax.com