pymor.discretizers.builtin.gui.gl
¶
Visualization of grid data using OpenGL.
This module provides a widget for displaying patch plots of
scalar data assigned to 2D-grids using OpenGL. This widget is not
intended to be used directly. Instead, use
visualize_patch
or
PatchVisualizer
.
Module Contents¶
- pymor.discretizers.builtin.gui.gl.FS = Multiline-String[source]¶
Show Value
1#version 120 2 3uniform sampler1D colormap; 4 5varying float value; 6 7void main() 8{ 9 gl_FragColor = texture1D(colormap, value); 10}
- pymor.discretizers.builtin.gui.gl.VS = Multiline-String[source]¶
Show Value
1#version 120 2// Attribute variable that contains coordinates of the vertices. 3attribute vec3 position; 4varying float value; 5 6void main() 7{ 8 gl_Position.xy = position.xy; 9 gl_Position.z = 0.; 10 gl_Position.w = 1.; 11 value = position.z; 12}
- class pymor.discretizers.builtin.gui.gl.ColorBarWidget(parent, U=None, vmin=None, vmax=None)[source]¶
Bases:
qtpy.QtWidgets.QOpenGLWidget
Methods
- class pymor.discretizers.builtin.gui.gl.GLPatchWidget(parent, grid, vmin=None, vmax=None, bounding_box=([0, 0], [1, 1]), codim=2)[source]¶
Bases:
qtpy.QtWidgets.QOpenGLWidget
Methods