29 #ifndef CDPL_CHEM_SURFACEATOMEXTRACTOR_HPP
30 #define CDPL_CHEM_SURFACEATOMEXTRACTOR_HPP
69 static constexpr
double DEF_PROBE_RADIUS = 1.2;
73 static constexpr
double DEF_GRID_OVERSIZE = 5.0;
77 static constexpr
double DEF_GRID_STEP_SIZE = 0.75;
81 static constexpr
double DEF_MIN_SURFACE_ACC = 0.01;
85 static constexpr std::size_t DEF_NUM_TEST_POINTS = 250;
191 typedef std::vector<double> AtomRadiusTable;
192 typedef std::vector<std::size_t> AtomIndexList;
193 typedef std::shared_ptr<AtomIndexList> AtomIndexListPtr;
194 typedef std::vector<AtomIndexListPtr> GridAtomLookupTable;
199 void transformCoordinates();
201 void initGridAtomLookupTable();
202 void extractSurfaceAtoms(
Fragment& frag);
204 void initTestPoints();
210 std::size_t numTestPoints;
214 AtomRadiusTable atomRadii;
215 AtomIndexList atomIndices;
217 Vector3DArray atomCoords;
218 Vector3DArray testPoints;
221 std::size_t gridXSize;
222 std::size_t gridYSize;
223 std::size_t gridZSize;
224 GridAtomLookupTable gridAtomLookup;
Type declaration of a generic wrapper class for storing user-defined Chem::Atom 3D-coordinates functi...
Definition of the preprocessor macro CDPL_CHEM_API.
#define CDPL_CHEM_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
Definition of matrix data types.
Definition of vector data types.
Common interface for data structures that support a random access to stored Chem::Atom instances.
Definition: AtomContainer.hpp:55
Concrete Chem::MolecularGraph implementation that stores references to a selectable subset of atoms a...
Definition: Fragment.hpp:57
Abstract base class for representations of a chemical structure as a graph of bonded atoms.
Definition: MolecularGraph.hpp:57
CDPL_CHEM_API void calcBoundingBox(const AtomContainer &cntnr, Math::Vector3D &min, Math::Vector3D &max, const Atom3DCoordinatesFunction &coords_func, bool reset=true)
Computes the axis-aligned bounding box enclosing the atoms of cntnr.
std::function< const Math::Vector3D &(const Chem::Atom &)> Atom3DCoordinatesFunction
Generic wrapper class used to store a user-defined Chem::Atom 3D-coordinates function.
Definition: Atom3DCoordinatesFunction.hpp:43
VectorArray< Vector3D > Vector3DArray
Array storing vectors of type Math::Vector3D.
Definition: VectorArray.hpp:85
CVector< double, 3 > Vector3D
Bounded 3 element vector holding floating point values of type double.
Definition: Vector.hpp:2937
The namespace of the Chemical Data Processing Library.