VAPOR3 3.9.4
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
VAPoR::VolumeRenderer Class Reference

#include <VolumeRenderer.h>

Inheritance diagram for VAPoR::VolumeRenderer:
VAPoR::Renderer VAPoR::RendererBase Wasp::MyBase VAPoR::VolumeIsoRenderer

Classes

struct  Cache
 

Public Member Functions

 VolumeRenderer (const ParamsMgr *pm, std::string &winName, std::string &dataSetName, std::string &instName, DataMgr *dataMgr)
 
 VolumeRenderer (const ParamsMgr *pm, std::string &winName, std::string &dataSetName, std::string paramsType, std::string classType, std::string &instName, DataMgr *dataMgr)
 
 ~VolumeRenderer ()
 
- Public Member Functions inherited from VAPoR::Renderer
 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)
 
RenderParamsGetActiveParams () const
 
ViewpointParamsGetViewpointParams () const
 
AnnotationParamsGetAnnotationParams () const
 
TransformGetDatasetTransform () const
 
- Public Member Functions inherited from VAPoR::RendererBase
 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 ()
 
- Public Member Functions inherited from Wasp::MyBase
 MyBase ()
 
const string & getClassName () const
 

Static Public Member Functions

static std::string GetClassType ()
 
- Static Public Member Functions inherited from VAPoR::Renderer
static void ApplyTransform (GLManager *gl, const Transform *dataset, const Transform *renderer)
 
static void ApplyDatasetTransform (GLManager *gl, const Transform *dataset)
 
- Static Public Member Functions inherited from Wasp::MyBase
static void SetErrMsg (const char *format,...)
 Record a formatted error message.
 
static void SetErrMsg (int errcode, const char *format,...)
 Record a formatted error message and an error code.
 
static const char * GetErrMsg ()
 
static void SetErrCode (int err_code)
 Record an error code.
 
static int GetErrCode ()
 Retrieve the current error code.
 
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.
 
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 bool GetEnableErrMsg ()
 

Protected Member Functions

int _initializeGL ()
 
int _paintGL (bool fast)
 All OpenGL rendering is performed in the pure virtual paintGL method.
 
void _clearCache ()
 
virtual std::string _getColorbarVariableName () const
 
void _drawScreenQuad ()
 
void _drawScreenQuadChuncked ()
 
void _generateChunkedRenderMesh (const float chunks)
 
bool _wasTooSlowForFastRender () const
 
void _computeNewFramebufferRatio ()
 
bool _shouldUseChunkedRender (bool fast) const
 
virtual bool _usingColorMapData () const
 
void _saveOriginalViewport ()
 
void _restoreOriginalViewport ()
 
void _initializeFramebuffer (bool fast)
 
int _renderFramebufferToDisplay ()
 
int _initializeAlgorithm ()
 
int _loadData ()
 
int _loadSecondaryData ()
 
virtual std::string _getDefaultAlgorithmForGrid (const Grid *grid) const
 
bool _needToSetDefaultAlgorithm () const
 
- Protected Member Functions inherited from VAPoR::Renderer
 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
 
- Protected Member Functions inherited from Wasp::MyBase
void SetClassName (const string &name)
 

Protected Attributes

unsigned int _VAO = (int)NULL
 
unsigned int _VBO = (int)NULL
 
unsigned int _VAOChunked = (int)NULL
 
unsigned int _VBOChunked = (int)NULL
 
VolumeAlgorithm_algorithm = nullptr
 
Framebuffer _framebuffer
 
int _nChunks
 
double _lastRenderTime
 
bool _lastRenderWasFast
 
int _originalViewport [4]
 
int _originalFramebuffer
 
int _framebufferSize [2]
 
float _framebufferRatio
 
float _previousFramebufferRatio
 
std::vector< double > _dataMinExt
 
std::vector< double > _dataMaxExt
 
struct VAPoR::VolumeRenderer::Cache _cache
 
- Protected Attributes inherited from VAPoR::Renderer
unsigned char * _colorbarTexture
 
