23 int GetMesh(
DataMgr *dataMgr, GLfloat **verts, GLfloat **normals, GLsizei &nverts, GLsizei &width, GLsizei &height, GLuint **indices, GLsizei &nindices,
bool &structuredMesh);
25 const GLvoid *
GetTexture(
DataMgr *dataMgr, GLsizei &width, GLsizei &height, GLint &internalFormat, GLenum &format, GLenum &type,
size_t &texelSize,
bool &gridAligned);
29 unsigned char *_twoDTex;
30 string _cacheImgFileName;
31 vector<double> _cacheTimes;
32 vector<double> _pcsExtentsData;
33 double _pcsExtentsImg[4];
34 string _proj4StringImg;
37 const int _maxResamplingResolution;
38 size_t _cacheTimestep;
42 vector<double> _cacheBoxExtents;
43 size_t _cacheTimestepTex;
45 int _cacheGeoreferenced;
46 vector<double> _cacheBoxExtentsTex;
55 unsigned char *_getTexture(
DataMgr *dataMgr);
57 bool _gridStateDirty()
const;
59 void _gridStateClear();
63 bool _imageStateDirty(
const vector<double> ×)
const;
65 void _imageStateSet(
const vector<double> ×);
67 void _imageStateClear();
69 bool _texStateDirty(
DataMgr *dataMgr)
const;
71 void _texStateSet(
DataMgr *dataMgr);
73 void _texStateClear();
75 int _reinit(
string path, vector<double> times);
77 unsigned char *_getImage(
GeoImage *geoimage,
size_t ts,
string proj4StringData, vector<double> pcsExtentsDataVec,
double pcsExtentsImg[4],
double geoCornersImg[8],
string &proj4StringImg,
78 GLsizei &width, GLsizei &height)
const;
80 int _getMeshDisplacedGeo(
DataMgr *dataMgr,
Grid *hgtGrid, GLsizei width, GLsizei height,
double defaultZ);
84 int _getMeshDisplacedNoGeo(
DataMgr *dataMgr,
Grid *hgtGrid, GLsizei width, GLsizei height,
const vector<double> &minExt,
const vector<double> &maxExt,
double defaultZ);
86 int _getMeshDisplaced(
DataMgr *dataMgr, GLsizei width, GLsizei height,
const vector<double> &minBox,
const vector<double> &maxBox,
double defaultZ);
88 int _getMeshPlane(
const vector<double> &minBox,
const vector<double> &maxBox,
double defaultZ);
92 vector<double> _getPCSExtentsData()
const;
96 void _transformToLocal(
size_t width,
size_t height,
const vector<double> &scaleFac)
const;
98 void _clearCache() { _cacheHgtVar.clear(); }
A cache based data reader.
An abstract class for managing geo-referenced images.
Abstract base class for a 2D or 3D structured or unstructured grid.
ImageRenderer(const ParamsMgr *pm, string winName, string dataSetName, string instName, DataMgr *dataMgr)
static std::string GetClassType()
const GLvoid * GetTexture(DataMgr *dataMgr, GLsizei &width, GLsizei &height, GLint &internalFormat, GLenum &format, GLenum &type, size_t &texelSize, bool &gridAligned)
int GetMesh(DataMgr *dataMgr, GLfloat **verts, GLfloat **normals, GLsizei &nverts, GLsizei &width, GLsizei &height, GLuint **indices, GLsizei &nindices, bool &structuredMesh)
A singleton class for managing Params instances.