COVISE Core
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
22namespace grmsg
23{
24
26{
27public:
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 };
50 {
51 return enabled_;
52 }
53 const char *getSecondObjName()
54 {
55 return obj_name2_;
56 };
57
58private:
59 void initClass(const char *connPoint1, const char *connPoint2, int connected, int enabled, const char *obj_name2);
60
66};
67}
68#endif
#define GRMSGEXPORT
Definition: coExport.h:349
GLenum GLenum GLsizei const GLuint GLboolean enabled
Definition: khronos-glext.h:8468
GLenum type
Definition: khronos-glext.h:6279
Definition: coGRActivatedViewpointMsg.h:23
Mtype
id to specify the type of the message
Definition: coGRMsg.h:42
Definition: coGRObjMsg.h:26
Definition: coGRObjSetConnectionMsg.h:26
int connected_
Definition: coGRObjSetConnectionMsg.h:64
int isConnected()
Definition: coGRObjSetConnectionMsg.h:45
char * connPoint2_
Definition: coGRObjSetConnectionMsg.h:62
int enabled_
Definition: coGRObjSetConnectionMsg.h:65
const char * getConnPoint2()
Definition: coGRObjSetConnectionMsg.h:41
int isEnabled()
Definition: coGRObjSetConnectionMsg.h:49
const char * getSecondObjName()
Definition: coGRObjSetConnectionMsg.h:53
char * connPoint1_
Definition: coGRObjSetConnectionMsg.h:61
char * obj_name2_
Definition: coGRObjSetConnectionMsg.h:63
const char * getConnPoint1()
Definition: coGRObjSetConnectionMsg.h:37