FlowVis 1.0
|
Renderable Layer. More...
#include <LayerRenderable.h>
Public Member Functions | |
void | setType (int type) |
Setter for type. | |
void | setChannel (int channel) |
Setter for channel. | |
void | setTransferFunction (const QImage &image) |
Setter for transfer function. | |
void | draw (GLuint *textures, QVector< Shader * > shaders, GLuint *dispLists, float aspect, bool glyph=false, bool texture=false) |
Renders the layer. | |
Private Attributes | |
int | ltype |
int | lchannel |
GLuint | transferTexture |
Renderable Layer.
This class provides functions to configure and render a layer.
Definition at line 15 of file LayerRenderable.h.
void LayerRenderable::draw | ( | GLuint * | textures, |
QVector< Shader * > | shaders, | ||
GLuint * | dispLists, | ||
float | aspect, | ||
bool | glyph = false , |
||
bool | texture = false |
||
) |
Renders the layer.
This functions renders the layer.
textures | array containing the OpenGL texture IDs |
shaders | vector containing the shader objects |
dispLists | array containing the precompiled OpenGL display lists |
aspect | aspect ration of the dataset |
glyph | if true glyphs are rendered instead of lines in streamline mode |
texture | if true streamlines are rendered in texture mode |
Definition at line 24 of file LayerRenderable.cpp.
void LayerRenderable::setChannel | ( | int | channel | ) | [inline] |
Setter for channel.
This functions sets the channel of the layer.
channel | new channel |
Definition at line 46 of file LayerRenderable.h.
void LayerRenderable::setTransferFunction | ( | const QImage & | image | ) |
Setter for transfer function.
This functions sets the 1D image representing the transfer function of the layer.
image | new 1D image representing the transfer function |
Definition at line 13 of file LayerRenderable.cpp.
void LayerRenderable::setType | ( | int | type | ) | [inline] |
Setter for type.
This functions sets the type of the layer.
type | new type |
Definition at line 34 of file LayerRenderable.h.