COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
coGRObjSetConnectionMsg.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 //-*-Mode: C++;-*-
9 // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
10 // ++ (C)2007 VISENSO ++
11 // ++ coGRObjVisMsg - stores visibility information for an object ++
12 // ++ visibility type can be: geometry, interactor etc. ++
13 // ++ ++
14 // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
15 
16 #ifndef COGROBJSETCONNECTIONMSG_H
17 #define COGROBJSETCONNECTIONMSG_H
18 
19 #include "coGRObjMsg.h"
20 #include <util/coExport.h>
21 
22 namespace grmsg
23 {
24 
26 {
27 public:
28  // construct msg to send
29  coGRObjSetConnectionMsg(coGRMsg::Mtype type, const char *obj_name, const char *connPoint1, const char *connPoint2, int connected, int enabled, const char *obj_name2);
30  coGRObjSetConnectionMsg(const char *obj_name, const char *connPoint1, const char *connPoint2, int connected, int enabled, const char *obj_name2);
31 
32  // reconstruct from received msg
33  coGRObjSetConnectionMsg(const char *msg);
34 
36 
37  const char *getConnPoint1()
38  {
39  return connPoint1_;
40  };
41  const char *getConnPoint2()
42  {
43  return connPoint2_;
44  };
46  {
47  return connected_;
48  };
49  int isEnabled()
50  {
51  return enabled_;
52  }
53  const char *getSecondObjName()
54  {
55  return obj_name2_;
56  };
57 
58 private:
59  void initClass(const char *connPoint1, const char *connPoint2, int connected, int enabled, const char *obj_name2);
60 
61  char *connPoint1_;
62  char *connPoint2_;
63  char *obj_name2_;
65  int enabled_;
66 };
67 }
68 #endif
Definition: coGRObjSetConnectionMsg.h:25
Mtype
id to specify the type of the message
Definition: coGRMsg.h:42
#define GRMSGEXPORT
Definition: coExport.h:319
const char * getSecondObjName()
Definition: coGRObjSetConnectionMsg.h:53
char * connPoint1_
Definition: coGRObjSetConnectionMsg.h:61
const char * getConnPoint1()
Definition: coGRObjSetConnectionMsg.h:37
GLenum type
Definition: khronos-glext.h:6279
char * obj_name2_
Definition: coGRObjSetConnectionMsg.h:63
const char * getConnPoint2()
Definition: coGRObjSetConnectionMsg.h:41
char * connPoint2_
Definition: coGRObjSetConnectionMsg.h:62
int enabled_
Definition: coGRObjSetConnectionMsg.h:65
int connected_
Definition: coGRObjSetConnectionMsg.h:64
Definition: coGRObjMsg.h:25
int isConnected()
Definition: coGRObjSetConnectionMsg.h:45
GLenum GLenum GLsizei const GLuint GLboolean enabled
Definition: khronos-glext.h:8468
int isEnabled()
Definition: coGRObjSetConnectionMsg.h:49