COVISE Core
coHideParam.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// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
9// CLASS coHideParam
10//
11// Objects of this class hide a parameter, values are read from it
12// or from their own variables loaded from an attribute string
13// Examples: Transform
14//
15// Initial version: 2002-06-?? Sergio Leseduarte
16// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
17// (C) 2002 by VirCinity IT Consulting
18// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
19// Changes:
20
21#ifndef _CO_HIDE_PARAM_H_
22#define _CO_HIDE_PARAM_H_
23
24#include <covise/covise.h>
25#include "coUifPara.h"
26
32//template class APIEXPORT vector<float>;
33//template class APIEXPORT vector<int> ;
34
35namespace covise
36{
37
39{
40public:
50 void load(const char *values);
52 float getFValue();
54 int getIValue();
56 float getFValue(int);
58 int getIValue(int);
60 void getFValue(float &data0, float &data1, float &data2);
62 void reset();
63
64protected:
65private:
66 coUifPara *param_; // the hidden parameter
67 bool hidden_; // flag; if true, the parameter value is overridden
68 vector<float> fnumbers_; // here we keep overriding values
69 vector<int> inumbers_; // here we keep overriding values
70};
71}
72#endif
#define APIEXPORT
Definition: coExport.h:275
GLboolean reset
Definition: khronos-glext.h:6369
GLboolean GLenum GLenum GLvoid * values
Definition: khronos-glext.h:6369
GLfloat param
Definition: khronos-glext.h:6531
list of all chemical elements
Definition: coConfig.h:27
Definition: coHideParam.h:39
vector< int > inumbers_
Definition: coHideParam.h:69
coUifPara * param_
Definition: coHideParam.h:66
bool hidden_
Definition: coHideParam.h:67
vector< float > fnumbers_
Definition: coHideParam.h:68
Definition: coUifPara.h:24