38 unsigned int _NBaseCoords;
40 std::vector<double*> _c;
42 std::vector<std::pair<OBAtom**,std::vector<int> > > _vrotor;
45 std::vector<std::vector<double> > _vres;
47 std::vector<unsigned char*> _vrotamer;
49 std::vector<std::vector<int> > _vrings;
51 std::vector<std::vector<double> > _vringTors;
69 void Setup(
OBMol &mol,
unsigned char*ref,
int nrotors);
73 return (
unsigned int)_vrotor.size();
78 return (
unsigned int)_vrotamer.size();
81 void AddRotamer(
double*);
83 void AddRotamer(
int *key);
85 void AddRotamer(std::vector<int> key);
87 void AddRotamer(
unsigned char *key);
89 void AddRotamers(
unsigned char *arr,
int nconf);
91 void GetReferenceArray(
unsigned char*)
const;
97 return _vrotamer.begin();
101 return _vrotamer.end();
107 std::vector<double*> CreateConformerList(
OBMol& mol);
111 void ExpandConformerList(
OBMol&mol,std::vector<double*>& confs);
113 bool SetCurrentCoordinates(
OBMol &mol, std::vector<int> arr);
117 void SetBaseCoordinateSets(
OBMol& mol);
123 void SetBaseCoordinateSets(std::vector<double*> bc,
unsigned int N);
128 return static_cast<unsigned int> (_c.size());
134 return (i<_c.size()) ? _c[i] : NULL;
149 #endif // OB_ROTAMER_H Base class for generic data.
Definition: base.h:188
Supports a set of rotamer coordinate sets for some number of potentially rotatable bonds...
Definition: rotamer.h:35
unsigned int NumBaseCoordinateSets() const
Definition: rotamer.h:126
OBRotamerList()
Definition: rotamer.h:54
int Swab(int)
Swap Byte instruction (i.e., handle transfers between endian forms)
Definition: rotamer.cpp:104
Rotate torsional according to rotor rules.
Given an OBMol, set up a list of possibly rotatable torsions,.
Definition: rotor.h:457
Information for generating & manipulating rotamers, i.e. OBRotamerList.
Definition: base.h:85
Molecule Class.
Definition: mol.h:118
unsigned int NumRotors() const
Definition: rotamer.h:71
std::vector< unsigned char * >::iterator EndRotamer()
Definition: rotamer.h:99
double * GetBaseCoordinateSet(unsigned int i) const
Get a pointer to a specific base pointer (i.e., specific conformer)
Definition: rotamer.h:132
std::vector< unsigned char * >::iterator BeginRotamer()
Definition: rotamer.h:95
unsigned int NumAtoms() const
Definition: rotamer.h:138
Handle generic data classes. Custom data for atoms, bonds, etc.
Base Class.
Definition: base.h:239
unsigned int NumRotamers() const
Definition: rotamer.h:76
Global namespace for all Open Babel code.
Definition: alias.h:22