27 #include <vapor/common.h>
29 #include <vapor/MetadataVDC.h>
31 #include "vizfeatureparams.h"
57 if (!_dataStatus) _dataStatus =
new DataStatus;
98 static int getActiveVarNum(
int dim,
string varname);
106 static double getVoxelSize(
size_t timestep,
string varname,
int refLevel,
int dir);
122 float getDefaultDataMax(
string vname);
128 float getDefaultDataMin(
string vname);
192 if (dim == 2) {lods = _fidelity2DLODs; refs = _fidelity2DRefs;}
193 else {lods = _fidelity3DLODs; refs = _fidelity3DRefs;}
194 return _defaultFidelity[dim-2];
205 static bool convertToLonLat(
double coords[],
int npoints = 1);
210 static bool convertFromLonLat(
double coords[],
int npoints = 1);
217 static bool convertLocalToLonLat(
int timestep,
double coords[],
int npoints = 1);
224 static bool convertLocalFromLonLat(
int timestep,
double coords[],
int npoints = 1);
233 void mapBoxToVox(
Box* box,
int refLevel,
int lod,
int timestep,
size_t voxExts[6]);
237 static int GetExtents(
size_t timestep, vector<double>& minExts, vector<double>& maxExts);
248 vector<double>stretchFactors = getStretchFactors();
249 for (
int i = 0; i<3; i++) coords[i] = coords[i]*stretchFactors[i];
254 vector<double>stretchFactors = getStretchFactors();
255 for (
int i = 0; i<3; i++) coords[i] = coords[i]*stretchFactors[i];
260 return (
Max(_fullStretchedSizes[0],
Max(_fullStretchedSizes[1],_fullStretchedSizes[2])));
265 static void localToStretched(
const double fromCoords[3],
double toCoords[3]);
270 static int maxXFormPresent(
string varname,
size_t timestep);
275 static int maxLODPresent(
string varname,
size_t timestep);
285 static bool dataIsPresent(
int timestep);
293 static int mapVoxToUser(
size_t timestep,
string varname,
const size_t vcoords[3],
double uCoords[3],
int reflevel);
301 static void mapUserToVox(
size_t timestep,
string varname,
const double uCoords[3],
size_t vCoords[3],
int reflevel);
317 vector<double> stretchFactors;
318 for (
int i = 0; i< 3; i++) {
319 _stretchedExtents[i] = _extents[i]*factor[i];
320 _stretchedExtents[i+3] = _extents[i+3]*factor[i];
321 _fullStretchedSizes[i] = _fullSizes[i]*factor[i];
333 static void makeFidelitySettings();
335 #ifndef DOXYGEN_SKIP_THIS
340 static size_t _minTimeStep;
341 static size_t _maxTimeStep;
344 static int _numTimesteps;
346 static float _defaultRefFidelity2D;
347 static float _defaultRefFidelity3D;
348 static float _defaultLODFidelity2D;
349 static float _defaultLODFidelity3D;
350 static int _defaultFidelity[2];
351 static vector<int> _fidelity2DRefs;
352 static vector<int> _fidelity3DRefs;
353 static vector<int> _fidelity2DLODs;
354 static vector<int> _fidelity3DLODs;
355 static double _extents[6];
356 static double _stretchedExtents[6];
357 static double _fullSizes[3];
358 static double _fullStretchedSizes[3];
360 static size_t _cacheMB;
361 static bool _useLowerAccuracy;
363 #endif //DOXYGEN_SKIP_THIS
367 #endif //DATASTATUS_H
static void stretchExtents(vector< double > factor)
A class for describing the currently loaded dataset.
3D or 2D box with options for orientation angles and extents changing in time. Intended to be used in...
static const double * getLocalExtents()
static size_t getMinTimestep()
A Params subclass for managing parameters used by Renderers.
static void stretchCoords(double coords[3])
static int getNumActiveVariables2D()
static int getNumActiveVariables3D()
static void stretchCoords(vector< double > &coords)
static const double * getFullSizes()
static bool useLowerAccuracy()
static float getDefaultRefinementFidelity2D()
static void setDefaultLODFidelity2D(float q)
static void setDefaultLODFidelity3D(float q)
static float getDefaultRefinementFidelity3D()
static Params * GetDefaultParams(ParamsBase::ParamsBaseType pType)
static size_t getMaxTimestep()
static void setDefaultRefinementFidelity2D(float q)
static void setDefaultRefinementFidelity3D(float q)
static const double * getFullStretchedSizes()
COMMON_API int Max(int a, int b)
static DataStatus * getInstance()
static int getNumActiveVariables()
static void setUseLowerAccuracy(bool val)
static double getMaxStretchedSize()
static const double * getStretchedLocalExtents()
static size_t getCacheMB()
static int getNumTimesteps()
static float getDefaultLODFidelity3D()
A cache based data reader.
static const vector< double > getStretchFactors()
static int getDefaultFidelitySettings(int dim, vector< int > &lods, vector< int > &refs)
static float getDefaultLODFidelity2D()