COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
coColormapParam.h
Go to the documentation of this file.
1 /* This file is part of COVISE.
2 
3  You can use it under the terms of the GNU Lesser General Public License
4  version 2.1 or later, see lgpl-2.1.txt.
5 
6  * License: LGPL 2+ */
7 
8 #ifndef _CO_COLORMAP_PARAM_H_
9 #define _CO_COLORMAP_PARAM_H_
10 
11 // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
12 // + +
13 // + coColormapParam Parameter handling class +
14 // + +
15 // + Andreas Werner +
16 // + (C) Computing Center University of Stuttgart +
17 // + Allmandring 30a +
18 // + 70550 Stuttgart +
19 // + Date: 19.07.99 +
20 // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
21 
22 #include "coUifPara.h"
23 #include <covise/covise.h>
24 #include <covise/covise_msg.h>
25 
26 namespace covise
27 {
28 
31 {
32 
33 private:
36 
38  coColormapParam &operator=(const coColormapParam &);
39 
42 
45 
47  int d_len, d_lenData;
48  float d_min;
49  float d_max;
50  float *d_rgbax;
51  float *d_data;
53 
55  mutable char *valString;
56 
58  static const char *s_type;
59 
60 public:
62  coColormapParam(const char *name, const char *desc);
63 
65  virtual ~coColormapParam();
66 
68  virtual int isOfType(coUifPara::Typeinfo type);
69 
71  static coUifPara::Typeinfo getType();
72 
74  virtual int paramChange();
75 
77  virtual void initialize();
78 
80  virtual void print(ostream &str) const;
81 
83  int setValue(int len, float min, float max, const float *rgbax);
84 
86  int setData(int len, const float *data);
87 
89  int setMinMax(float min, float max);
90 
92  int getValue(float *min, float *max, colormap_type *type, const float **rgbax) const;
93 
95  virtual const char *getTypeString() const;
96 
98  virtual const char *getValString() const;
99 
101  virtual void setValString(const char *str);
102 };
103 }
104 #endif
GLenum GLsizei len
Definition: khronos-glext.h:7440
float d_min
Definition: coColormapParam.h:48
Definition: coUifPara.h:23
GLuint const GLchar * name
Definition: khronos-glext.h:6722
static const char * s_type
Parameter type name.
Definition: coColormapParam.h:58
float * d_rgbax
Definition: coColormapParam.h:50
colormap_type
Definition: covise_msg.h:79
float * d_data
Definition: coColormapParam.h:51
char * valString
return buffer
Definition: coColormapParam.h:55
int d_lenData
Definition: coColormapParam.h:47
File browser parameter.
Definition: coColormapParam.h:30
float d_max
Definition: coColormapParam.h:49
colormap_type d_colormapType
Definition: coColormapParam.h:52
#define APIEXPORT
Definition: coExport.h:251
GLenum type
Definition: khronos-glext.h:6279
static coUifPara::Typeinfo s_paraType
my type info
Definition: coColormapParam.h:44
int Typeinfo
Definition: coUifPara.h:28
GLsizei GLsizei GLenum GLenum const GLvoid * data
Definition: khronos-glext.h:6354
int min(int a, int b)
Definition: cutil_math.h:60
int max(int a, int b)
Definition: cutil_math.h:55