COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
coFloatVectorParam.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_FLOAT_VECTOR_PARAM_H_
9 #define _CO_FLOAT_VECTOR_PARAM_H_
10 
11 // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
12 // + +
13 // + coFloatVectorParam 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  coFloatVectorParam &operator=(const coFloatVectorParam &);
38 
41 
44 
46  int d_length;
47 
48  float *d_data;
49 
50  // Parameter type name
51  static const char *s_type;
52 
53 public:
55  coFloatVectorParam(const char *name, const char *desc, int length = 3);
56 
58  virtual ~coFloatVectorParam();
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, float data);
77 
79  int setValue(int size, const float *data);
80 
82  int setValue(float data0, float data1, float data2);
83 
85  float getValue(int pos) const;
86 
88  int getValue(float &data0, float &data1, float &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
static const char * s_type
Definition: coFloatVectorParam.h:51
Definition: coUifPara.h:23
GLuint const GLchar * name
Definition: khronos-glext.h:6722
GLsizeiptr size
Definition: khronos-glext.h:6610
#define APIEXPORT
Definition: coExport.h:251
int d_length
Port data fields.
Definition: coFloatVectorParam.h:46
GLenum type
Definition: khronos-glext.h:6279
Multiple float parameters.
Definition: coFloatVectorParam.h:29
static coUifPara::Typeinfo s_paraType
my type info
Definition: coFloatVectorParam.h:43
int Typeinfo
Definition: coUifPara.h:28
GLsizei GLsizei GLenum GLenum const GLvoid * data
Definition: khronos-glext.h:6354
float * d_data
Definition: coFloatVectorParam.h:48
GLenum GLuint GLenum GLsizei length
Definition: khronos-glext.h:6279