Open Babel
3.0
|
#include <openbabel/graphsym.h>
Public Member Functions | |
OBGraphSym (OBMol *pmol, const OBBitVec *frag_atoms=NULL) | |
virtual | ~OBGraphSym () |
int | GetSymmetry (std::vector< unsigned int > &symmetry_classes) |
void | ClearSymmetry () |
Static Public Attributes | |
static const unsigned int | NoSymmetryClass = 0x7FFFFFFF |
Handle and perceive graph symmtery for canonical numbering .
OBGraphSym | ( | OBMol * | pmol, |
const OBBitVec * | frag_atoms = NULL |
||
) |
Constructor.
|
virtual |
Destructor.
int GetSymmetry | ( | std::vector< unsigned int > & | symmetry_classes | ) |
Calculate the symmetry classes for the molecule. The result will be stored in symmetry_classes
.
The results in symmetry_classes
will be ordered by symmetry classes. Use the OBAtom* pointer in the std::pair to match the atoms with the right symmetry classes.
Referenced by OpenBabel::FindAutomorphisms(), and OBRotorList::RemoveSymVals().
void ClearSymmetry | ( | ) |
Clear the symmetry classes data stored in the molecule specified when construting the OBGraphSym object.
Referenced by OBGraphSym::GetSymmetry().
|
static |
Referenced by OpenBabel::ComparePairSecond(), OBGraphSym::GetSymmetry(), and OBGraphSym::~OBGraphSym().