source: trunk/gui/vizservers/nanovis/TransferFunction.h @ 455

Last change on this file since 455 was 380, checked in by qiaow, 19 years ago

Transfer function widget is working!!

File size: 999 bytes
Line 
1
2/*
3 * ----------------------------------------------------------------------
4 * ColorMap.h: color map class contains an array of (RGBA) values
5 *
6 * ======================================================================
7 *  AUTHOR:  Wei Qiao <qiaow@purdue.edu>
8 *           Purdue Rendering and Perceptualization Lab (PURPL)
9 *
10 *  Copyright (c) 2004-2006  Purdue Research Foundation
11 *
12 *  See the file "license.terms" for information on usage and
13 *  redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
14 * ======================================================================
15 */
16
17#ifndef _TRANSFER_FUNCTION_H_
18#define _TRANSFER_FUNCTION_H_
19
20
21#include "Texture1D.h"
22
23
24class TransferFunction{
25  int size;     //the resolution of the color map, how many (RGBA) quadraples
26  Texture1D* tex; //the texture storing the colors
27
28public:
29  GLuint id;    //OpenGL's texture identifier
30  TransferFunction(int _size, float* data);
31  ~TransferFunction();
32  void update(float* data);
33};
34
35
36#endif
Note: See TracBrowser for help on using the repository browser.