![]() |
RDKit
Open-source cheminformatics and machine learning.
|
The class for representing 2D or 3D conformation of a molecule. More...
#include <Conformer.h>
Public Member Functions | |
| Conformer () | |
| Constructor. More... | |
| Conformer (unsigned int numAtoms) | |
| Constructor with number of atoms specified ID specification. More... | |
| Conformer (const Conformer &other) | |
| Copy Constructor: initialize from a second conformation. More... | |
| ~Conformer () | |
| Destructor. More... | |
| void | resize (unsigned int size) |
| void | reserve (unsigned int size) |
| Reserve more space for atom position. More... | |
| ROMol & | getOwningMol () const |
| Get the molecule that oqns this conformation. More... | |
| const RDGeom::POINT3D_VECT & | getPositions () const |
| Get a const reference to the vector of atom positions. More... | |
| RDGeom::POINT3D_VECT & | getPositions () |
| Get a reference to the atom positions. More... | |
| const RDGeom::Point3D & | getAtomPos (unsigned int atomId) const |
| Get the position of the specified atom. More... | |
| template<class U > | |
| const RDGeom::Point3D & | getAtomPos (U atomId) const |
| overload More... | |
| RDGeom::Point3D & | getAtomPos (unsigned int atomId) |
| Get the position of the specified atom. More... | |
| template<class U > | |
| RDGeom::Point3D & | getAtomPos (U atomId) |
| overload More... | |
| void | setAtomPos (unsigned int atomId, const RDGeom::Point3D &position) |
| Set the position of the specified atom. More... | |
| template<class U > | |
| void | setAtomPos (U atomId, const RDGeom::Point3D &position) |
| overload More... | |
| unsigned int | getId () const |
| get the ID of this conformer More... | |
| void | setId (unsigned int id) |
| set the ID of this conformer More... | |
| unsigned int | getNumAtoms () const |
| Get the number of atoms. More... | |
| bool | is3D () const |
| void | set3D (bool v) |
Protected Member Functions | |
| void | setOwningMol (ROMol *mol) |
| Set owning moelcule. More... | |
| void | setOwningMol (ROMol &mol) |
| Set owning moelcule. More... | |
Friends | |
| class | ROMol |
The class for representing 2D or 3D conformation of a molecule.
This class contains
Definition at line 41 of file Conformer.h.
|
inline |
Constructor.
Definition at line 46 of file Conformer.h.
|
inline |
Constructor with number of atoms specified ID specification.
Definition at line 49 of file Conformer.h.
| RDKit::Conformer::Conformer | ( | const Conformer & | other | ) |
Copy Constructor: initialize from a second conformation.
|
inline |
Destructor.
Definition at line 62 of file Conformer.h.
| const RDGeom::Point3D& RDKit::Conformer::getAtomPos | ( | unsigned int | atomId | ) | const |
Get the position of the specified atom.
|
inline |
overload
Definition at line 84 of file Conformer.h.
| RDGeom::Point3D& RDKit::Conformer::getAtomPos | ( | unsigned int | atomId | ) |
Get the position of the specified atom.
|
inline |
overload
Definition at line 92 of file Conformer.h.
|
inline |
get the ID of this conformer
Definition at line 110 of file Conformer.h.
|
inline |
Get the number of atoms.
Definition at line 116 of file Conformer.h.
|
inline |
Get the molecule that oqns this conformation.
Definition at line 72 of file Conformer.h.
| const RDGeom::POINT3D_VECT& RDKit::Conformer::getPositions | ( | ) | const |
Get a const reference to the vector of atom positions.
Referenced by RDKit::Drawing::DrawMol().
| RDGeom::POINT3D_VECT& RDKit::Conformer::getPositions | ( | ) |
Get a reference to the atom positions.
|
inline |
Definition at line 118 of file Conformer.h.
|
inline |
Reserve more space for atom position.
Definition at line 69 of file Conformer.h.
|
inline |
Resize the conformer so that more atoms location can be added. Useful, for e.g., when adding hydrogens
Definition at line 66 of file Conformer.h.
|
inline |
Definition at line 119 of file Conformer.h.
|
inline |
Set the position of the specified atom.
Definition at line 97 of file Conformer.h.
|
inline |
overload
Definition at line 106 of file Conformer.h.
|
inline |
set the ID of this conformer
Definition at line 113 of file Conformer.h.
|
protected |
Set owning moelcule.
|
protected |
Set owning moelcule.
|
friend |
Definition at line 43 of file Conformer.h.