Changeset 3568 for trunk/packages/vizservers/nanovis/TransferFunction.h
- Timestamp:
- Mar 24, 2013 11:39:16 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/nanovis/TransferFunction.h
r3502 r3568 17 17 #define TRANSFER_FUNCTION_H 18 18 19 #include <string> 20 19 21 #include <vrmath/Vector3f.h> 20 22 … … 24 26 { 25 27 public: 26 TransferFunction( int size, float *data);28 TransferFunction(const char *name, int size, float *data); 27 29 28 30 void update(float *data); … … 57 59 const char *name() const 58 60 { 59 return _name; 60 } 61 62 void name(const char *name) 63 { 64 _name = name; 61 return _name.c_str(); 65 62 } 66 63 … … 77 74 float *_data; 78 75 Texture1D *_tex; ///< the texture storing the colors 79 const char *_name;76 std::string _name; 80 77 GLuint _id; ///< OpenGL texture identifier 81 78 };
Note: See TracChangeset
for help on using the changeset viewer.