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