string _fontName
 
- Protected Attributes inherited from VAPoR::RendererBase
const ParamsMgr_paramsMgr
 
string _winName
 
string _dataSetName
 
string _paramsType
 
string _classType
 
string _instName
 
DataMgr_dataMgr
 
GLManager_glManager
 

Friends

class VolumeAlgorithm
 

Additional Inherited Members

- Public Types inherited from Wasp::MyBase
typedef void(* ErrMsgCB_T) (const char *msg, int err_code)
 
typedef void(* DiagMsgCB_T) (const char *msg)
 
- Static Public Attributes inherited from Wasp::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
 
- Static Protected Attributes inherited from VAPoR::Renderer
static const int _imgHgt
 
static const int _imgWid
 

Detailed Description

Definition at line 11 of file VolumeRenderer.h.

Constructor & Destructor Documentation

◆ VolumeRenderer() [1/2]

VAPoR::VolumeRenderer::VolumeRenderer ( const ParamsMgr pm,
std::string &  winName,
std::string &  dataSetName,
std::string &  instName,
DataMgr dataMgr 
)

◆ VolumeRenderer() [2/2]

VAPoR::VolumeRenderer::VolumeRenderer ( const ParamsMgr pm,
std::string &  winName,
std::string &  dataSetName,
std::string  paramsType,
std::string  classType,
std::string &  instName,
DataMgr dataMgr 
)

◆ ~VolumeRenderer()

VAPoR::VolumeRenderer::~VolumeRenderer ( )

Member Function Documentation

◆ _clearCache()

void VAPoR::VolumeRenderer::_clearCache ( )
inlineprotectedvirtual

Implements VAPoR::Renderer.

Definition at line 22 of file VolumeRenderer.h.

◆ _computeNewFramebufferRatio()

void VAPoR::VolumeRenderer::_computeNewFramebufferRatio ( )
protected

◆ _drawScreenQuad()

void VAPoR::VolumeRenderer::_drawScreenQuad ( )
protected

◆ _drawScreenQuadChuncked()

void VAPoR::VolumeRenderer::_drawScreenQuadChuncked ( )
protected

◆ _generateChunkedRenderMesh()

void VAPoR::VolumeRenderer::_generateChunkedRenderMesh ( const float  chunks)
protected

◆ _getColorbarVariableName()

virtual std::string VAPoR::VolumeRenderer::_getColorbarVariableName ( ) const
protectedvirtual

Reimplemented from VAPoR::Renderer.

◆ _getDefaultAlgorithmForGrid()

virtual std::string VAPoR::VolumeRenderer::_getDefaultAlgorithmForGrid ( const Grid grid) const
protectedvirtual

Reimplemented in VAPoR::VolumeIsoRenderer.

◆ _initializeAlgorithm()

int VAPoR::VolumeRenderer::_initializeAlgorithm ( )
protected

◆ _initializeFramebuffer()

void VAPoR::VolumeRenderer::_initializeFramebuffer ( bool  fast)
protected

◆ _initializeGL()

int VAPoR::VolumeRenderer::_initializeGL ( )
protectedvirtual

Pure virtual method Any OpenGL initialization is performed in initializeGL It will be called from an OpenGL rendering context.

Implements VAPoR::RendererBase.

◆ _loadData()

int VAPoR::VolumeRenderer::_loadData ( )
protected

◆ _loadSecondaryData()

int VAPoR::VolumeRenderer::_loadSecondaryData ( )
protected

◆ _needToSetDefaultAlgorithm()

bool VAPoR::VolumeRenderer::_needToSetDefaultAlgorithm ( ) const
protected

◆ _paintGL()

int VAPoR::VolumeRenderer::_paintGL ( bool  fast)
protectedvirtual

All OpenGL rendering is performed in the pure virtual paintGL method.

Implements VAPoR::Renderer.

◆ _renderFramebufferToDisplay()

