55 void _initTexCoordVBO();
56 void _initVertexVBO();
58 bool _isColormapCacheDirty()
const;
59 bool _isDataCacheDirty()
const;
60 bool _isBoxCacheDirty()
const;
62 void _resetColormapCache();
64 void _createDataTexture(std::unique_ptr<float> &dataValues);
65 int _regenerateSlice();
66 int _getGrid3D(
Grid *&grid)
const;
68 void _drawDebugPolygons();
71 void _configureShader();
73 void _initializeState();
76 size_t _textureSideSize;
78 GLuint _colorMapTextureID;
79 GLuint _dataValueTextureID;
81 std::vector<double> _windingOrder;
82 std::vector<double> _rectangle3D;
90 void _clearCache() { _cacheParams.varName.clear(); }
A cache based data reader.
Abstract base class for a 2D or 3D structured or unstructured grid.
A singleton class for managing Params instances.
A class that performs rendering in a Visualizer.
SliceRenderer(const ParamsMgr *pm, string winName, string dataSetName, string instName, DataMgr *dataMgr)
std::vector< double > sliceNormal
VAPoR::CoordType domainMax
virtual int _paintGL(bool fast)
All OpenGL rendering is performed in the pure virtual paintGL method.
std::vector< double > sampleLocation
std::vector< double > sliceRotation
static string GetClassType()
std::vector< float > tf_lut
virtual int _initializeGL()
std::vector< double > tf_minMax
std::array< double, 3 > CoordType
Type for specifying floating point coordinates.