List of all members.
Constructor & Destructor Documentation
OpenGLColorgradientWidget::OpenGLColorgradientWidget |
( |
QWidget * |
parent = 0 | ) |
|
OpenGLColorgradientWidget::~OpenGLColorgradientWidget |
( |
| ) |
|
Member Function Documentation
void OpenGLColorgradientWidget::generateTransferTexture |
( |
float * |
rgbaValues, |
|
|
int |
textureSize, |
|
|
int |
type |
|
) |
| |
|
slot |
Generates a 1D texture for the gives RGBA values.
- Parameters:
-
rgbaValues | The RGBA values for the texture. |
textureSize | The 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:
-
width | The new width of the window, measured in pixel. |
height | The new height of the window, measured in pixel. |
The documentation for this class was generated from the following files: