OBTorsion Class Reference
Used to hold the torsion data for a single rotatable bond and all four atoms around it. More...
#include <openbabel/generic.h>
Public Member Functions | |
| OBTorsion (const OBTorsion &) | |
| ~OBTorsion () | |
| OBTorsion & | operator= (const OBTorsion &) |
| void | Clear () |
| bool | Empty () |
| bool | AddTorsion (OBAtom *a, OBAtom *b, OBAtom *c, OBAtom *d) |
| bool | AddTorsion (quad< OBAtom *, OBAtom *, OBAtom *, OBAtom * > &atoms) |
| bool | SetAngle (double radians, unsigned int index=0) |
| bool | SetData (OBBond *) |
| bool | GetAngle (double &radians, unsigned int index=0) |
| unsigned int | GetBondIdx () |
| unsigned int | GetSize () const |
| std::pair< OBAtom *, OBAtom * > | GetBC () |
| std::vector< triple< OBAtom *, OBAtom *, double > > | GetADs () |
| bool | IsProtonRotor () |
Protected Member Functions | |
| OBTorsion () | |
| OBTorsion (OBAtom *, OBAtom *, OBAtom *, OBAtom *) | |
| std::vector< quad< OBAtom *, OBAtom *, OBAtom *, OBAtom * > > | GetTorsions () |
Protected Attributes | |
| std::pair< OBAtom *, OBAtom * > | _bc |
| std::vector< triple< OBAtom *, OBAtom *, double > > | _ads |
Friends | |
| class | OBMol |
| class | OBTorsionData |
Detailed Description
Used to hold the torsion data for a single rotatable bond and all four atoms around it.Constructor & Destructor Documentation
| OBTorsion | ( | ) | [inline, protected] |
| ~OBTorsion | ( | ) | [inline] |
Member Function Documentation
Returns all the 4 atom sets in OBTorsion.
| void Clear | ( | void | ) |
| bool Empty | ( | ) | [inline] |
Referenced by OBTorsion::AddTorsion().
adds a new torsion to the OBTorsion object
| bool SetAngle | ( | double | radians, | |
| unsigned int | index = 0 | |||
| ) |
| bool SetData | ( | OBBond * | ) | [inline] |
| bool GetAngle | ( | double & | radians, | |
| unsigned int | index = 0 | |||
| ) |
| unsigned int GetBondIdx | ( | ) |
Gets the bond index of the central bond
- Returns:
- int bond index
| unsigned int GetSize | ( | ) | const [inline] |
Referenced by OBMol::FindTorsions().
Gets the two central atoms of ABCD torsion
- Returns:
- pair<OBAtom*,OBAtom*>
Gets the vector of distal atoms of ABCD torsion
- Returns:
- vector of A,D atom pointers and a double
| bool IsProtonRotor | ( | ) |
determines if torsion has only protons on either the a or d end
- Returns:
- boolean
Friends And Related Function Documentation
friend class OBMol [friend] |
friend class OBTorsionData [friend] |
Member Data Documentation
double is angle in radians
Referenced by OBTorsion::AddTorsion(), OBTorsion::Clear(), OBTorsion::GetAngle(), OBTorsion::GetTorsions(), OBTorsion::IsProtonRotor(), OBTorsion::OBTorsion(), OBTorsion::operator=(), and OBTorsion::SetAngle().
The documentation for this class was generated from the following files:

