COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
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 
20 namespace covise
21 {
22 
25 {
26 
27 private:
29  coColorParam(const coColorParam &);
30 
32  coColorParam &operator=(const coColorParam &);
33 
35  coColorParam();
36 
39 
41  float d_value[4];
42 
43  // Parameter type name
44  static const char *s_type;
45 
46 public:
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
Definition: coUifPara.h:23
GLuint const GLchar * name
Definition: khronos-glext.h:6722
Multiple float parameters.
Definition: coColorParam.h:24
GLboolean GLboolean GLboolean b
Definition: khronos-glext.h:6895
static coUifPara::Typeinfo s_paraType
my type info
Definition: coColorParam.h:38
GLdouble GLdouble GLdouble r
Definition: khronos-glext.h:6457
#define APIEXPORT
Definition: coExport.h:251
const GLubyte * c
Definition: khronos-glext.h:9864
GLboolean GLboolean GLboolean GLboolean a
Definition: khronos-glext.h:6895
static const char * s_type
Definition: coColorParam.h:44
GLenum type
Definition: khronos-glext.h:6279
GLboolean GLboolean g
Definition: khronos-glext.h:6895
int Typeinfo
Definition: coUifPara.h:28