Open Babel
3.0
|
#include <openbabel/rotor.h>
Public Member Functions | |
OBRotorRules () | |
~OBRotorRules () | |
void | ParseLine (const char *) |
size_t | GetSize () |
void | SetFilename (std::string &s) |
void | GetRotorIncrements (OBMol &mol, OBBond *bond, int refs[4], std::vector< double > &vals, double &delta) |
void | Quiet () |
void | Init () |
void | SetReadDirectory (char *dir) |
void | SetEnvironmentVariable (char *var) |
Protected Attributes | |
bool | _init |
const char * | _dataptr |
std::string | _filename |
std::string | _dir |
std::string | _subdir |
std::string | _envvar |
Database of default hybridization torsional rules and SMARTS-defined OBRotorRule objects.
Use to automatically evaluate potentially rotatable bonds to generate lists of dihedral angles to consider. e.g., rotamer/conformer energy calculations
OBRotorRules | ( | ) |
~OBRotorRules | ( | ) |
|
virtual |
Specified by particular table classes (parses an individual data line)
Reimplemented from OBGlobalDataBase.
|
inlinevirtual |
Reimplemented from OBGlobalDataBase.
|
inline |
Set the filename to be used for the database. Default = torlib.txt.
Referenced by OBRotorList::Init().
void GetRotorIncrements | ( | OBMol & | mol, |
OBBond * | bond, | ||
int | refs[4], | ||
std::vector< double > & | vals, | ||
double & | delta | ||
) |
Determine the torsional angles to evaluate based on the database
mol | molecule to evaluate |
bond | rotatable bond to evaluate |
refs | set to be the atom indexes (in mol) of the dihedral angle |
vals | set to be the list of angles to evaluate (in radians) |
delta | potential dihedral angle steps (in degrees) |
|
inline |
Turn off debugging output from GetRotorIncrements()
Referenced by OBRotorList::SetQuiet().
|
inherited |
Read in the data file, falling back as needed.
Referenced by OBRotorList::Init().
|
inlineinherited |
Set the directory before calling Init()
|
inlineinherited |
Set the environment variable to use before calling Init()
|
protectedinherited |
Whether the data been read already.
|
protectedinherited |
Default data table if file is unreadable.
|
protectedinherited |
File to search for.
|
protectedinherited |
Data directory for file if _envvar fails.
|
protectedinherited |
Subdirectory (if using environment variable)
|
protectedinherited |
Environment variable to check first.