Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef OB_GRIDDATA_H
00023 #define OB_GRIDDATA_H
00024
00025 #include <openbabel/babelconfig.h>
00026 #include <openbabel/base.h>
00027 #include <openbabel/math/vector3.h>
00028
00029 #include <vector>
00030
00031 namespace OpenBabel {
00032
00033
00034
00035 class GridDataPrivate;
00036
00037
00038
00039 class OBAPI OBGridData : public OBGenericData
00040 {
00041 public:
00043 OBGridData();
00044
00046 ~OBGridData();
00047
00049 typedef enum { BOHR, ANGSTROM, OTHER } Unit;
00050
00052
00053
00054
00055
00056 void GetAxes(double x[3], double y[3], double z[3]) const;
00058 vector3 GetXAxis() const;
00060 vector3 GetYAxis() const;
00062 vector3 GetZAxis() const;
00064 void GetAxes(vector3 &v1, vector3 &v2, vector3 &v3) const;
00066 void GetNumberOfPoints(int &nx, int &ny, int &nz) const;
00068 int GetNumberOfPoints() const;
00070 void GetNumberOfSteps(int steps[3]) const;
00072 std::vector< double > GetValues() const;
00074 double GetValue(int i, int j, int k) const;
00076 double GetValue (vector3 pos) const;
00078 Unit GetUnit() const;
00080 double GetMinValue() const;
00082 double GetMaxValue() const;
00084 vector3 GetOriginVector() const;
00088 void GetOriginVector(double o[3]) const;
00090 vector3 GetMaxVector() const;
00092 bool GetUnrestricted() const;
00094 int GetNumSymmetries() const;
00096
00097
00099
00100
00101 void SetNumberOfPoints(int nx, int ny, int nz);
00106 void SetLimits(const vector3 &origin, const vector3 &x, const vector3 &y,
00107 const vector3 &z);
00110 void SetLimits(const double origin[3], const double x[3], const double y[3],
00111 const double z[3]);
00113 bool SetValue(int i, int j, int k, double val);
00115 void SetValues(const std::vector< double >& v);
00117 void SetUnit(Unit u);
00119 void SetUnrestricted(bool u);
00121 void SetNumSymmetries(int s);
00123
00124 private:
00125 GridDataPrivate *const d;
00126
00127 };
00128
00129 }
00130
00131 #endif
00132