#include <TwoDRenderer.h>
|
| TwoDRenderer (const ParamsMgr *pm, string winName, string dataSetName, string paramsType, string classType, string instName, DataMgr *dataMgr) |
|
virtual | ~TwoDRenderer () |
| Destructor.
|
|
| Renderer (const ParamsMgr *pm, string winName, string dataSetName, string paramsType, string classType, string instName, DataMgr *dataMgr) |
|
virtual | ~Renderer () |
|
double | GetDefaultZ (DataMgr *dataMgr, size_t ts) const |
|
virtual int | paintGL (bool fast) |
|
void | ClearCache () |
|
void | renderColorbar () |
| Render the colorbar for this renderer (if it has one)
|
|
RenderParams * | GetActiveParams () const |
|
ViewpointParams * | GetViewpointParams () const |
|
AnnotationParams * | GetAnnotationParams () const |
|
Transform * | GetDatasetTransform () const |
|
| RendererBase (const ParamsMgr *pm, string winName, string dataSetName, string paramsType, string classType, string instName, DataMgr *dataMgr) |
|
virtual | ~RendererBase () |
|
virtual int | initializeGL (GLManager *glManager) |
|
string | GetVisualizer () |
| Obtain the Visualizer associated with this Renderer.
|
|
string | GetMyName () const |
|
string | GetInstanceName () const |
|
string | GetMyType () const |
|
string | GetMyParamsType () const |
|
string | GetMyDatasetName () const |
|
bool | IsGLInitialized () const |
|
void | FlagForDeletion () |
|
bool | IsFlaggedForDeletion () const |
|
| RendererBase () |
|
| MyBase () |
|
const string & | getClassName () const |
|
|
virtual int | GetMesh (DataMgr *dataMgr, GLfloat **verts, GLfloat **normals, GLsizei &nverts, GLsizei &width, GLsizei &height, GLuint **indices, GLsizei &nindices, bool &structuredMesh)=0 |
|
virtual const GLvoid * | GetTexture (DataMgr *dataMgr, GLsizei &width, GLsizei &height, GLint &internalFormat, GLenum &format, GLenum &type, size_t &texelSize, bool &gridAligned)=0 |
|
virtual void | _clearCache ()=0 |
|
virtual int | _initializeGL () |
|
virtual int | _paintGL (bool fast) |
| All OpenGL rendering is performed in the pure virtual paintGL method.
|
|
void | ComputeNormals (const GLfloat *verts, GLsizei w, GLsizei h, GLfloat *normals) |
|
| Renderer () |
|
virtual std::string | _getColorbarVariableName () const |
|
virtual int | _paintGL (bool fast)=0 |
| All OpenGL rendering is performed in the pure virtual paintGL method.
|
|
void | EnableClipToBox (ShaderProgram *shader, float haloFrac=0.0) const |
|
void | DisableClippingPlanes () |
|
void | GetClippingPlanes (float planes[24]) const |
|
virtual bool | VariableExists (size_t ts, std::vector< string > &varnames, int level, int lod, bool zeroOK) const |
|
virtual void | _clearCache ()=0 |
|
virtual int | _initializeGL ()=0 |
|
void | SetClassName (const string &name) |
|
- Author
- John Clyne
- Version
- 3.0
- Date
- March 2016
Definition at line 25 of file TwoDRenderer.h.
◆ TwoDRenderer()
VAPoR::TwoDRenderer::TwoDRenderer |
( |
const ParamsMgr * |
pm, |
|
|
string |
winName, |
|
|
string |
dataSetName, |
|
|
string |
paramsType, |
|
|
string |
classType, |
|
|
string |
instName, |
|
|
DataMgr * |
dataMgr |
|
) |
| |
Constructor, must invoke Renderer constructor
- Parameters
-
[in] | Visualizer* | pointer to the visualizer where this will draw |
[in] | RenderParams* | pointer to the ArrowParams describing this renderer |
◆ ~TwoDRenderer()
virtual VAPoR::TwoDRenderer::~TwoDRenderer |
( |
| ) |
|
|
virtual |
◆ _clearCache()
virtual void VAPoR::TwoDRenderer::_clearCache |
( |
| ) |
|
|
protectedpure virtual |
◆ _initializeGL()
virtual int VAPoR::TwoDRenderer::_initializeGL |
( |
| ) |
|
|
protectedvirtual |
◆ _paintGL()
virtual int VAPoR::TwoDRenderer::_paintGL |
( |
bool |
fast | ) |
|
|
protectedvirtual |
◆ ComputeNormals()
void VAPoR::TwoDRenderer::ComputeNormals |
( |
const GLfloat * |
verts, |
|
|
GLsizei |
w, |
|
|
GLsizei |
h, |
|
|
GLfloat * |
normals |
|
) |
| |
|
protected |
Compute 2D surface normals at each vertex.
This protected method can be used by derived classes to calculate unitized normals from a set of vertices by calculating the gradient at each vertex. The normal vectors are determined by looking at z-coords of adjacent vertices in both x and y. Suppose that dzx is the change in z associated with an x-change of dz, and that dzy is the change in z associated with a y-change of dy. Let the normal vector be (a,b,c). Then a/c is equal to dzx/dx, and b/c is equal to dzy/dy. So (a,b,c) is proportional to (dzx*dy, dzy*dx, 1)
- Parameters
-
[in] | verts | A pointer to a 2D array of surface vertices, dimensioned w by h by 3. Vertices are store as inteleaved triplets: vx0, vy0, vz0, vx1, vy1, vz1, ... vxn, vyn, vzn, where n = w * h - 1 |
[in] | w | Width (length of fastest varying dimension) of verts in grid points |
[in] | h | Height (length of second fastest varying dimension) of verts in grid points |
[out] | normals | A pointer to a 2D array of the same size as verts that will contain the computed, unitized surface normals, stored in interleaved form. |
◆ GetMesh()
virtual int VAPoR::TwoDRenderer::GetMesh |
( |
DataMgr * |
dataMgr, |
|
|
GLfloat ** |
verts, |
|
|
GLfloat ** |
normals, |
|
|
GLsizei & |
nverts, |
|
|
GLsizei & |
width, |
|
|
GLsizei & |
height, |
|
|
GLuint ** |
indices, |
|
|
GLsizei & |
nindices, |
|
|
bool & |
structuredMesh |
|
) |
| |
|
protectedpure virtual |
◆ GetTexture()
virtual const GLvoid * VAPoR::TwoDRenderer::GetTexture |
( |
DataMgr * |
dataMgr, |
|
|
GLsizei & |
width, |
|
|
GLsizei & |
height, |
|
|
GLint & |
internalFormat, |
|
|
GLenum & |
format, |
|
|
GLenum & |
type, |
|
|
size_t & |
texelSize, |
|
|
bool & |
gridAligned |
|
) |
| |
|
protectedpure virtual |
The documentation for this class was generated from the following file: