COVISE Core
coFloatSliderParam.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_SLIDER_PARAM_H_
9#define _CO_FLOAT_SLIDER_PARAM_H_
10
11// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
12// + +
13// + coFloatSliderParam 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
46 float d_min, d_max, d_value;
47
48 // Parameter type name
49 static const char *s_type;
50
51public:
53 coFloatSliderParam(const char *name, const char *desc);
54
56 virtual ~coFloatSliderParam();
57
59 virtual int isOfType(coUifPara::Typeinfo type);
60
62 static coUifPara::Typeinfo getType();
63
65 virtual int paramChange();
66
68 virtual void initialize();
69
71 virtual void print(ostream &str) const;
72
74 int setValue(float min, float max, float value);
75 int setMin(float min);
76 int setMax(float max);
77 int setValue(float value);
78
80 void getValue(float &min, float &max, float &value) const;
81 float getMin() const;
82 float getMax() const;
83 float getValue() const;
84
86 virtual const char *getTypeString() const;
87
89 virtual const char *getValString() const;
90
92 virtual void setValString(const char *str);
93};
94}
95#endif
#define APIEXPORT
Definition: coExport.h:275
GLsizei const GLfloat * value
Definition: khronos-glext.h:6760
GLuint const GLchar * name
Definition: khronos-glext.h:6722
GLenum type
Definition: khronos-glext.h:6279
int min(int a, int b)
Definition: cutil_math.h:60
int max(int a, int b)
Definition: cutil_math.h:55
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
float slider parameter
Definition: coFloatSliderParam.h:30
coFloatSliderParam()
Default constructor: NOT IMPLEMENTED.
coFloatSliderParam(const coFloatSliderParam &)
Copy-Constructor: NOT IMPLEMENTED.
coFloatSliderParam & operator=(const coFloatSliderParam &)
Assignment operator: NOT IMPLEMENTED.
static const char * s_type
Definition: coFloatSliderParam.h:49
static coUifPara::Typeinfo s_paraType
my type info
Definition: coFloatSliderParam.h:43
float d_max
Definition: coFloatSliderParam.h:46
Definition: coUifPara.h:24
int Typeinfo
Definition: coUifPara.h:28