BALL
1.4.2
|
#include <BALL/STRUCTURE/addHydrogenProcessor.h>
Public Member Functions | |
AddHydrogenProcessor () | |
virtual | ~AddHydrogenProcessor () |
AddHydrogenProcessor (const AddHydrogenProcessor &hbp) | |
virtual bool | start () |
virtual Processor::Result | operator() (Composite &composite) |
Size | getConnectivity (Atom &atom) |
void | setRings (const vector< vector< Atom * > > &rings) |
Size | getNumberOfAddedHydrogens () |
Public Member Functions inherited from BALL::UnaryProcessor< Composite > | |
UnaryProcessor () | |
UnaryProcessor (const UnaryProcessor &) | |
virtual | ~UnaryProcessor () |
virtual bool | finish () |
Protected Member Functions | |
Size | countBondOrders (Atom &atom) |
void | addHydrogen_ (Atom &atom, Vector3 position) |
bool | isRingAtom_ (Atom &atom) |
vector< Atom * > | getPartners_ (Atom &atom) |
Vector3 | getNormal_ (const Vector3 &v) |
bool | normalize_ (Vector3 &v) |
bool | hasMultipleBond_ (Atom &atom) |
float | getBondLength_ (Position element) |
Protected Attributes | |
HashSet< Atom * > | ring_atoms_ |
Position | atom_nr_ |
Atom * | last_atom_ |
Size | nr_hydrogens_ |
Additional Inherited Members | |
Public Types inherited from BALL::UnaryFunctor< Composite, Processor::Result > | |
typedef Processor::Result | result_type |
typedef Composite | argument_type |
typedef Composite & | argument_reference |
typedef const Composite & | const_argument_reference |
typedef Composite * | argument_pointer |
typedef const Composite * | const_argument_pointer |
Saturate atoms with hydrogen atoms. Only works with main group elements. The formal charge of the atoms are taken into account. The placement of the hydrogen atoms only depends on the direct neighbour atoms. No additional optimization of the atom placement is done. The optimal bond lengths are calculized by a modified Schomaker-Stevenson rule (adapted from the MMFF94 force field).
Usage:
Definition at line 47 of file addHydrogenProcessor.h.
BALL::AddHydrogenProcessor::AddHydrogenProcessor | ( | ) |
|
virtual |
BALL::AddHydrogenProcessor::AddHydrogenProcessor | ( | const AddHydrogenProcessor & | hbp | ) |
|
inline |
Definition at line 74 of file addHydrogenProcessor.h.
|
virtual |
operator ()
Reimplemented from BALL::UnaryProcessor< Composite >.
void BALL::AddHydrogenProcessor::setRings | ( | const vector< vector< Atom * > > & | rings | ) |
|
virtual |
start method
Reimplemented from BALL::UnaryProcessor< Composite >.
|
protected |
Definition at line 89 of file addHydrogenProcessor.h.
|
protected |
Definition at line 90 of file addHydrogenProcessor.h.
|
protected |
Definition at line 91 of file addHydrogenProcessor.h.
Definition at line 88 of file addHydrogenProcessor.h.