COVISE Core
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
25namespace covise
26{
27
30{
31
32private:
35
38
41
44
47
48 float *d_data;
49
50 // Parameter type name
51 static const char *s_type;
52
53public:
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
#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
Multiple float parameters.
Definition: coFloatVectorParam.h:30
coFloatVectorParam(const coFloatVectorParam &)
Copy-Constructor: NOT IMPLEMENTED.
coFloatVectorParam()
Default constructor: NOT IMPLEMENTED.
static const char * s_type
Definition: coFloatVectorParam.h:51
static coUifPara::Typeinfo s_paraType
my type info
Definition: coFloatVectorParam.h:43
float * d_data
Definition: coFloatVectorParam.h:48
int d_length
Port data fields.
Definition: coFloatVectorParam.h:46
coFloatVectorParam & operator=(const coFloatVectorParam &)
Assignment operator: NOT IMPLEMENTED.
Definition: coUifPara.h:24
int Typeinfo
Definition: coUifPara.h:28