COVISE Core
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
14namespace covise
15{
16
18{
19
20 Q_OBJECT
21
22 Q_PROPERTY(float value READ getValue WRITE setValue)
23
24public:
25 WSFloatScalarParameter(const QString &name, const QString &description, float value = 0.0f);
26
28
29public slots:
35 bool setValue(float inValue);
36
41 float getValue() const;
42
43 virtual QString toString() const;
44
45public:
46 virtual WSParameter *clone() const;
47
48 virtual const covise::covise__Parameter *getSerialisable();
49
50protected:
51 virtual bool setValueFromSerialisable(const covise::covise__Parameter *serialisable);
52
53private:
54 covise::covise__FloatScalarParameter parameter;
57};
58}
59
60#endif // WSFLOATSCALARPARAMETER_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: WSFloatScalarParameter.h:18
covise::covise__FloatScalarParameter parameter
Definition: WSFloatScalarParameter.h:54
static WSFloatScalarParameter * prototype
Definition: WSFloatScalarParameter.h:56
Definition: WSParameter.h:28