COVISE Core
coGRObjMovedMsg.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// ++ coGRObjTransformMsg - stores TransformationMatrix of Object ++
12// ++ ++
13// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14
15#ifndef COGROBJMOVEDMSG_H
16#define COGROBJMOVEDMSG_H
17
18#include "coGRObjMsg.h"
19#include <util/coExport.h>
20
21namespace grmsg
22{
23
25{
26public:
27 // construct msg to send
28 coGRObjMovedMsg(const char *obj_name, float transX, float transY, float transZ, float rotX, float rotY, float rotZ, float rotAngle);
29
30 // reconstruct from received msg
31 coGRObjMovedMsg(const char *msg);
32
33 // getter
34 float getTransX()
35 {
36 return transX_;
37 };
38 float getTransY()
39 {
40 return transY_;
41 };
42 float getTransZ()
43 {
44 return transZ_;
45 };
46 float getRotX()
47 {
48 return rotX_;
49 };
50 float getRotY()
51 {
52 return rotY_;
53 };
54 float getRotZ()
55 {
56 return rotZ_;
57 };
59 {
60 return rotAngle_;
61 };
62
63protected:
64 // construct msg to send (used by inherited classes to override type)
65 coGRObjMovedMsg(coGRMsg::Mtype type, const char *obj_name, float transX, float transY, float transZ, float rotX, float rotY, float rotZ, float rotAngle);
66
67private:
68 void initClass(float transX, float transY, float transZ, float rotX, float rotY, float rotZ, float rotAngle);
69
70 float transX_;
71 float transY_;
72 float transZ_;
73 float rotX_;
74 float rotY_;
75 float rotZ_;
76 float rotAngle_;
77};
78}
79#endif
#define GRMSGEXPORT
Definition: coExport.h:349
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: coGRObjMovedMsg.h:25
float transZ_
Definition: coGRObjMovedMsg.h:72
float getRotX()
Definition: coGRObjMovedMsg.h:46
float getTransZ()
Definition: coGRObjMovedMsg.h:42
float getRotZ()
Definition: coGRObjMovedMsg.h:54
float getRotAngle()
Definition: coGRObjMovedMsg.h:58
float getTransY()
Definition: coGRObjMovedMsg.h:38
float transX_
Definition: coGRObjMovedMsg.h:70
float rotAngle_
Definition: coGRObjMovedMsg.h:76
float rotX_
Definition: coGRObjMovedMsg.h:73
float rotZ_
Definition: coGRObjMovedMsg.h:75
float getRotY()
Definition: coGRObjMovedMsg.h:50
float transY_
Definition: coGRObjMovedMsg.h:71
float rotY_
Definition: coGRObjMovedMsg.h:74
float getTransX()
Definition: coGRObjMovedMsg.h:34
Definition: coGRObjMsg.h:26