COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
coMaterialParam.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_MATERIAL_PARAM_H_
9 #define _CO_MATERIAL_PARAM_H_
10 
11 // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
12 // + +
13 // + coMaterialParam Parameter handling class +
14 // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
15 
16 #include <covise/covise.h>
17 #include <appl/CoviseBase.h>
18 #include "coUifPara.h"
19 
20 namespace covise
21 {
22 
25 {
26 public:
28  coMaterialParam(const char *name, const char *desc);
29 
31  virtual ~coMaterialParam();
32 
34  virtual int isOfType(coUifPara::Typeinfo type);
35 
37  static coUifPara::Typeinfo getType();
38 
40  virtual int paramChange();
41 
43  virtual void initialize();
44 
46  virtual void print(ostream &str) const;
47 
49  int setValue(const string &value);
50 
52  const string getValue() const;
53 
55  virtual const char *getTypeString() const;
56 
58  virtual const char *getValString() const;
59 
61  virtual void setValString(const char *str);
62 
63 private:
66 
68  coMaterialParam &operator=(const coMaterialParam &);
69 
72 
75 
77  string d_value;
78 
79  // Parameter type name
80  static const char *s_type;
81 };
82 }
83 #endif
Definition: coUifPara.h:23
GLuint const GLchar * name
Definition: khronos-glext.h:6722
static coUifPara::Typeinfo s_paraType
my type info
Definition: coMaterialParam.h:74
string d_value
Port data fields.
Definition: coMaterialParam.h:77
#define APIEXPORT
Definition: coExport.h:251
static const char * s_type
Definition: coMaterialParam.h:80
parameter to choose values from a list
Definition: coMaterialParam.h:24
GLenum type
Definition: khronos-glext.h:6279
int Typeinfo
Definition: coUifPara.h:28
GLsizei const GLfloat * value
Definition: khronos-glext.h:6760