COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
coGRObjMoveObjMsg.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 COGROBJMOVEOBJMSG_H
17 #define COGROBJMOVEOBJMSG_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  coGRObjMoveObjMsg(const char *obj_name, const char *moveName, float x, float y, float z);
30 
31  // reconstruct from received msg
32  coGRObjMoveObjMsg(const char *msg);
33 
34  // specific functions
35  const char *getMoveName()
36  {
37  return moveName_;
38  };
39 
40  // get position or orientation
41  float getX()
42  {
43  return x_;
44  };
45  float getY()
46  {
47  return y_;
48  };
49  float getZ()
50  {
51  return z_;
52  };
53 
54 private:
55  float x_, y_, z_;
56  char *moveName_;
57 };
58 }
59 
60 #endif
float getZ()
Definition: coGRObjMoveObjMsg.h:49
Definition: coGRObjMoveObjMsg.h:25
GLint GLint GLint GLint GLint GLint y
Definition: khronos-glext.h:6346
#define GRMSGEXPORT
Definition: coExport.h:319
char * moveName_
Definition: coGRObjMoveObjMsg.h:56
GLdouble GLdouble z
Definition: khronos-glext.h:6565
float getX()
Definition: coGRObjMoveObjMsg.h:41
GLint GLint GLint GLint GLint x
Definition: khronos-glext.h:6346
float getY()
Definition: coGRObjMoveObjMsg.h:45
const char * getMoveName()
Definition: coGRObjMoveObjMsg.h:35
Definition: coGRObjMsg.h:25