Ignore:
Timestamp:
Mar 30, 2008, 1:40:15 AM (12 years ago)
Author:
gah
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/vizservers/nanovis/TransferFunction.h

    r830 r973  
    2323
    2424class TransferFunction{
    25   int size;     //the resolution of the color map, how many (RGBA) quadraples
    26   float* data;
    27   Texture1D* tex; //the texture storing the colors
     25    int _size;                  //the resolution of the color map, how many
     26                                //(RGBA) quadraples
     27    float* _data;
     28    Texture1D* _tex;            //the texture storing the colors
     29   
     30public:
     31    GLuint id;                  //OpenGL's texture identifier
    2832
    29 public:
    30   GLuint id;    //OpenGL's texture identifier
    31   TransferFunction(int _size, float* data);
    32   ~TransferFunction();
    33   void update(float* data);
    34     Texture1D* getTexture();
    35   float* getData() { return data; }
     33    TransferFunction(int size, float *data);
     34    ~TransferFunction();
     35    void update(float *data);
     36    void update(int size, float *data);
     37    Texture1D* getTexture(void) {
     38        return _tex;
     39    }
     40    float* getData(void) {
     41        return _data;
     42    }
    3643};
    3744
    38 inline Texture1D* TransferFunction::getTexture()
    39 {
    40     return tex;
    41 }
    42 
    4345#endif
Note: See TracChangeset for help on using the changeset viewer.