COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
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 
25 namespace covise
26 {
27 
30 {
31 
32 private:
35 
37  coIntVectorParam &operator=(const coIntVectorParam &);
38 
41 
44 
46  int d_length;
47 
48  long *d_data;
49 
50  // Parameter type name
51  static const char *s_type;
52 
53 public:
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
Definition: coUifPara.h:23
static coUifPara::Typeinfo s_paraType
my type info
Definition: coIntVectorParam.h:43
int d_length
Port data fields.
Definition: coIntVectorParam.h:46
GLenum type
Definition: khronos-glext.h:6279
static const char * s_type
Definition: coIntVectorParam.h:51
Parameter for multiple integers.
Definition: coIntVectorParam.h:29
GLsizeiptr size
Definition: khronos-glext.h:6610
#define APIEXPORT
Definition: coExport.h:251
GLsizei GLsizei GLenum GLenum const GLvoid * data
Definition: khronos-glext.h:6354
long * d_data
Definition: coIntVectorParam.h:48
GLenum GLuint GLenum GLsizei length
Definition: khronos-glext.h:6279
int Typeinfo
Definition: coUifPara.h:28
GLuint const GLchar * name
Definition: khronos-glext.h:6722