Flow Visualization 1.0

TransferFunction.h

00001 #ifndef __transferfunction_header
00002 #define __transferfunction_header
00003 
00004 #include <QtOpenGL>
00005 
00011 class TransferFunction : public QObject
00012 {
00013     Q_OBJECT
00014 public:
00015         TransferFunction(void);
00016         virtual ~TransferFunction(void);
00017 
00018         static TransferFunction *instance(int id);      //returns singelton instance
00019 
00020         GLuint getTextureName();
00021 public slots:
00022         void updateTransferTexture(unsigned char *new_data);
00023 
00024 private:
00025         GLuint textureName;
00026 };
00027 
00028 
00029 #endif