COVISE Core
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
26namespace covise
27{
28
31{
32
33private:
36
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
60public:
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
#define APIEXPORT
Definition: coExport.h:275
GLuint const GLchar * name
Definition: khronos-glext.h:6722
GLenum GLsizei len
Definition: khronos-glext.h:7440
GLsizei GLsizei GLenum GLenum const GLvoid * data
Definition: khronos-glext.h:6354
GLenum type
Definition: khronos-glext.h:6279
int min(int a, int b)
Definition: cutil_math.h:60
int max(int a, int b)
Definition: cutil_math.h:55
list of all chemical elements
Definition: coConfig.h:27
colormap_type
Definition: covise_msg.h:80
std::enable_if< I==sizeof...(Tp), void >::type print(Stream &s, const std::tuple< Tp... > &t)
Definition: tokenbuffer_util.h:68
File browser parameter.
Definition: coColormapParam.h:31
float * d_rgbax
Definition: coColormapParam.h:50
coColormapParam()
Default constructor: NOT IMPLEMENTED.
char * valString
return buffer
Definition: coColormapParam.h:55
static const char * s_type
Parameter type name.
Definition: coColormapParam.h:58
float d_min
Definition: coColormapParam.h:48
float d_max
Definition: coColormapParam.h:49
int d_len
Port data fields.
Definition: coColormapParam.h:47
float * d_data
Definition: coColormapParam.h:51
static coUifPara::Typeinfo s_paraType
my type info
Definition: coColormapParam.h:44
coColormapParam(const coColormapParam &)
Copy-Constructor: NOT IMPLEMENTED.
colormap_type d_colormapType
Definition: coColormapParam.h:52
coColormapParam & operator=(const coColormapParam &)
Assignment operator: NOT IMPLEMENTED.
Definition: coUifPara.h:24
int Typeinfo
Definition: coUifPara.h:28