A class that performs rendering in the GLWindow.
More...
#include <renderer.h>
A class that performs rendering in the GLWindow.
- Author
- Alan Norton
- Version
- $Revision$
- Date
- $Date$
Renderer class is a pure virtual class that supports OpenGL rendering in the VAPOR visualizer window. All renderers must derive from this class.
Definition at line 45 of file renderer.h.
◆ Renderer()
Constructor should be invoked by any derived renderers. It is invoked when the user enables a renderer. Provides any needed setup of renderer state, but not of OpenGL state.
◆ ~Renderer()
| virtual VAPoR::Renderer::~Renderer |
( |
| ) |
|
|
virtual |
◆ doAlwaysBypass()
| bool VAPoR::Renderer::doAlwaysBypass |
( |
int |
timestep | ) |
|
|
inline |
doAlwaysBypass is used in the presence of partial bypass. Indicates that the rendering should be bypassed at any resolution
- Parameters
-
| [in] | int | timestep Time step |
- Return values
-
Definition at line 105 of file renderer.h.
◆ doBypass()
| bool VAPoR::Renderer::doBypass |
( |
int |
timestep | ) |
|
|
inline |
doBypass indicates the state of the bypass flag.
- Parameters
-
| [in] | timestep | indicates the timestep being checked |
- Return values
-
| bool | indicates that the rendering at the timestep should be bypassed. |
Definition at line 99 of file renderer.h.
◆ getRenderParams()
Obtain the current RenderParams instance
- Return values
-
| RenderParams* | current render params |
Definition at line 73 of file renderer.h.
◆ initializeGL()
| virtual void VAPoR::Renderer::initializeGL |
( |
| ) |
|
|
pure virtual |
Pure virtual method Any OpenGL initialization is performed in initializeGL It will be called from an OpenGL rendering context. Sets initialized to true if successful.
◆ isInitialized()
| bool VAPoR::Renderer::isInitialized |
( |
| ) |
|
|
inline |
Identify whether the renderer has been initialized
- Return values
-
Definition at line 77 of file renderer.h.
◆ paintGL()
| virtual void VAPoR::Renderer::paintGL |
( |
| ) |
|
|
pure virtual |
All OpenGL rendering is performed in the pure virtual paintGL method.
◆ setAllBypass()
| void VAPoR::Renderer::setAllBypass |
( |
bool |
val | ) |
|
|
inline |
SetAllBypass is set to indicate all (or no) timesteps should be bypassed Should be set true when render failure is independent of timestep Should be set false when state changes and rendering should be reattempted.
- Parameters
-
| [in] | val | indicates whether it is being turned on or off. |
Definition at line 94 of file renderer.h.
◆ setAllDataDirty()
| virtual void VAPoR::Renderer::setAllDataDirty |
( |
| ) |
|
|
pure virtual |
General method to force a renderer to re-obtain its data. Must be implemented, although does not need to do anything if no state or cache is retained between renderings.
◆ setBypass()
| void VAPoR::Renderer::setBypass |
( |
int |
timestep | ) |
|
|
inline |
Call setBypass to indicate that the renderer will not work until the state of the params is changed This will result in the renderer not being invoked for the specified timestep
- Parameters
-
| [in] | int | timestep The timestep when the renderer fails |
Definition at line 82 of file renderer.h.
◆ setPartialBypass()
| void VAPoR::Renderer::setPartialBypass |
( |
int |
timestep | ) |
|
|
inline |
Partial bypass is currently only used by DVR and Isosurface renderers. Indicates a renderer that should be bypassed at full resolution but not at interactive resolution.
- Parameters
-
| [in] | timestep | Time step that should be bypassed |
Definition at line 88 of file renderer.h.
◆ setRenderParams()
| virtual void VAPoR::Renderer::setRenderParams |
( |
RenderParams * |
rp | ) |
|
|
inlinevirtual |
Whenever the Params associated with the renderer is changed, setRenderParams must be called. This virtual method should be overridden if there are any dirty flags registered by the renderer.
- Parameters
-
| [in] | RenderParams* | rp Pointer to the current RenderParams instance |
Definition at line 69 of file renderer.h.
The documentation for this class was generated from the following file: