19 RayCaster(
const ParamsMgr *pm, std::string &winName, std::string &dataSetName, std::string paramsType, std::string classType, std::string &instName,
DataMgr *dataMgr);
64 float myGridMin[3], myGridMax[3];
109 unsigned char * maskBuf);
115 float _colorMapRange[3];
117 GLint _currentViewport[4];
161 void _drawVolumeFaces(
int whichPass,
int whichCastingMode,
const std::vector<size_t> &cameraCellIdx,
const glm::mat4 &inversedMV = glm::mat4(0.0f),
bool fast =
false)
const;
A cache based data reader.
A singleton class for managing Params instances.
unsigned char * secondVarMask
void IterateAGrid(const StructuredGrid *grid, size_t numOfVert, float *dataBuf, unsigned char *maskBuf)
std::string myVariableName
int UpdateFaceAndData(const RayCasterParams *params, const StructuredGrid *grid, DataMgr *dataMgr)
void FillCoordsXZPlane(const StructuredGrid *grid, size_t planeIdx, float *coords)
unsigned char * missingValueMask
void CheckUpToDateStatus(const RayCasterParams *params, const StructuredGrid *grid, DataMgr *dataMgr, bool use2ndVar)
int Update2ndVariable(const RayCasterParams *params, DataMgr *dataMgr)
int UpdateVertCoords(const RayCasterParams *params, const StructuredGrid *grid, DataMgr *dataMgr)
void FillCoordsYZPlane(const StructuredGrid *grid, size_t planeIdx, float *coords)
int GetCurrentGrid(const RayCasterParams *params, DataMgr *dataMgr, StructuredGrid **gridpp) const
void FillCoordsXYPlane(const StructuredGrid *grid, size_t planeIdx, float *coords)
const GLint _colorMapTexOffset
const GLint _missingValueTexOffset
void _configure3DTextureNearestInterpolation() const
void _updateDataTextures()
const GLint _2ndVarMaskTexOffset
const GLint _frontFaceTexOffset
GLuint _colorMapTextureId
virtual void _colormapSpecialHandling()
int _paintGL(bool fast)
All OpenGL rendering is performed in the pure virtual paintGL method.
std::vector< float > _colorMap
GLuint _frontFaceTextureId
void _renderTriangleStrips(int whichPass, int castingMode) const
int _initializeFramebufferTextures()
const GLint _volumeTexOffset
const GLint _depthTexOffset
void _drawVolumeFaces(int whichPass, int whichCastingMode, const std::vector< size_t > &cameraCellIdx, const glm::mat4 &inversedMV=glm::mat4(0.0f), bool fast=false) const
UserCoordinates _userCoordinates
const GLint _2ndVarDataTexOffset
double _getElapsedSeconds(const struct timeval *begin, const struct timeval *end) const
const GLint _backFaceTexOffset
void _updateColormap(RayCasterParams *params)
ShaderProgram * _3rdPassMode1Shader
void _configure2DTextureLinearInterpolation() const
void _load3rdPassUniforms(int castingMode, bool fast, bool insideVolume) const
int _selectDefaultCastingMethod() const
GLuint _vertCoordsTextureId
RayCaster(const ParamsMgr *pm, std::string &winName, std::string &dataSetName, std::string paramsType, std::string classType, std::string &instName, DataMgr *dataMgr)
void _updateViewportWhenNecessary(const GLint *viewport)
GLuint _missingValueTextureId
ShaderProgram * _3rdPassShader
ShaderProgram * _3rdPassMode2Shader
ShaderProgram * _1stPassShader
virtual int _load3rdPassShaders()=0
void _configure3DTextureLinearInterpolation() const
virtual void _update2ndVarTextures()
void _sleepAWhile() const
virtual void _3rdPassSpecialHandling(bool fast, int castingMode) const
virtual bool _use2ndVariable(const RayCasterParams *params) const
GLuint _backFaceTextureId
ShaderProgram * _2ndPassShader
int _updateVertCoordsTexture(const glm::mat4 &MV)
const GLint _vertCoordsTexOffset
A class that performs rendering in a Visualizer.
Provides a C++ interface to the OpenGL shader program construct.
Abstract base class for a 2D or 3D structured grid.