int VAPoR::VolumeRenderer::_renderFramebufferToDisplay ( )
protected

◆ _restoreOriginalViewport()

void VAPoR::VolumeRenderer::_restoreOriginalViewport ( )
protected

◆ _saveOriginalViewport()

void VAPoR::VolumeRenderer::_saveOriginalViewport ( )
protected

◆ _shouldUseChunkedRender()

bool VAPoR::VolumeRenderer::_shouldUseChunkedRender ( bool  fast) const
protected

◆ _usingColorMapData()

virtual bool VAPoR::VolumeRenderer::_usingColorMapData ( ) const
protectedvirtual

Reimplemented in VAPoR::VolumeIsoRenderer.

◆ _wasTooSlowForFastRender()

bool VAPoR::VolumeRenderer::_wasTooSlowForFastRender ( ) const
protected

◆ GetClassType()

static std::string VAPoR::VolumeRenderer::GetClassType ( )
inlinestatic

Definition at line 17 of file VolumeRenderer.h.

Referenced by VolumeEventRouter::GetClassType().

Friends And Related Function Documentation

◆ VolumeAlgorithm

friend class VolumeAlgorithm
friend

Definition at line 90 of file VolumeRenderer.h.

Member Data Documentation

◆ _algorithm

VolumeAlgorithm* VAPoR::VolumeRenderer::_algorithm = nullptr
protected

Definition at line 47 of file VolumeRenderer.h.

◆ _cache

struct VAPoR::VolumeRenderer::Cache VAPoR::VolumeRenderer::_cache
protected

◆ _dataMaxExt

std::vector<double> VAPoR::VolumeRenderer::_dataMaxExt
protected

Definition at line 59 of file VolumeRenderer.h.

◆ _dataMinExt

std::vector<double> VAPoR::VolumeRenderer::_dataMinExt
protected

Definition at line 58 of file VolumeRenderer.h.

◆ _framebuffer

Framebuffer VAPoR::VolumeRenderer::_framebuffer
protected

Definition at line 48 of file VolumeRenderer.h.

◆ _framebufferRatio

float VAPoR::VolumeRenderer::_framebufferRatio
protected

Definition at line 56 of file VolumeRenderer.h.

◆ _framebufferSize

int VAPoR::VolumeRenderer::_framebufferSize[2]
protected

Definition at line 55 of file VolumeRenderer.h.

◆ _lastRenderTime

double VAPoR::VolumeRenderer::_lastRenderTime
protected

Definition at line 51 of file VolumeRenderer.h.

◆ _lastRenderWasFast

bool VAPoR::VolumeRenderer::_lastRenderWasFast
protected

Definition at line 52 of file VolumeRenderer.h.

◆ _nChunks

int VAPoR::VolumeRenderer::_nChunks
protected

Definition at line 50 of file VolumeRenderer.h.

◆ _originalFramebuffer

int VAPoR::VolumeRenderer::_originalFramebuffer
protected

Definition at line 54 of file VolumeRenderer.h.

◆ _originalViewport

int VAPoR::VolumeRenderer::_originalViewport[4]
protected

Definition at line 53 of file VolumeRenderer.h.

◆ _previousFramebufferRatio

float VAPoR::VolumeRenderer::_previousFramebufferRatio
protected

Definition at line 57 of file VolumeRenderer.h.

◆ _VAO

unsigned int VAPoR::VolumeRenderer::_VAO = (int)NULL
protected

Definition at line 43 of file VolumeRenderer.h.

◆ _VAOChunked

unsigned int VAPoR::VolumeRenderer::_VAOChunked = (int)NULL
protected

Definition at line 45 of file VolumeRenderer.h.

◆ _VBO

unsigned int VAPoR::VolumeRenderer::_VBO = (int)NULL
protected

Definition at line 44 of file VolumeRenderer.h.

◆ _VBOChunked

unsigned int VAPoR::VolumeRenderer::_VBOChunked = (int)NULL
protected

Definition at line 46 of file VolumeRenderer.h.


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