VAPoR  3.0.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
VAPoR::HelloRenderer Class Reference

Class that draws a line as specified by HelloParams. More...

#include <hellorenderer.h>

Inheritance diagram for VAPoR::HelloRenderer:
VAPoR::Renderer VAPoR::RendererBase VetsUtil::MyBase

Public Member Functions

 HelloRenderer (Visualizer *w, RenderParams *rp)
 
virtual ~HelloRenderer ()
 Destructor. More...
 
- Public Member Functions inherited from VAPoR::Renderer
 Renderer (Visualizer *vw, RenderParams *rp, string name)
 
virtual ~Renderer ()
 
virtual int paintGL (DataMgrV3_0 *dataMgr)
 
virtual void setRenderParams (RenderParams *rp)
 
RenderParamsgetRenderParams ()
 
void setBypass (int timestep)
 
void setPartialBypass (int timestep)
 
void setAllBypass (bool val)
 
bool doBypass (int timestep)
 
bool doAlwaysBypass (int timestep)
 
virtual void setAllDataDirty ()
 
virtual void invalidateCache ()
 
void buildLocal2DTransform (int dataOrientation, float a[2], float b[2], float *constVal, int mappedDims[3])
 
void getLocalContainingRegion (float regMin[3], float regMax[3])
 
- Public Member Functions inherited from VAPoR::RendererBase
 RendererBase (Visualizer *vw, Params *p, string name)
 
virtual ~RendererBase ()
 
virtual int initializeGL ()
 
VisualizerGetVisualizer ()
 Obtain the Visualizer associated with this Renderer. More...
 
bool isInitialized ()
 
const string getMyName () const
 
- Public Member Functions inherited from VetsUtil::MyBase
 MyBase ()
 
const string & getClassName () const
 

Static Public Member Functions

static RendererCreateInstance (Visualizer *v, RenderParams *rp)
 
- Static Public Member Functions inherited from VAPoR::Renderer
static void RegisterRenderer (string tag, RendererCreateMethod)
 
static RendererCreateInstance (RenderParams *p, Visualizer *viz)
 
static void invalidateRenderCache (RenderParams *rp)
 
static int getGrids (DataMgrV3_0 *dataMgr, size_t ts, const vector< string > &varnames, const double extents[6], int *refLevel, int *lod, RegularGrid **grids)
 
static void UndoRedo (bool isUndo, int instance, Params *beforeP, Params *afterP, Params *auxPrev=0, Params *auxNext=0)
 
- 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)
 

Protected Member Functions

virtual int _initializeGL ()
 Virtual method performs any OpenGL initialization, sets the _initialized flag. More...
 
virtual int _paintGL (DataMgrV3_0 *)
 
- Protected Member Functions inherited from VAPoR::Renderer
void enableClippingPlanes (const double extents[6])
 
void enableFullClippingPlanes ()
 
void enableRegionClippingPlanes ()
 
void enable2DClippingPlanes ()
 
void disableClippingPlanes ()
 
size_t GetCurrentTimestep ()
 
- Protected Member Functions inherited from VetsUtil::MyBase
void SetClassName (const string &name)
 

Additional Inherited Members

- Public Types inherited from VAPoR::Renderer
typedef Renderer *(* RendererCreateMethod) (Visualizer *, RenderParams *)
 typedef defining Renderer CreateInstance() methods. More...
 
- 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 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
 
- Protected Attributes inherited from VAPoR::RendererBase
Visualizer_visualizer
 
bool _initialized
 
size_t _timestep
 
string _rendererName
 
Params_params
 

Detailed Description

Class that draws a line as specified by HelloParams.

Author
Alan Norton
Version
3.0
Date
June 2015

Definition at line 34 of file hellorenderer.h.

Constructor & Destructor Documentation

VAPoR::HelloRenderer::HelloRenderer ( Visualizer w,
RenderParams rp 
)

Constructor, must invoke Renderer constructor

Parameters
[in]Visualizer*pointer to the visualizer where this will draw
[in]RenderParams*pointer to the HelloParams describing this renderer
virtual VAPoR::HelloRenderer::~HelloRenderer ( )
virtual

Destructor.

Member Function Documentation

virtual int VAPoR::HelloRenderer::_initializeGL ( )
protectedvirtual

Virtual method performs any OpenGL initialization, sets the _initialized flag.

Implements VAPoR::RendererBase.

virtual int VAPoR::HelloRenderer::_paintGL ( DataMgrV3_0 )
protectedvirtual

Virtual method issues all the OpenGL calls to draw the Hellos in user coordinates.

Parameters
[in]DataMgr*current DataMgr that owns the data being rendered.
[in]Params*Params* that is associated with this Renderer

Implements VAPoR::Renderer.

static Renderer* VAPoR::HelloRenderer::CreateInstance ( Visualizer v,
RenderParams rp 
)
inlinestatic

CreateInstance: Static method to create a renderer given the associated Params instance and visualizer

Parameters
[in]Visualizer*pointer to the visualizer where this will draw
[in]RenderParams*pointer to the HelloParams associated with this renderer

Definition at line 50 of file hellorenderer.h.


The documentation for this class was generated from the following file: