00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef OB_CHIRAL_H
00021 #define OB_CHIRAL_H
00022
00023 #include <vector>
00024 #include <openbabel/matrix.h>
00025
00026 namespace OpenBabel
00027 {
00028 OBAPI void GraphPotentials(OBMol &mol, std::vector<double> &pot);
00029 OBAPI void construct_g_matrix(OBMol &mol, std::vector<std::vector<double> > &m);
00030 OBAPI void construct_c_matrix(OBMol &mol, std::vector<std::vector<double > > &m);
00031
00033 OBAPI double CalcSignedVolume(OBMol &mol,OBAtom*,bool ReZeroZ=true);
00034
00035 OBAPI double signed_volume(const vector3 &a, const vector3 &b, const vector3 &c, const vector3 &d);
00036 OBAPI void GetChirality(OBMol &mol, std::vector<int> &chirality);
00037
00039 OBAPI int GetParity4Ref(std::vector<unsigned int> pref);
00040 OBAPI bool CorrectChirality(OBMol &mol, OBAtom *atm, atomreftype i=input, atomreftype o=output);
00041 }
00042
00043 #endif // OB_CHIRAL_H
00044