COVISE Core
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
22namespace grmsg
23{
24
26{
27public:
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
54private:
55 float x_, y_, z_;
56 char *moveName_;
57};
58}
59
60#endif
#define GRMSGEXPORT
Definition: coExport.h:349
GLdouble GLdouble z
Definition: khronos-glext.h:6565
GLint GLint GLint GLint GLint GLint y
Definition: khronos-glext.h:6346
GLint GLint GLint GLint GLint x
Definition: khronos-glext.h:6346
Definition: coGRActivatedViewpointMsg.h:23
Definition: coGRObjMoveObjMsg.h:26
float x_
Definition: coGRObjMoveObjMsg.h:52
char * moveName_
Definition: coGRObjMoveObjMsg.h:56
float getX()
Definition: coGRObjMoveObjMsg.h:41
const char * getMoveName()
Definition: coGRObjMoveObjMsg.h:35
float getZ()
Definition: coGRObjMoveObjMsg.h:49
float getY()
Definition: coGRObjMoveObjMsg.h:45
Definition: coGRObjMsg.h:26