FlowVis 1.0
|
00001 #pragma once 00002 #include "commonGL.h" 00003 #include <QVector> 00004 #include <QtGui/QImage> 00005 00015 class LayerRenderable 00016 { 00017 00018 00019 public: 00020 LayerRenderable(void); 00021 ~LayerRenderable(void); 00022 00023 public: 00034 void setType(int type){ltype = type;} 00035 00046 void setChannel(int channel){lchannel = channel;} 00047 00058 void setTransferFunction(const QImage& image); 00059 00075 void draw(GLuint* textures,QVector<Shader*> shaders, GLuint* dispLists, 00076 float aspect,bool glyph = false, bool texture = false); 00077 00078 private: 00079 int ltype; 00080 int lchannel; 00081 GLuint transferTexture; 00082 }; 00083