COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
WSFloatVectorParameter.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 WSFLOATVECTORPARAMETER_H
9 #define WSFLOATVECTORPARAMETER_H
10 
11 #include "WSExport.h"
12 #include "WSParameter.h"
13 
14 #include <QList>
15 #include <QVariant>
16 
17 namespace covise
18 {
19 
21 {
22  Q_OBJECT
23 
24  Q_PROPERTY(QList<QVariant> value READ getVariantValue WRITE setVariantValue)
25 
26 public:
27  WSFloatVectorParameter(const QString &name, const QString &description, const QVector<float> value = QVector<float>());
28 
29  virtual ~WSFloatVectorParameter();
30 
31 public slots:
37  bool setValue(const QVector<float> &inValue);
38 
43  QVector<float> getValue() const;
44 
45  virtual QString toString() const;
46 
47  virtual int getComponentCount() const;
48 
49 public:
50  virtual WSParameter *clone() const;
51 
52  virtual const covise::covise__Parameter *getSerialisable();
53 
54 protected:
55  virtual bool setValueFromSerialisable(const covise::covise__Parameter *serialisable);
56 
57 private slots:
58  void setVariantValue(const QList<QVariant> &inValue);
59  QList<QVariant> getVariantValue() const;
60 
61 private:
62  covise::covise__FloatVectorParameter parameter;
65 };
66 }
67 #endif // WSFLOATVECTORPARAMETER_H
GLuint const GLchar * name
Definition: khronos-glext.h:6722
#define WSLIBEXPORT
Definition: coExport.h:355
Definition: WSFloatVectorParameter.h:20
covise::covise__FloatVectorParameter parameter
Definition: WSFloatVectorParameter.h:62
Definition: WSParameter.h:27
GLsizei const GLfloat * value
Definition: khronos-glext.h:6760
static WSFloatVectorParameter * prototype
Definition: WSFloatVectorParameter.h:64