Chemical Data Processing Library C++ API - Version 1.4.0
MMFF94OutOfPlaneBendingInteractionParameterizer.hpp
Go to the documentation of this file.
1 /*
2  * MMFF94OutOfPlaneBendingInteractionParameterizer.hpp
3  *
4  * This file is part of the Chemical Data Processing Toolkit
5  *
6  * Copyright (C) 2003 Thomas Seidel <thomas.seidel@univie.ac.at>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public License
19  * along with this library; see the file COPYING. If not, write to
20  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21  * Boston, MA 02111-1307, USA.
22  */
23 
29 #ifndef CDPL_FORCEFIELD_MMFF94OUTOFPLANEBENDINGINTERACTIONPARAMETERIZER_HPP
30 #define CDPL_FORCEFIELD_MMFF94OUTOFPLANEBENDINGINTERACTIONPARAMETERIZER_HPP
31 
32 #include <vector>
33 #include <memory>
34 
42 
43 
44 namespace CDPL
45 {
46 
47  namespace Chem
48  {
49 
50  class MolecularGraph;
51  class Atom;
52  } // namespace Chem
53 
54  namespace ForceField
55  {
56 
69  {
70 
71  public:
75  typedef std::shared_ptr<MMFF94OutOfPlaneBendingInteractionParameterizer> SharedPointer;
76 
81 
91  bool strict);
92 
98 
104 
110 
116 
122 
131  void parameterize(const Chem::MolecularGraph& molgraph, MMFF94OutOfPlaneBendingInteractionList& ia_list, bool strict);
132 
133  private:
134  typedef std::vector<const Chem::Atom*> AtomList;
135 
136  double getForceConstant(const Chem::MolecularGraph& molgraph, unsigned int ctr_atom_type,
137  std::size_t ctr_atom_idx, const AtomList& nbr_atoms, bool strict) const;
138 
139  double getForceConstant(const Chem::MolecularGraph& molgraph, unsigned int ctr_atom_type,
140  std::size_t ctr_atom_idx, unsigned int nbr_atom_types[3], const AtomList& nbr_atoms) const;
141 
142  InteractionFilterFunction4 filterFunc;
143  MMFF94NumericAtomTypeFunction atomTypeFunc;
147  AtomList nbrAtoms;
148  };
149  } // namespace ForceField
150 } // namespace CDPL
151 
152 #endif // CDPL_FORCEFIELD_MMFF94OUTOFPLANEBENDINGINTERACTIONPARAMETERIZER_HPP
Definition of the preprocessor macro CDPL_FORCEFIELD_API.
#define CDPL_FORCEFIELD_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
Type declaration of generic wrapper class types for storing user-defined interaction filtering predic...
Definition of class CDPL::ForceField::MMFF94AtomTypePropertyTable.
Declaration of type CDPL::ForceField::MMFF94OutOfPlaneBendingInteractionList.
Definition of class CDPL::ForceField::MMFF94OutOfPlaneBendingParameterTable.
Definition of class CDPL::ForceField::MMFF94PrimaryToParameterAtomTypeMap.
Type declaration of generic wrapper classes for storing user-defined functions for the retrieval of M...
Abstract base class for representations of a chemical structure as a graph of bonded atoms.
Definition: MolecularGraph.hpp:57
std::shared_ptr< MMFF94AtomTypePropertyTable > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated MMFF94AtomTypePropertyTable insta...
Definition: MMFF94AtomTypePropertyTable.hpp:72
Detects and parameterizes the MMFF94 out-of-plane bending interactions of a molecular graph.
Definition: MMFF94OutOfPlaneBendingInteractionParameterizer.hpp:69
void setAtomTypeFunction(const MMFF94NumericAtomTypeFunction &func)
Sets the function used to look up the MMFF94 numeric atom type of an atom.
void setFilterFunction(const InteractionFilterFunction4 &func)
Sets the filter function used to skip atom quadruplets during parameterization.
void setParameterAtomTypeMap(const MMFF94PrimaryToParameterAtomTypeMap::SharedPointer &map)
Sets the map used to translate primary atom types into their corresponding parameter atom types.
std::shared_ptr< MMFF94OutOfPlaneBendingInteractionParameterizer > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated MMFF94OutOfPlaneBendingInteractio...
Definition: MMFF94OutOfPlaneBendingInteractionParameterizer.hpp:75
MMFF94OutOfPlaneBendingInteractionParameterizer()
Constructs an MMFF94OutOfPlaneBendingInteractionParameterizer instance using the default MMFF94 param...
void parameterize(const Chem::MolecularGraph &molgraph, MMFF94OutOfPlaneBendingInteractionList &ia_list, bool strict)
Perceives the MMFF94 out-of-plane bending interactions for molgraph and outputs the corresponding par...
void setAtomTypePropertyTable(const MMFF94AtomTypePropertyTable::SharedPointer &table)
Sets the table providing MMFF94 numeric atom type property data (used to identify trigonal centers).
void setOutOfPlaneBendingParameterTable(const MMFF94OutOfPlaneBendingParameterTable::SharedPointer &table)
Sets the table providing the out-of-plane bending force constants.
MMFF94OutOfPlaneBendingInteractionParameterizer(const Chem::MolecularGraph &molgraph, MMFF94OutOfPlaneBendingInteractionList &ia_list, bool strict)
Constructs the parameterizer and processes the molecular graph molgraph.
std::shared_ptr< MMFF94OutOfPlaneBendingParameterTable > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated MMFF94OutOfPlaneBendingParameterT...
Definition: MMFF94OutOfPlaneBendingParameterTable.hpp:67
std::shared_ptr< MMFF94PrimaryToParameterAtomTypeMap > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated MMFF94PrimaryToParameterAtomTypeM...
Definition: MMFF94PrimaryToParameterAtomTypeMap.hpp:67
std::function< unsigned int(const Chem::Atom &)> MMFF94NumericAtomTypeFunction
Generic wrapper class used to store a user-defined numeric MMFF94 atom type retrieval function.
Definition: MMFF94PropertyFunctions.hpp:57
std::function< bool(const Chem::Atom &, const Chem::Atom &, const Chem::Atom &, const Chem::Atom &)> InteractionFilterFunction4
Generic wrapper for storing user-defined four-atom interaction filtering functions (see [FUNWRP]).
Definition: InteractionFilterFunctions.hpp:72
The namespace of the Chemical Data Processing Library.