![]() |
Chemical Data Processing Library C++ API - Version 1.4.0
|
Calculator that fills a spatial grid with combined per-atom density contributions. More...
#include <AtomDensityGridCalculator.hpp>
Public Types | |
| typedef std::shared_ptr< AtomDensityGridCalculator > | SharedPointer |
A reference-counted smart pointer [SHPTR] for dynamically allocated AtomDensityGridCalculator instances. More... | |
| typedef std::function< double(const Math::Vector3D &, const Math::Vector3D &, const Chem::Atom &)> | DensityFunction |
| Type of the generic functor that evaluates the density contribution of an atom at a query position. More... | |
| typedef std::function< double(const Math::DVector &)> | DensityCombinationFunction |
| Type of the generic functor that combines per-atom density contributions into a single value. More... | |
Public Member Functions | |
| AtomDensityGridCalculator () | |
Constructs the AtomDensityGridCalculator instance. More... | |
| AtomDensityGridCalculator (const AtomDensityGridCalculator &calc) | |
Constructs a copy of the AtomDensityGridCalculator instance calc. More... | |
| AtomDensityGridCalculator (const DensityFunction &func) | |
Constructs the AtomDensityGridCalculator instance with the given density function. More... | |
| AtomDensityGridCalculator (const DensityFunction &density_func, const DensityCombinationFunction &comb_func) | |
Constructs the AtomDensityGridCalculator instance with the given density and density-combination functions. More... | |
| void | setDistanceCutoff (double dist) |
| Sets the distance cutoff beyond which atoms are not considered. More... | |
| double | getDistanceCutoff () const |
| Returns the currently configured distance cutoff. More... | |
| void | setDensityFunction (const DensityFunction &func) |
| Sets the density function used to evaluate per-atom contributions. More... | |
| const DensityFunction & | getDensityFunction () const |
| Returns the currently configured density function. More... | |
| void | setDensityCombinationFunction (const DensityCombinationFunction &func) |
| Sets the function used to combine per-atom density contributions. More... | |
| const DensityCombinationFunction & | getDensityCombinationFunction () const |
| Returns the currently configured density-combination function. More... | |
| void | setAtom3DCoordinatesFunction (const Chem::Atom3DCoordinatesFunction &func) |
| Specifies a function for the retrieval of atom 3D-coordinates for grid calculation. More... | |
| const Chem::Atom3DCoordinatesFunction & | getAtom3DCoordinatesFunction () const |
| Returns the function used for the retrieval of atom 3D-coordinates. More... | |
| void | calculate (const Chem::AtomContainer &atoms, Grid::DSpatialGrid &grid) |
| Calculates the combined per-atom density at each cell of grid for the given atoms. More... | |
| AtomDensityGridCalculator & | operator= (const AtomDensityGridCalculator &calc) |
| Copy assignment operator. More... | |
Static Public Attributes | |
| static constexpr double | DEF_DISTANCE_CUTOFF = 4.5 |
| Default cutoff distance beyond which atoms are not considered. More... | |
Calculator that fills a spatial grid with combined per-atom density contributions.
For each grid cell, the density contributions of all atoms within the configured cutoff distance are evaluated using a user-supplied density function and combined into a single cell value via a user-supplied combination function (defaulting to a sum).
| typedef std::shared_ptr<AtomDensityGridCalculator> CDPL::GRAIL::AtomDensityGridCalculator::SharedPointer |
A reference-counted smart pointer [SHPTR] for dynamically allocated AtomDensityGridCalculator instances.
| typedef std::function<double(const Math::Vector3D&, const Math::Vector3D&, const Chem::Atom&)> CDPL::GRAIL::AtomDensityGridCalculator::DensityFunction |
Type of the generic functor that evaluates the density contribution of an atom at a query position.
| typedef std::function<double(const Math::DVector&)> CDPL::GRAIL::AtomDensityGridCalculator::DensityCombinationFunction |
Type of the generic functor that combines per-atom density contributions into a single value.
| CDPL::GRAIL::AtomDensityGridCalculator::AtomDensityGridCalculator | ( | ) |
Constructs the AtomDensityGridCalculator instance.
| CDPL::GRAIL::AtomDensityGridCalculator::AtomDensityGridCalculator | ( | const AtomDensityGridCalculator & | calc | ) |
Constructs a copy of the AtomDensityGridCalculator instance calc.
| calc | The AtomDensityGridCalculator to copy. |
| CDPL::GRAIL::AtomDensityGridCalculator::AtomDensityGridCalculator | ( | const DensityFunction & | func | ) |
Constructs the AtomDensityGridCalculator instance with the given density function.
| func | The density function. |
| CDPL::GRAIL::AtomDensityGridCalculator::AtomDensityGridCalculator | ( | const DensityFunction & | density_func, |
| const DensityCombinationFunction & | comb_func | ||
| ) |
Constructs the AtomDensityGridCalculator instance with the given density and density-combination functions.
| density_func | The density function. |
| comb_func | The function used to combine per-atom density contributions. |
| void CDPL::GRAIL::AtomDensityGridCalculator::setDistanceCutoff | ( | double | dist | ) |
Sets the distance cutoff beyond which atoms are not considered.
| dist | The cutoff distance. |
| double CDPL::GRAIL::AtomDensityGridCalculator::getDistanceCutoff | ( | ) | const |
Returns the currently configured distance cutoff.
| void CDPL::GRAIL::AtomDensityGridCalculator::setDensityFunction | ( | const DensityFunction & | func | ) |
Sets the density function used to evaluate per-atom contributions.
| func | The density function. |
| const DensityFunction& CDPL::GRAIL::AtomDensityGridCalculator::getDensityFunction | ( | ) | const |
Returns the currently configured density function.
| void CDPL::GRAIL::AtomDensityGridCalculator::setDensityCombinationFunction | ( | const DensityCombinationFunction & | func | ) |
Sets the function used to combine per-atom density contributions.
| func | The density-combination function. |
| const DensityCombinationFunction& CDPL::GRAIL::AtomDensityGridCalculator::getDensityCombinationFunction | ( | ) | const |
Returns the currently configured density-combination function.
| void CDPL::GRAIL::AtomDensityGridCalculator::setAtom3DCoordinatesFunction | ( | const Chem::Atom3DCoordinatesFunction & | func | ) |
Specifies a function for the retrieval of atom 3D-coordinates for grid calculation.
| func | The atom 3D-coordinates function. |
| const Chem::Atom3DCoordinatesFunction& CDPL::GRAIL::AtomDensityGridCalculator::getAtom3DCoordinatesFunction | ( | ) | const |
Returns the function used for the retrieval of atom 3D-coordinates.
| void CDPL::GRAIL::AtomDensityGridCalculator::calculate | ( | const Chem::AtomContainer & | atoms, |
| Grid::DSpatialGrid & | grid | ||
| ) |
Calculates the combined per-atom density at each cell of grid for the given atoms.
| atoms | The atoms contributing to the density. |
| grid | The output grid populated with per-cell density values. |
| AtomDensityGridCalculator& CDPL::GRAIL::AtomDensityGridCalculator::operator= | ( | const AtomDensityGridCalculator & | calc | ) |
Copy assignment operator.
| calc | The other AtomDensityGridCalculator instance. |
|
staticconstexpr |
Default cutoff distance beyond which atoms are not considered.