COVISE Core
WSIntVectorParameter.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 WSINTVECTORPARAMETER_H
9#define WSINTVECTORPARAMETER_H
10
11#include "WSExport.h"
12#include "WSParameter.h"
13
14#include <QList>
15#include <QVariant>
16
17namespace covise
18{
19
21{
22 Q_OBJECT
23
24 Q_PROPERTY(QList<QVariant> value READ getVariantValue WRITE setVariantValue)
25
26public:
27 WSIntVectorParameter(const QString &name, const QString &description, const QVector<int> value = QVector<int>());
28
29 virtual ~WSIntVectorParameter();
30
31public slots:
37 bool setValue(const QVector<int> &inValue);
38
43 QVector<int> getValue() const;
44
45 virtual QString toString() const;
46
47 virtual int getComponentCount() const;
48
49public:
50 virtual WSParameter *clone() const;
51
52 virtual const covise::covise__Parameter *getSerialisable();
53
54protected:
55 virtual bool setValueFromSerialisable(const covise::covise__Parameter *serialisable);
56
57private slots:
58 void setVariantValue(const QList<QVariant> &inValue);
59 QList<QVariant> getVariantValue() const;
60
61private:
62 covise::covise__IntVectorParameter parameter;
65};
66}
67#endif // WSINTVECTORPARAMETER_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: WSIntVectorParameter.h:21
covise::covise__IntVectorParameter parameter
Definition: WSIntVectorParameter.h:62
static WSIntVectorParameter * prototype
Definition: WSIntVectorParameter.h:64
Definition: WSParameter.h:28