COVISE Core
coIntVectorParam.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 _CO_INT_VECTOR_PARAM_H_
9#define _CO_INT_VECTOR_PARAM_H_
10
11// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
12// + +
13// + coIntVectorParam Parameter handling class +
14// + +
15// + Andreas Werner +
16// + (C) Computing Center University of Stuttgart +
17// + Allmandring 30a +
18// + 70550 Stuttgart +
19// + Date: 19.07.99 +
20// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
21
22#include <covise/covise.h>
23#include "coUifPara.h"
24
25namespace covise
26{
27
30{
31
32private:
35
38
41
44
47
48 long *d_data;
49
50 // Parameter type name
51 static const char *s_type;
52
53public:
55 coIntVectorParam(const char *name, const char *desc, int length = 3);
56
58 virtual ~coIntVectorParam();
59
61 virtual int isOfType(coUifPara::Typeinfo type);
62
64 static coUifPara::Typeinfo getType();
65
67 virtual int paramChange();
68
70 virtual void initialize();
71
73 virtual void print(ostream &str) const;
74
76 int setValue(int pos, long data);
77
79 int setValue(int size, const long *data);
80
82 int setValue(long data0, long data1, long data2);
83
85 long getValue(int pos) const;
86
88 int getValue(long &data0, long &data1, long &data2) const;
89
91 virtual const char *getTypeString() const;
92
94 virtual const char *getValString() const;
95
97 virtual void setValString(const char *str);
98};
99}
100#endif
#define APIEXPORT
Definition: coExport.h:275
GLsizeiptr size
Definition: khronos-glext.h:6610
GLuint const GLchar * name
Definition: khronos-glext.h:6722
GLenum GLuint GLenum GLsizei length
Definition: khronos-glext.h:6279
GLsizei GLsizei GLenum GLenum const GLvoid * data
Definition: khronos-glext.h:6354
GLenum type
Definition: khronos-glext.h:6279
list of all chemical elements
Definition: coConfig.h:27
std::enable_if< I==sizeof...(Tp), void >::type print(Stream &s, const std::tuple< Tp... > &t)
Definition: tokenbuffer_util.h:68
Parameter for multiple integers.
Definition: coIntVectorParam.h:30
static const char * s_type
Definition: coIntVectorParam.h:51
coIntVectorParam()
Default constructor: NOT IMPLEMENTED.
coIntVectorParam & operator=(const coIntVectorParam &)
Assignment operator: NOT IMPLEMENTED.
coIntVectorParam(const coIntVectorParam &)
Copy-Constructor: NOT IMPLEMENTED.
long * d_data
Definition: coIntVectorParam.h:48
int d_length
Port data fields.
Definition: coIntVectorParam.h:46
static coUifPara::Typeinfo s_paraType
my type info
Definition: coIntVectorParam.h:43
Definition: coUifPara.h:24
int Typeinfo
Definition: coUifPara.h:28