COVISE Core
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
20namespace covise
21{
22
25{
26public:
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
63private:
66
69
72
75
77 string d_value;
78
79 // Parameter type name
80 static const char *s_type;
81};
82}
83#endif
#define APIEXPORT
Definition: coExport.h:275
GLsizei const GLfloat * value
Definition: khronos-glext.h:6760
GLuint const GLchar * name
Definition: khronos-glext.h:6722
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
parameter to choose values from a list
Definition: coMaterialParam.h:25
coMaterialParam(const coMaterialParam &)
Copy-Constructor: NOT IMPLEMENTED.
coMaterialParam()
Default constructor: NOT IMPLEMENTED.
string d_value
Port data fields.
Definition: coMaterialParam.h:77
static const char * s_type
Definition: coMaterialParam.h:80
static coUifPara::Typeinfo s_paraType
my type info
Definition: coMaterialParam.h:74
coMaterialParam & operator=(const coMaterialParam &)
Assignment operator: NOT IMPLEMENTED.
Definition: coUifPara.h:24
int Typeinfo
Definition: coUifPara.h:28