108 bool _flaggedForDeletion;
127 Renderer(
const ParamsMgr *pm,
string winName,
string dataSetName,
string paramsType,
string classType,
string instName,
DataMgr *dataMgr);
149#ifdef VAPOR3_0_0_ALPHA
152#ifdef VAPOR3_0_0_ALPHA
156 void setBypass(
int timestep)
158 if (_currentRenderParams) _currentRenderParams->setBypass(timestep);
165 void setPartialBypass(
int timestep)
167 if (_currentRenderParams) _currentRenderParams->setPartialBypass(timestep);
174 void setAllBypass(
bool val)
176 if (_currentRenderParams) _currentRenderParams->setAllBypass(val);
182 bool doBypass(
int timestep) {
return (_currentRenderParams && _currentRenderParams->doBypass(timestep)); }
188 bool doAlwaysBypass(
int timestep) {
return (_currentRenderParams && _currentRenderParams->doAlwaysBypass(timestep)); }
194 virtual void setAllDataDirty() {
return; }
197#ifdef VAPOR3_0_0_ALPHA
200 static void SetControlExec(ControlExec *ce) { _controlExec = ce; }
218 static void UndoRedo(
bool isUndo,
int instance, Params *beforeP, Params *afterP, Params *auxPrev = 0, Params *auxNext = 0);
222#ifdef VAPOR3_0_0_ALPHA
231 void buildLocal2DTransform(
int dataOrientation,
float a[2],
float b[2],
float *constVal,
int mappedDims[3]);
234#ifdef VAPOR3_0_0_ALPHA
239 void getLocalContainingRegion(
float regMin[3],
float regMax[3]);
298 virtual bool VariableExists(
size_t ts, std::vector<string> &varnames,
int level,
int lod,
bool zeroOK)
const;
310#ifdef VAPOR3_0_0_ALPHA
334 map<string, function<
Renderer *(
const ParamsMgr *, string, string, string, string,
DataMgr *)>> _factoryFunctionRegistry;
335 map<string, string> _factoryMapRegistry;
362 RendererFactory::Instance()->RegisterFactoryFunction(classType, paramsClassType,
363 [](
const ParamsMgr *pm,
string winName,
string dataSetName,
string classType,
string instName,
DataMgr *dataMgr) ->
Renderer * {
364 return new T(pm, winName, dataSetName, instName, dataMgr);
A class for describing visual features displayed in the visualizer.
Provides API for VAPOR visualizer User Interfaces (UIs)
A cache based data reader.
A singleton class for managing Params instances.
A Params subclass for managing parameters used by Renderers.
A base class for Renderer classes.
virtual int _initializeGL()=0
RendererBase(const ParamsMgr *pm, string winName, string dataSetName, string paramsType, string classType, string instName, DataMgr *dataMgr)
string GetMyDatasetName() const
string GetInstanceName() const
string GetVisualizer()
Obtain the Visualizer associated with this Renderer.
bool IsFlaggedForDeletion() const
bool IsGLInitialized() const
string GetMyParamsType() const
virtual int initializeGL(GLManager *glManager)
const ParamsMgr * _paramsMgr
Renderer * CreateInstance(const ParamsMgr *pm, string winName, string dataSetName, string classType, string instName, DataMgr *dataMgr))
string GetParamsClassFromRenderClass(string renderClass) const
std::vector< string > GetFactoryNames() const
static RendererFactory * Instance()
void RegisterFactoryFunction(string myName, string myParamsName, function< Renderer *(const ParamsMgr *, string, string, string, string, DataMgr *)> classFactoryFunction)
string GetRenderClassFromParamsClass(string paramsClass) const
RendererRegistrar(string classType, string paramsClassType)
A class that performs rendering in a Visualizer.
virtual int _paintGL(bool fast)=0
All OpenGL rendering is performed in the pure virtual paintGL method.
AnnotationParams * GetAnnotationParams() const
ViewpointParams * GetViewpointParams() const
virtual void _clearCache()=0
RenderParams * GetActiveParams() const
virtual bool VariableExists(size_t ts, std::vector< string > &varnames, int level, int lod, bool zeroOK) const
static void ApplyTransform(GLManager *gl, const Transform *dataset, const Transform *renderer)
void renderColorbar()
Render the colorbar for this renderer (if it has one)
void GetClippingPlanes(float planes[24]) const
Renderer(const ParamsMgr *pm, string winName, string dataSetName, string paramsType, string classType, string instName, DataMgr *dataMgr)
unsigned char * _colorbarTexture
Transform * GetDatasetTransform() const
double GetDefaultZ(DataMgr *dataMgr, size_t ts) const
void DisableClippingPlanes()
virtual std::string _getColorbarVariableName() const
virtual int paintGL(bool fast)
static void ApplyDatasetTransform(GLManager *gl, const Transform *dataset)
void EnableClipToBox(ShaderProgram *shader, float haloFrac=0.0) const
Provides a C++ interface to the OpenGL shader program construct.
A class for describing the viewpoint and lights in a 3D VAPOR scene.
Contains references to context scope OpenGL data.