25 #include <vapor/MyBase.h>
26 #include <vapor/common.h>
30 using namespace VetsUtil;
61 virtual void initializeGL() = 0;
64 virtual void paintGL() = 0;
82 void setBypass(
int timestep) {
if(currentRenderParams)currentRenderParams->setBypass(timestep);}
88 void setPartialBypass(
int timestep) {
if(currentRenderParams)currentRenderParams->setPartialBypass(timestep);}
94 void setAllBypass(
bool val){
if (currentRenderParams) currentRenderParams->setAllBypass(val);}
99 bool doBypass(
int timestep) {
return (currentRenderParams && currentRenderParams->doBypass(timestep));}
106 return (currentRenderParams && currentRenderParams->doAlwaysBypass(timestep));}
111 virtual void setAllDataDirty() = 0;
113 #ifndef DOXYGEN_SKIP_THIS
114 const string& getMyName()
const {
return(_myName);};
116 virtual bool clutIsDirty() {
return clutDirtyBit;}
117 virtual void setClutDirty(){clutDirtyBit =
true;}
118 virtual void clearClutDirty(){clutDirtyBit =
false;}
119 void renderColorscale(
bool rebuild,
int colorbarIndex);
121 GLWindow* myGLWindow;
126 void statusMessage(
const QString&);
129 void enableClippingPlanes(
const double extents[6]);
130 void enableFullClippingPlanes();
131 void enableRegionClippingPlanes();
132 void enable2DClippingPlanes();
133 void disableFullClippingPlanes();
134 void disableRegionClippingPlanes();
135 RenderParams* currentRenderParams;
136 void buildColorscaleImage(
int colortableIndex);
142 int imgWidth, imgHeight;
143 QImage glColorbarImage;
145 float regionFrameColor[3];
146 float subregionFrameColor[3];
149 GLuint _colorbarTexid;
154 #endif //DOXYGEN_SKIP_THIS
RenderParams * getRenderParams()
A class for performing OpenGL rendering in a VAPOR Visualizer.
A Params subclass for managing parameters used by Renderers.
void setAllBypass(bool val)
bool doBypass(int timestep)
bool doAlwaysBypass(int timestep)
void setPartialBypass(int timestep)
virtual void setRenderParams(RenderParams *rp)
void setBypass(int timestep)
A class that performs rendering in the GLWindow.