COVISE Core
coGRObjMoveInterMsg.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 COGROBJMOVEINTERMSG_H
17#define COGROBJMOVEINTERMSG_H
18
19#include "coGRObjMsg.h"
20#include <util/coExport.h>
21
22namespace grmsg
23{
24
26{
27public:
28 // construct msg to send
29 coGRObjMoveInterMsg(Mtype type, const char *obj_name, const char *interName, float x, float y, float z);
30
31 // reconstruct from received msg
32 coGRObjMoveInterMsg(const char *msg);
33
34 // destructor
36
37 // specific functions
38 const char *getInteractorName()
39 {
40 return interactorName_;
41 };
42
43 // get position or orientation
44 float getX()
45 {
46 return x_;
47 };
48 float getY()
49 {
50 return y_;
51 };
52 float getZ()
53 {
54 return z_;
55 };
56
57private:
58 float x_, y_, z_;
60};
61}
62#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
GLenum type
Definition: khronos-glext.h:6279
GLint GLint GLint GLint GLint x
Definition: khronos-glext.h:6346
Definition: coGRActivatedViewpointMsg.h:23
Mtype
id to specify the type of the message
Definition: coGRMsg.h:42
Definition: coGRObjMoveInterMsg.h:26
float getX()
Definition: coGRObjMoveInterMsg.h:44
float x_
Definition: coGRObjMoveInterMsg.h:55
float getY()
Definition: coGRObjMoveInterMsg.h:48
float getZ()
Definition: coGRObjMoveInterMsg.h:52
char * interactorName_
Definition: coGRObjMoveInterMsg.h:59
const char * getInteractorName()
Definition: coGRObjMoveInterMsg.h:38
Definition: coGRObjMsg.h:26