COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
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 
14 namespace covise
15 {
16 
18 {
19  Q_OBJECT
20 
21  Q_PROPERTY(int value READ getValue WRITE setValue)
22 
23 public:
24  WSIntScalarParameter(const QString &name, const QString &description, int value = 0);
25 
26  virtual ~WSIntScalarParameter();
27 
28 public slots:
34  bool setValue(int inValue);
35 
40  int getValue() const;
41 
42  virtual QString toString() const;
43 
44 public:
45  virtual WSParameter *clone() const;
46 
47  virtual const covise::covise__Parameter *getSerialisable();
48 
49 protected:
50  virtual bool setValueFromSerialisable(const covise::covise__Parameter *serialisable);
51 
52 private:
53  covise::covise__IntScalarParameter parameter;
56 };
57 }
58 #endif // WSINTSCALARPARAMETER_H
GLuint const GLchar * name
Definition: khronos-glext.h:6722
#define WSLIBEXPORT
Definition: coExport.h:355
Definition: WSIntScalarParameter.h:17
covise::covise__IntScalarParameter parameter
Definition: WSIntScalarParameter.h:53
Definition: WSParameter.h:27
GLsizei const GLfloat * value
Definition: khronos-glext.h:6760
static WSIntScalarParameter * prototype
Definition: WSIntScalarParameter.h:55