#include <Texture.h>
Public Member Functions | |
| GLuint | Create (FlowChannel *channel, int dimX, int dimY) |
| void | CreateBackground (FlowChannel *channel, int dimX, int dimY, GLuint texID[], int idx) |
| GLuint | CreateGlyph () |
| GLuint | CreateColorBar (QGradientStops stops) |
| 2D | |
| void | Delete (GLuint id) |
Definition at line 15 of file Texture.h.
| GLuint Texture::Create | ( | FlowChannel * | channel, | |
| int | dimX, | |||
| int | dimY | |||
| ) |
Definition at line 3 of file Texture.cpp.
References Delete().

| void Texture::CreateBackground | ( | FlowChannel * | channel, | |
| int | dimX, | |||
| int | dimY, | |||
| GLuint | texID[], | |||
| int | idx | |||
| ) |
get Data direct from channel -> normalized and ready for takeoff :-)))
Definition at line 49 of file Texture.cpp.
References FlowChannel::getData().
Referenced by OpenGLWidget::setFlowData().

| GLuint Texture::CreateGlyph | ( | ) |
| GLuint Texture::CreateColorBar | ( | QGradientStops | stops | ) |
2D
use polygon to visualize gradient stops TODO: size!!!!
generate gradient from stops
assign stops to linear gradient
TODO (obtain correct size)
paint to QImage
paint gradient to image
convert to glTexture ... again ;-)
Definition at line 216 of file Texture.cpp.
Referenced by OpenGLWidget::setColorBarTexture().
| void Texture::Delete | ( | GLuint | id | ) |
Definition at line 266 of file Texture.cpp.
Referenced by Create(), and OpenGLWidget::setFlowData().
1.5.4