29 #ifndef CDPL_CHEM_ENTITY3DCONTAINERFUNCTIONS_HPP
30 #define CDPL_CHEM_ENTITY3DCONTAINERFUNCTIONS_HPP
43 class Entity3DContainer;
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 class CDPL::Math::VectorArray.
Common interface for data structures that support a random access to stored Chem::Entity3D instances.
Definition: Entity3DContainer.hpp:53
CDPL_CHEM_API bool align3DCoordinates(Entity3DContainer &cntnr, const Entity3DContainer &ref_entities, const Math::Vector3DArray &ref_coords)
Rigid-body aligns the 3D coordinates of cntnr to the reference geometry defined by the entity-coordin...
CDPL_CHEM_API bool insideBoundingBox(const AtomContainer &cntnr, const Math::Vector3D &min, const Math::Vector3D &max, const Atom3DCoordinatesFunction &coords_func)
Tells whether every atom of cntnr lies inside the axis-aligned bounding box defined by min and max.
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.
CDPL_CHEM_API void transform3DCoordinates(Entity3DContainer &cntnr, const Math::Matrix4D &mtx)
Transforms the 3D coordinates of the entities of cntnr by the affine matrix mtx.
CDPL_CHEM_API void set3DCoordinates(Entity3DContainer &cntnr, const Math::Vector3DArray &coords)
Sets the 3D coordinates of the entities of cntnr from coords.
CDPL_CHEM_API void calcGeometricalDistanceMatrix(const Entity3DContainer &cntnr, Math::DMatrix &mtx)
Calculates the inter-entity geometric distance matrix for the entities of cntnr.
CDPL_CHEM_API bool intersectsBoundingBox(const AtomContainer &cntnr, const Math::Vector3D &min, const Math::Vector3D &max, const Atom3DCoordinatesFunction &coords_func)
Tells whether at least one atom of cntnr lies inside the axis-aligned bounding box defined by min and...
CDPL_CHEM_API void get3DCoordinates(const AtomContainer &cntnr, Math::Vector3DArray &coords, const Atom3DCoordinatesFunction &coords_func, bool append=false)
Extracts the 3D coordinates of all atoms in cntnr into coords using the per-atom coordinate lookup fu...
CDPL_CHEM_API bool calcCentroid(const AtomContainer &cntnr, const Atom3DCoordinatesFunction &coords_func, Math::Vector3D &ctr)
Computes the unweighted centroid (arithmetic mean of atom coordinates) of cntnr.
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.