29 #ifndef CDPL_CHEM_SURFACEATOMEXTRACTOR_HPP
30 #define CDPL_CHEM_SURFACEATOMEXTRACTOR_HPP
70 static constexpr
double DEF_PROBE_RADIUS = 1.2;
74 static constexpr
double DEF_GRID_OVERSIZE = 5.0;
78 static constexpr
double DEF_GRID_STEP_SIZE = 0.75;
82 static constexpr
double DEF_MIN_SURFACE_ACC = 0.01;
86 static constexpr std::size_t DEF_NUM_TEST_POINTS = 250;
192 typedef std::vector<double> AtomRadiusTable;
193 typedef std::vector<std::size_t> AtomIndexList;
194 typedef std::shared_ptr<AtomIndexList> AtomIndexListPtr;
195 typedef std::vector<AtomIndexListPtr> GridAtomLookupTable;
200 void transformCoordinates();
202 void initGridAtomLookupTable();
203 void extractSurfaceAtoms(
Fragment& frag);
205 void initTestPoints();
211 std::size_t numTestPoints;
215 AtomRadiusTable atomRadii;
216 AtomIndexList atomIndices;
218 Vector3DArray atomCoords;
219 Vector3DArray testPoints;
222 std::size_t gridXSize;
223 std::size_t gridYSize;
224 std::size_t gridZSize;
225 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 implementation of the Chem::MolecularGraph interface that stores references to selectable Ch...
Definition: Fragment.hpp:60
Abstract base class for data structures that represent chemical structures as molecular graphs.
Definition: MolecularGraph.hpp:60
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:87
CVector< double, 3 > Vector3D
Bounded 3 element vector holding floating-point values of type double.
Definition: Vector.hpp:3218
The namespace of the Chemical Data Processing Library.