COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
coInputPort.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_IN_PORT_H_
9 #define _CO_IN_PORT_H_
10 
11 // 20.09.99
12 #include <covise/covise.h>
13 #include "coUifPort.h"
14 
20 namespace covise
21 {
22 
23 class coDistributedObject;
24 class coOutputPort;
25 
28 {
29 
30 private:
32  coInputPort(const coInputPort &);
33 
35  coInputPort &operator=(const coInputPort &);
36 
38  coInputPort();
39 
42 
45 
47 
48  // whether the port is required
50 
51 public:
52  // create an input port
53  coInputPort(const char *name, const char *typelist, const char *desc);
54 
55  // set port required or not
56  void setRequired(int isRequired);
57 
59  virtual void initialize();
60 
62  virtual Kind kind() const;
63 
65  virtual ~coInputPort();
66 
68  virtual int preCompute();
69 
71  virtual int postCompute();
72 
74  const coDistributedObject *getCurrentObject() const;
75 
77  void setCurrentObject(const coDistributedObject *o);
78 
80  void print(ostream &) const;
81 
84  {
85  return objectChanged;
86  };
87 };
88 }
89 #endif
bool inputDataChanged()
return true whether the input data changed since last execute.
Definition: coInputPort.h:83
int d_required
Definition: coInputPort.h:49
Data input Port.
Definition: coInputPort.h:27
const coDistributedObject * d_inObj
Object at the input port.
Definition: coInputPort.h:41
char * oldObjectName
to check whether the Dataobject changed since last execute
Definition: coInputPort.h:44
bool objectChanged
Definition: coInputPort.h:46
#define APIEXPORT
Definition: coExport.h:251
Definition: coUifPort.h:32
Definition: coDistributedObject.h:294
Kind
enum Kind: SWITCH, PARAM, INPORT, OUTPORT
Definition: coUifElem.h:25
GLuint const GLchar * name
Definition: khronos-glext.h:6722