COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
coGRObjBoundariesObjMsg.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 COGROBJBOUNDARIESOBJMSG_H
17 #define COGROBJBOUNDARIESOBJMSG_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  coGRObjBoundariesObjMsg(Mtype type, const char *obj_name, const char *boundariesName, float front, float back, float left, float right, float top, float bottom);
30 
31  // reconstruct from received msg
32  coGRObjBoundariesObjMsg(const char *msg);
33 
34  // specific functions
35  const char *getBoundariesName()
36  {
37  return boundariesName_;
38  };
39 
40  // get boundaries
41  float getFront()
42  {
43  return front_;
44  };
45  float getBack()
46  {
47  return back_;
48  };
49  float getLeft()
50  {
51  return left_;
52  };
53  float getRight()
54  {
55  return right_;
56  };
57  float getTop()
58  {
59  return top_;
60  };
61  float getBottom()
62  {
63  return bottom_;
64  };
65 
66 private:
67  float front_, back_, left_, right_, top_, bottom_;
68  const char *boundariesName_;
69 };
70 }
71 
72 #endif
Mtype
id to specify the type of the message
Definition: coGRMsg.h:42
float getFront()
Definition: coGRObjBoundariesObjMsg.h:41
#define GRMSGEXPORT
Definition: coExport.h:319
GLint left
Definition: khronos-glext.h:8444
GLdouble GLdouble GLdouble GLdouble top
Definition: khronos-glext.h:12128
const char * boundariesName_
Definition: coGRObjBoundariesObjMsg.h:68
GLenum type
Definition: khronos-glext.h:6279
float getBottom()
Definition: coGRObjBoundariesObjMsg.h:61
float getBack()
Definition: coGRObjBoundariesObjMsg.h:45
const char * getBoundariesName()
Definition: coGRObjBoundariesObjMsg.h:35
float getLeft()
Definition: coGRObjBoundariesObjMsg.h:49
Definition: coGRObjMsg.h:25
GLdouble GLdouble right
Definition: khronos-glext.h:12128
Definition: coGRObjBoundariesObjMsg.h:25
float getTop()
Definition: coGRObjBoundariesObjMsg.h:57
GLint GLint bottom
Definition: khronos-glext.h:8444
float getRight()
Definition: coGRObjBoundariesObjMsg.h:53