70 virtual int GetMesh(
DataMgr *dataMgr, GLfloat **verts, GLfloat **normals, GLsizei &nverts, GLsizei &width, GLsizei &height, GLuint **indices, GLsizei &nindices,
bool &structuredMesh) = 0;
95 virtual const GLvoid *
GetTexture(
DataMgr *dataMgr, GLsizei &width, GLsizei &height, GLint &internalFormat, GLenum &format, GLenum &type,
size_t &texelSize,
bool &gridAligned) = 0;
131 void ComputeNormals(
const GLfloat *verts, GLsizei w, GLsizei h, GLfloat *normals);
135 const GLvoid *_texture;
136 GLfloat * _texCoords;
139 GLint _texInternalFormat;
144 bool _structuredMesh;
154 GLuint _VAO, _VBO, _dataVBO, _EBO;
157 void _openGLRestore();
159 void _renderMeshUnAligned();
160 void _renderMeshAligned();
161 void _computeTexCoords(GLfloat *tcoords,
size_t w,
size_t h)
const;
A cache based data reader.
A singleton class for managing Params instances.
A class that performs rendering in a Visualizer.
virtual int _paintGL(bool fast)
All OpenGL rendering is performed in the pure virtual paintGL method.
virtual const GLvoid * GetTexture(DataMgr *dataMgr, GLsizei &width, GLsizei &height, GLint &internalFormat, GLenum &format, GLenum &type, size_t &texelSize, bool &gridAligned)=0
void ComputeNormals(const GLfloat *verts, GLsizei w, GLsizei h, GLfloat *normals)
TwoDRenderer(const ParamsMgr *pm, string winName, string dataSetName, string paramsType, string classType, string instName, DataMgr *dataMgr)
virtual void _clearCache()=0
virtual int GetMesh(DataMgr *dataMgr, GLfloat **verts, GLfloat **normals, GLsizei &nverts, GLsizei &width, GLsizei &height, GLuint **indices, GLsizei &nindices, bool &structuredMesh)=0
virtual int _initializeGL()
virtual ~TwoDRenderer()
Destructor.