COVISE Core
coTimerParam.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_TIMER_PARAM_H_
9#define _CO_TIMER_PARAM_H_
10
11// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
12// + +
13// + coTimerParam 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 long d_start, d_delta, d_state;
47
48 // Parameter type name
49 static const char *s_type;
50
51public:
53 coTimerParam(const char *name, const char *desc);
54
56 virtual ~coTimerParam();
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(long start, long delta, long state);
75 int setStart(long start);
76 int setDelta(long delta);
77 int setState(long state);
78
80 void getValue(long &start, long &delta, long &state) const;
81 long getStart() const;
82 long getDelta() const;
83 long getState() const;
84
86 virtual void setImmediate(int isImmediate);
87 virtual void setActive(int isActive);
88 virtual void enable();
89 virtual void disable();
90 virtual void hide();
91 virtual void show();
92
94 virtual const char *getTypeString() const;
95
97 virtual const char *getValString() const;
98
100 virtual void setValString(const char *str);
101};
102}
103#endif
#define APIEXPORT
Definition: coExport.h:275
GLuint start
Definition: khronos-glext.h:6343
GLuint const GLchar * name
Definition: khronos-glext.h:6722
GLboolean enable
Definition: khronos-glext.h:12389
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
Integer slider parameter.
Definition: coTimerParam.h:30
long d_delta
Definition: coTimerParam.h:46
coTimerParam()
Default constructor: NOT IMPLEMENTED.
coTimerParam(const coTimerParam &)
Copy-Constructor: NOT IMPLEMENTED.
coTimerParam & operator=(const coTimerParam &)
Assignment operator: NOT IMPLEMENTED.
static coUifPara::Typeinfo s_paraType
my type info
Definition: coTimerParam.h:43
static const char * s_type
Definition: coTimerParam.h:49
Definition: coUifPara.h:24
int Typeinfo
Definition: coUifPara.h:28