30namespace DataMgrUtils {
123VDF_API int GetGrids(
DataMgr *dataMgr,
size_t ts,
const vector<string> &varnames,
const T &minExtsReq,
const T &maxExtsReq,
bool useLowerAccuracy,
int *refLevel,
int *lod, std::vector<Grid *> &grids,
132VDF_API int GetGrids(
DataMgr *dataMgr,
size_t ts,
const vector<string> &varnames,
bool useLowerAccuracy,
int *refLevel,
int *lod, std::vector<Grid *> &grids,
bool lock =
false);
134VDF_API int GetGrids(
DataMgr *dataMgr,
size_t ts,
string varname,
bool useLowerAccuracy,
int *refLevel,
int *lod,
Grid **gridptr,
bool lock =
false);
246#ifdef VAPOR3_0_0_ALPHA
254double getVoxelSize(
size_t timestep,
string varname,
int refLevel,
int dir);
258int getNumActiveVariables3D() {
return _dataMgr->GetDataVarNames(3).size(); }
261int getNumActiveVariables2D() {
return _dataMgr->GetDataVarNames(2).size(); }
264int getNumActiveVariables() {
return getNumActiveVariables3D() + getNumActiveVariables2D(); }
274void mapBoxToVox(Box *box,
string varname,
int refLevel,
int lod,
int timestep,
size_t voxExts[6]);
A cache based data reader.
Abstract base class for a 2D or 3D structured or unstructured grid.
VDF_API void UnlockGrids(DataMgr *dataMgr, const std::vector< Grid * > &grids)
VDF_API int ConvertPCSToLonLat(const DataMgr *dataMgr, double coords[], int npoints=1)
VDF_API int ConvertLonLatToPCS(const DataMgr *dataMgr, double coords[], int npoints=1)
VDF_API bool MaxLODPresent(const DataMgr *dataMgr, size_t timestep, string varname, size_t &maxLOD)
VDF_API int GetGrids(DataMgr *dataMgr, size_t ts, const vector< string > &varnames, const T &minExtsReq, const T &maxExtsReq, bool useLowerAccuracy, int *refLevel, int *lod, std::vector< Grid * > &grids, bool lock=false)
bool GetAxes(const DataMgr *dataMgr, string varname, vector< int > &axes)
VDF_API bool MaxXFormPresent(const DataMgr *dataMgr, size_t timestep, string varname, size_t &maxXForm)
VDF_API double Get2DRendererDefaultZ(DataMgr *dataMgr, size_t ts, int refLevel, int lod)
VDF_API bool GetExtents(DataMgr *dataMgr, size_t timestep, string varname, int refLevel, int lod, CoordType &minExts, CoordType &maxExts)
VDF_API bool GetFirstExistingVariable(DataMgr *dataMgr, int level, int lod, int ndim, string &varname, size_t &ts)
VDF_API int GetDefaultMetaInfoStride(DataMgr *dataMgr, std::string varname, int refinementLevel)
Used by the histo for calculating some meta data.
std::array< double, 3 > CoordType
Type for specifying floating point coordinates.
std::array< size_t, 3 > DimsType
Type for specifying integer indices.