33 Histo(
int numberBins,
float mnData,
float mxData,
string var,
int ts);
37 void reset(
int newNumBins = -1);
38 void reset(
int newNumBins,
float mnData,
float mxData);
64 unsigned int *_binArray =
nullptr;
65 unsigned int *_below =
nullptr;
66 unsigned int *_above =
nullptr;
67 int _nBinsBelow = 0, _nBinsAbove = 0;
68 long _numSamplesBelow, _numSamplesAbove;
70 float _minMapData, _maxMapData, _range;
71 float _minData, _maxData;
72 long _maxBinSize = -1;
74 int _refLevel = INT_MIN, _lod = INT_MIN;
75 std::vector<double> _minExts, _maxExts;
76 bool _populated =
false;
78 int _timestepOfUpdate;
79 string _varnameOfUpdate;
80 bool autoSetProperties =
false;
82 static vector<float> getDataSamplesIterating(
const VAPoR::Grid *grid,
const int stride);
83 static vector<float> getDataSamplesSampling(
const VAPoR::Grid *grid,
const vector<double> &minExts,
const vector<double> &maxExts);
85 void populateIteratingHistogram(
const VAPoR::Grid *grid,
const int stride);
86 void populateSamplingHistogram(
const VAPoR::Grid *grid,
const vector<double> &minExts,
const vector<double> &maxExts);
89 void setProperties(
float mnData,
float mxData,
string var,
int ts);
90 void calculateMaxBinSize();
int getMaxBinSizeBetweenIndices(const int start, const int end) const
int getTimestepOfUpdate()
int Populate(const std::string &varName, VAPoR::DataMgr *dm, VAPoR::RenderParams *rp)
int getBinIndexForValue(float v)
float getNormalizedBinSizeForValue(float v) const
float getNormalizedBinSize(int bin) const
string getVarnameOfUpdate()
float getNormalizedBinSizeForNormalizedValue(float v) const
void reset(int newNumBins=-1)
int getBinSize(int index, int stride) const
void reset(int newNumBins, float mnData, float mxData)
int PopulateIfNeeded(const std::string &varName, VAPoR::DataMgr *dm, VAPoR::RenderParams *rp)
bool NeedsUpdate(const std::string &varName, VAPoR::DataMgr *dm, VAPoR::RenderParams *rp)
static vector< float > GetDataSamples(const std::string &varName, VAPoR::DataMgr *dm, VAPoR::RenderParams *rp)
void setBins(const vector< long > &bins)
int getBinSize(int index) const
Histo(int numberBins, float mnData, float mxData, string var, int ts)
A cache based data reader.
Abstract base class for a 2D or 3D structured or unstructured grid.
A Params subclass for managing parameters used by Renderers.