Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Fragmentation/Exporters/SaturatedFragment.hpp

    rc39675 r98a293b  
    1818#include <string>
    1919
     20#include "Atom/atom_bondedparticleinfo.hpp"
    2021#include "Bond/bond.hpp"
    2122#include "Fragmentation/KeySet.hpp"
    2223#include "Fragmentation/HydrogenSaturation_enum.hpp"
    2324#include "Parser/FormatParserStorage.hpp"
     25
     26#include "LinearAlgebra/Vector.hpp"
    2427
    2528class atom;
     
    4245  typedef std::set<KeySet> KeySetsInUse_t;
    4346
     47  //!> List of points giving saturation positions for a single bond neighbor
     48  typedef std::list<Vector> SaturationsPositions_t;
     49  //!> map for one atom, containing the saturation points for all its neighbors
     50  typedef std::map<int, SaturationsPositions_t> SaturationsPositionsPerNeighbor_t;
     51  //!> containing the saturation points over all desired atoms required
     52  typedef std::map<int, SaturationsPositionsPerNeighbor_t> GlobalSaturationPositions_t;
     53
    4454  /** Constructor of SaturatedFragment requires \a set which we are tightly
    4555   * associated.
     
    4858   * \param _container container to add KeySet as in-use
    4959   * \param _hydrogens pool with hydrogens for saturation
     60   * \param _globalsaturationpositions saturation positions to be used
    5061   */
    5162  SaturatedFragment(
     
    5465      HydrogenPool &_hydrogens,
    5566      const enum HydrogenTreatment _treatment,
    56       const enum HydrogenSaturation saturation);
     67      const enum HydrogenSaturation saturation,
     68      const GlobalSaturationPositions_t &_globalsaturationpositions);
    5769
    5870  /** Destructor of class SaturatedFragment.
     
    100112  /** Helper function to lease and bring in place saturation hydrogens.
    101113   *
     114   * Here, we use local information to calculate saturation positions.
     115   *
    102116   */
    103117  void saturate();
     118
     119  /** Helper function to lease and bring in place saturation hydrogens.
     120   *
     121   * Here, saturation positions have to be calculated before and are fully
     122   * stored in \a _globalsaturationpositions.
     123   *
     124   * \param_globalsaturationpositions
     125   */
     126  void saturate(const GlobalSaturationPositions_t &_globalsaturationpositions);
     127
     128  /** Replaces all cut bonds with respect to the given atom by hydrogens.
     129   *
     130   * \param _atom atom whose cut bonds to saturate
     131   * \param _cutbonds list of cut bonds for \a _atom
     132   * \return true - bonds saturated, false - something went wrong
     133   */
     134  bool saturateAtom(atom * const _atom, const BondList &_cutbonds);
    104135
    105136  /** Helper function to get a hydrogen replacement for a given \a replacement.
     
    109140   */
    110141  atom * const getHydrogenReplacement(atom * const replacement);
     142
     143  /** Sets a saturation hydrogen at the given position in place of \a _father.
     144   *
     145   * \param _OwnerAtom atom "owning" the hydrogen (i.e. the one getting saturated)
     146   * \param _position new position relative to \a _OwnerAtom
     147   * \param _distance scale factor to the distance (default 1.)
     148   * \param _father bond partner of \a _OwnerAtom that is replaced
     149   */
     150  const atom& setHydrogenReplacement(
     151      const atom * const _OwnerAtom,
     152      const Vector &_position,
     153      const double _distance,
     154      atom * const _father);
    111155
    112156  /** Leases and adds a Hydrogen atom in replacement for the given atom \a *partner in bond with a *origin.
Note: See TracChangeset for help on using the changeset viewer.