VAPoR
3.0.0
|
A base class for Renderer classes. More...
#include <renderer.h>
Public Member Functions | |
RendererBase (Visualizer *vw, Params *p, string name) | |
virtual | ~RendererBase () |
virtual int | initializeGL () |
Visualizer * | GetVisualizer () |
Obtain the Visualizer associated with this Renderer. More... | |
bool | isInitialized () |
const string | getMyName () const |
virtual void | invalidateCache () |
Public Member Functions inherited from VetsUtil::MyBase | |
MyBase () | |
const string & | getClassName () const |
Protected Member Functions | |
virtual int | _initializeGL ()=0 |
Protected Member Functions inherited from VetsUtil::MyBase | |
void | SetClassName (const string &name) |
Protected Attributes | |
Visualizer * | _visualizer |
bool | _initialized |
size_t | _timestep |
string | _rendererName |
Params * | _params |
Additional Inherited Members | |
Public Types inherited from VetsUtil::MyBase | |
typedef void(* | ErrMsgCB_T) (const char *msg, int err_code) |
typedef void(* | DiagMsgCB_T) (const char *msg) |
Static Public Member Functions inherited from VetsUtil::MyBase | |
static void | SetErrMsg (const char *format,...) |
Record a formatted error message. More... | |
static void | SetErrMsg (int errcode, const char *format,...) |
Record a formatted error message and an error code. More... | |
static const char * | GetErrMsg () |
static void | SetErrCode (int err_code) |
Record an error code. More... | |
static int | GetErrCode () |
Retrieve the current error code. More... | |
static void | SetErrMsgCB (ErrMsgCB_T cb) |
static ErrMsgCB_T | GetErrMsgCB () |
static void | SetErrMsgFilePtr (FILE *fp) |
static const FILE * | SetErrMsgFilePtr () |
static void | SetDiagMsg (const char *format,...) |
Record a formatted diagnostic message. More... | |
static const char * | GetDiagMsg () |
static void | SetDiagMsgCB (DiagMsgCB_T cb) |
static DiagMsgCB_T | GetDiagMsgCB () |
static void | SetDiagMsgFilePtr (FILE *fp) |
static bool | EnableErrMsg (bool enable) |
Static Public Attributes inherited from VetsUtil::MyBase | |
static char * | ErrMsg |
static int | ErrCode |
static int | ErrMsgSize |
static FILE * | ErrMsgFilePtr |
static ErrMsgCB_T | ErrMsgCB |
static char * | DiagMsg |
static int | DiagMsgSize |
static FILE * | DiagMsgFilePtr |
static DiagMsgCB_T | DiagMsgCB |
static bool | Enabled |
A base class for Renderer classes.
RendererBase is a base class of Renderer, for special rendering tasks that are not associated with RenderParams instances. For example the VizFeatureRenderer has a special role during Visualizer OpenGL rendering. RendererBase instances perform rendering in a VAPOR Visualizer but are not associated with RenderParams instances.
Definition at line 48 of file renderer.h.
VAPoR::RendererBase::RendererBase | ( | Visualizer * | vw, |
Params * | p, | ||
string | name | ||
) |
|
virtual |
|
protectedpure virtual |
Pure virtual method Any OpenGL initialization is performed in initializeGL It will be called from an OpenGL rendering context.
Implemented in VAPoR::IsolineRenderer, and VAPoR::HelloRenderer.
|
inline |
Identify the name of the current renderer (for error messages)
Definition at line 67 of file renderer.h.
|
inline |
Obtain the Visualizer associated with this Renderer.
Definition at line 59 of file renderer.h.
|
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.
|
inlinevirtual |
Invalidate all caches associated with a Renderer instance Default does nothing
Reimplemented in VAPoR::Renderer, and VAPoR::IsolineRenderer.
Definition at line 71 of file renderer.h.
|
inline |
Identify whether the renderer has been initialized
bool | _initialized |
Definition at line 63 of file renderer.h.
|
protected |
Definition at line 79 of file renderer.h.
|
protected |
Definition at line 82 of file renderer.h.
|
protected |
Definition at line 81 of file renderer.h.
|
protected |
Definition at line 80 of file renderer.h.
|
protected |
Definition at line 78 of file renderer.h.