Kinetic Visualization
 All Classes Functions Variables Pages
Public Slots | Public Member Functions | Protected Member Functions
OpenGLColorgradientWidget Class Reference

List of all members.

Public Slots

void generateTransferTexture (float *rgbaValues, int textureSize, int type)
void resetTransferTexture ()
void setMode (int mode)

Public Member Functions

 OpenGLColorgradientWidget (QWidget *parent=0)
 ~OpenGLColorgradientWidget ()

Protected Member Functions

void initializeGL ()
void resizeGL (int width, int height)
void paintGL ()

Constructor & Destructor Documentation

OpenGLColorgradientWidget::OpenGLColorgradientWidget ( QWidget *  parent = 0)

The constructor.

OpenGLColorgradientWidget::~OpenGLColorgradientWidget ( )

The destructor.


Member Function Documentation

void OpenGLColorgradientWidget::generateTransferTexture ( float *  rgbaValues,
int  textureSize,
int  type 
)
slot

Generates a 1D texture for the gives RGBA values.

Parameters:
rgbaValuesThe RGBA values for the texture.
textureSizeThe size of the texture.
void OpenGLColorgradientWidget::initializeGL ( )
protected

Initialize GLEW and sets up an OpenGL 3.2 context.

void OpenGLColorgradientWidget::paintGL ( )
protected

Renders the transfer texture.

void OpenGLColorgradientWidget::resetTransferTexture ( )
slot

Deletes the current transfer texture.

void OpenGLColorgradientWidget::resizeGL ( int  width,
int  height 
)
protected

Sets the new viewport and calculates the vertices from the quad.

Parameters:
widthThe new width of the window, measured in pixel.
heightThe new height of the window, measured in pixel.

The documentation for this class was generated from the following files: