12#ifndef UNIFORMREALVALUEGRID3D_H_20140403
13#define UNIFORMREALVALUEGRID3D_H_20140403
21 :
public Grid3D<RDKit::RealValueVect, double, double> {
42 if (offset ==
nullptr) {
43 initGrid(dimX, dimY, dimZ, spacing,
46 initGrid(dimX, dimY, dimZ, spacing, *offset, data);
70 double getVal(
unsigned int pointId)
const override;
81 void setVal(
unsigned int pointId,
double val)
override;
84 unsigned int getSize()
const override {
return d_numX * d_numY * d_numZ; };
89 int getGridIndex(
unsigned int xi,
unsigned int yi,
unsigned int zi)
const;
94 unsigned int &zi)
const;
97 unsigned int getNumX()
const {
return d_numX; };
100 unsigned int getNumY()
const {
return d_numY; };
103 unsigned int getNumZ()
const {
return d_numZ; };
117 const std::vector<double> &
getData()
const {
return d_storage.getData(); }
118 std::vector<double> &
getData() {
return d_storage.getData(); }
176 void initGrid(
double dimX,
double dimY,
double dimZ,
double spacing,
180 unsigned int d_numX, d_numY,
188 void initFromText(
const char *pkl,
const unsigned int length);
Virtual base class for a grid object.
#define RDKIT_RDGEOMETRYLIB_EXPORT
RDKIT_RDGEOMETRYLIB_EXPORT UniformRealValueGrid3D operator&(const UniformRealValueGrid3D &grd1, const UniformRealValueGrid3D &grd2)
RDKIT_RDGEOMETRYLIB_EXPORT RDGeom::Point3D operator-(const RDGeom::Point3D &p1, const RDGeom::Point3D &p2)
RDKIT_RDGEOMETRYLIB_EXPORT UniformRealValueGrid3D operator|(const UniformRealValueGrid3D &grd1, const UniformRealValueGrid3D &grd2)
RDKIT_RDGEOMETRYLIB_EXPORT RDGeom::Point3D operator+(const RDGeom::Point3D &p1, const RDGeom::Point3D &p2)