89 int CreateRenderer(
string dataSetName,
string renderType,
string renderName);
98 void DestroyRenderer(
string renderType,
string renderName,
bool hasOpenGLContext);
124 if (_animationCaptureEnabled) {
125 SetErrMsg(
"Image capture concurrent with Animation Capture\n");
128 _imageCaptureEnabled = onOff;
130 _captureImageFile = filename;
132 _captureImageFile =
"";
140 if (_imageCaptureEnabled) {
141 SetErrMsg(
"Image capture concurrent with Animation Capture\n");
144 if (_animationCaptureEnabled == onOff) {
145 SetErrMsg(
"Animation capture in incorrect state\n");
148 _animationCaptureEnabled = onOff;
150 _captureImageFile = filename;
152 _captureImageFile =
"";
158 void DrawText(
string text,
int x,
int y,
int size,
float color[3],
int type = 0) { _vizFeatures->AddText(text, x, y, size, color, type); }
160 void DrawTextNormalizedCoords(
string text,
float x,
float y,
int size,
float color[3],
int type = 0) { _vizFeatures->AddTextNormalizedCoords(text, x, y, size, color, type); }
174 void _renderColorbars(
int timeStep);
181 int _captureImage(std::string path);
183 void _loadMatricesFromViewpointParams();
186 enum GLVendorType { UNKNOWN = 0, MESA, NVIDIA, ATI, INTEL };
190 static GLVendorType GetVendor();
193 int _configureLighting();
198 bool _getPixelData(
unsigned char *data)
const;
200 void _deleteFlaggedRenderers();
201 int _initializeNewRenderers();
202 void _clearActiveFramebuffer(
float r,
float g,
float b)
const;
203 void _applyDatasetTransformsForRenderer(
Renderer *r);
205 int _getCurrentTimestep()
const;
207 static void _incrementPath(
string &s);
209 Renderer *_getRenderer(
string type,
string instance)
const;
217 bool _insideGLContext;
219 bool _imageCaptureEnabled;
220 bool _animationCaptureEnabled;
221 string _captureImageFile;
223 vector<Renderer *> _renderers;
224 vector<Renderer *> _renderersToDestroy;
227 unsigned int _screenQuadVAO = 0;
228 unsigned int _screenQuadVBO = 0;
A class for describing visual features displayed in the visualizer.
Class that draws various geometry as specified by AnnotationParams.
A class for describing the currently loaded dataset.
Wrapper class for an OpenGL Framebuffer.
A singleton class for managing Params instances.
A class for describing a 3D axis-aligned region in user space.
A class that performs rendering in a Visualizer.
A class for describing the viewpoint and lights in a 3D VAPOR scene.
A class for performing OpenGL rendering in VAPOR GUI Window.
string GetWindowName() const
int InitializeGL(GLManager *glManager)
void DrawTextNormalizedCoords(string text, float x, float y, int size, float color[3], int type=0)
double getPixelSize() const
bool HasRenderer(string renderType, string renderName) const
int GetNumRenderers() const
RegionParams * getActiveRegionParams() const
void ClearRenderCache(const string &inst)
Visualizer(const ParamsMgr *pm, const DataStatus *dataStatus, string winName)
ViewpointParams * getActiveViewpointParams() const
int resizeGL(int w, int h)
void MoveRendererToFront(string renderType, string renderName)
void DestroyRenderer(string renderType, string renderName, bool hasOpenGLContext)
void DestroyAllRenderers(bool hasOpenGLContext)
int SetImageCaptureEnabled(bool onOff, string filename)
AnnotationParams * getActiveAnnotationParams() const
void DrawText(string text, int x, int y, int size, float color[3], int type=0)
Draw a text banner at x, y coordinates.
void MoveRenderersOfTypeToFront(const std::string &type)
int CreateRenderer(string dataSetName, string renderType, string renderName)
int SetAnimationCaptureEnabled(bool onOff, string filename)
int paintEvent(bool fast)
Contains references to context scope OpenGL data.