COVISE Core
WSIntScalarParameter.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 WSINTSCALARPARAMETER_H
9#define WSINTSCALARPARAMETER_H
10
11#include "WSExport.h"
12#include "WSParameter.h"
13
14namespace covise
15{
16
18{
19 Q_OBJECT
20
21 Q_PROPERTY(int value READ getValue WRITE setValue)
22
23public:
24 WSIntScalarParameter(const QString &name, const QString &description, int value = 0);
25
26 virtual ~WSIntScalarParameter();
27
28public slots:
34 bool setValue(int inValue);
35
40 int getValue() const;
41
42 virtual QString toString() const;
43
44public:
45 virtual WSParameter *clone() const;
46
47 virtual const covise::covise__Parameter *getSerialisable();
48
49protected:
50 virtual bool setValueFromSerialisable(const covise::covise__Parameter *serialisable);
51
52private:
53 covise::covise__IntScalarParameter parameter;
56};
57}
58#endif // WSINTSCALARPARAMETER_H
#define WSLIBEXPORT
Definition: coExport.h:385
GLsizei const GLfloat * value
Definition: khronos-glext.h:6760
GLuint const GLchar * name
Definition: khronos-glext.h:6722
list of all chemical elements
Definition: coConfig.h:27
Definition: WSIntScalarParameter.h:18
static WSIntScalarParameter * prototype
Definition: WSIntScalarParameter.h:55
covise::covise__IntScalarParameter parameter
Definition: WSIntScalarParameter.h:53
Definition: WSParameter.h:28