COVISE Core
coUifElem.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_UIF_ELEM_H_
9#define _CO_UIF_ELEM_H_
10
11// 15.09.99
12
17namespace covise
18{
19
21{
22
23public:
25 enum Kind
26 {
30 OUTPORT
31 };
32
34 virtual ~coUifElem();
35
37 virtual void hide();
38
40 virtual void show();
41
43 virtual Kind kind() const = 0;
44
46 virtual const char *getName() const = 0;
47
49 virtual void initialize() = 0;
50
52 virtual int switchable() const;
53
54 // --- all these are pre-defined empty ---
55
57 virtual int paramChange();
58
60 virtual int preCompute();
61
63 virtual int postCompute();
64};
65}
66#endif
#define APIEXPORT
Definition: coExport.h:275
list of all chemical elements
Definition: coConfig.h:27
Definition: coUifElem.h:21
Kind
enum Kind: SWITCH, PARAM, INPORT, OUTPORT
Definition: coUifElem.h:26
@ PARAM
Definition: coUifElem.h:28
@ SWITCH
Definition: coUifElem.h:27
@ INPORT
Definition: coUifElem.h:29
virtual Kind kind() const =0
return my type of element
virtual void initialize()=0
give all necessary info to Covise -> automatically called by coModule in init()
virtual const char * getName() const =0
get the name of this object