COVISE Core
coColorParam.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_COLORNEW_PARAM_H
9#define CO_COLORNEW_PARAM_H
10
11// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
12// + +
13// + coColorParam Parameter handling class +
14// + +
15// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
16
17#include <covise/covise.h>
18#include "coUifPara.h"
19
20namespace covise
21{
22
25{
26
27private:
30
33
36
39
41 float d_value[4];
42
43 // Parameter type name
44 static const char *s_type;
45
46public:
48 coColorParam(const char *name, const char *desc);
49
51 virtual ~coColorParam();
52
54 virtual int isOfType(coUifPara::Typeinfo type);
55
57 static coUifPara::Typeinfo getType();
58
60 virtual int paramChange();
61
63 virtual void initialize();
64
66 virtual void print(ostream &str) const;
67
69 int setValue(float r, float g, float b, float a);
70
72 float getValue(int c) const;
73
75 int getValue(float &r, float &g, float &b, float &a) const;
76
78 virtual const char *getTypeString() const;
79
81 virtual const char *getValString() const;
82
84 virtual void setValString(const char *str);
85};
86}
87#endif
#define APIEXPORT
Definition: coExport.h:275
const GLubyte * c
Definition: khronos-glext.h:9864
GLboolean GLboolean GLboolean b
Definition: khronos-glext.h:6895
GLboolean GLboolean g
Definition: khronos-glext.h:6895
GLuint const GLchar * name
Definition: khronos-glext.h:6722
GLdouble GLdouble GLdouble r
Definition: khronos-glext.h:6457
GLboolean GLboolean GLboolean GLboolean a
Definition: khronos-glext.h:6895
GLenum type
Definition: khronos-glext.h:6279
list of all chemical elements
Definition: coConfig.h:27
std::enable_if< I==sizeof...(Tp), void >::type print(Stream &s, const std::tuple< Tp... > &t)
Definition: tokenbuffer_util.h:68
Multiple float parameters.
Definition: coColorParam.h:25
coColorParam & operator=(const coColorParam &)
Assignment operator: NOT IMPLEMENTED.
static const char * s_type
Definition: coColorParam.h:44
static coUifPara::Typeinfo s_paraType
my type info
Definition: coColorParam.h:38
coColorParam()
Default constructor: NOT IMPLEMENTED.
coColorParam(const coColorParam &)
Copy-Constructor: NOT IMPLEMENTED.
Definition: coUifPara.h:24
int Typeinfo
Definition: coUifPara.h:28