Texture Class Reference

#include <Texture.h>

List of all members.

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)


Detailed Description

Definition at line 15 of file Texture.h.


Member Function Documentation

GLuint Texture::Create ( FlowChannel channel,
int  dimX,
int  dimY 
)

Definition at line 3 of file Texture.cpp.

References Delete().

Here is the call graph for this function:

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().

Here is the call graph for this function:

GLuint Texture::CreateGlyph (  ) 

Definition at line 118 of file Texture.cpp.

Referenced by Arrows::setFlowData().

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().


The documentation for this class was generated from the following files:
Generated on Mon Jan 21 14:50:32 2008 for VisLU by  doxygen 1.5.4