1 #ifndef _StretchedGrid_
2 #define _StretchedGrid_
5 #include <vapor/common.h>
8 #pragma warning(disable : 4251 4100)
70 const double extents[6],
71 const bool periodic[3],
73 const std::vector <double> &xcoords,
74 const std::vector <double> &ycoords,
75 const std::vector <double> &zcoords
94 const double extents[6],
95 const bool periodic[3],
97 const std::vector <double> &xcoords,
98 const std::vector <double> &ycoords,
99 const std::vector <double> &zcoords,
106 float GetValue(
double x,
double y,
double z)
const;
111 for (
int i=0; i<6; i++) extents[i] = _extents[i];
117 virtual void GetBoundingBox(
125 virtual void GetEnclosingRegion(
126 const double minu[3],
const double maxu[3],
size_t min[3],
size_t max[3]
132 int GetUserCoordinates(
133 size_t i,
size_t j,
size_t k,
134 double *x,
double *y,
double *z
140 double x,
double y,
double z,
141 size_t *i,
size_t *j,
size_t *k
146 void GetIJKIndexFloor(
147 double x,
double y,
double z,
148 size_t *i,
size_t *j,
size_t *k
154 const bool periodic[3]
159 virtual void GetMinCellExtents(
double *x,
double *y,
double *z)
const;
173 std::vector <double> &xcoords,
174 std::vector <double> &ycoords,
175 std::vector <double> &zcoords
177 xcoords = _xcoords; ycoords = _ycoords; zcoords = _zcoords;
187 std::vector <double> _xcoords;
188 std::vector <double> _ycoords;
189 std::vector <double> _zcoords;
191 float _GetValueNearestNeighbor(
double x,
double y,
double z)
const;
192 float _GetValueLinear(
double x,
double y,
double z)
const;
void GetUserCoordinateMaps(std::vector< double > &xcoords, std::vector< double > &ycoords, std::vector< double > &zcoords) const
virtual void GetUserExtents(double extents[6]) const