COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
coGRObjTransformAbstractMsg.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 // ++ coGRObjTransformAbstractMsg - abstract class used for all ++
12 // ++ transform-related messages ++
13 // ++ ++
14 // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
15 
16 #ifndef COGROBJTRANSFORMABSTRACTMSG_H
17 #define COGROBJTRANSFORMABSTRACTMSG_H
18 
19 #include "coGRObjMsg.h"
20 #include <util/coExport.h>
21 
22 namespace grmsg
23 {
24 
26 {
27 public:
28  // get Matrix
29  float getMatrix(int i, int j)
30  {
31  return mat_[i][j];
32  };
33 
34 protected:
35  // construct msg to send
36  coGRObjTransformAbstractMsg(coGRMsg::Mtype type, const char *obj_name, float mat00, float mat01, float mat02, float mat03, float mat10, float mat11, float mat12, float mat13, float mat20, float mat21, float mat22, float mat23, float mat30, float mat31, float mat32, float mat33);
37 
38  // reconstruct from received msg
39  coGRObjTransformAbstractMsg(const char *msg);
40 
41 private:
42  float mat_[4][4];
43 };
44 }
45 #endif
Mtype
id to specify the type of the message
Definition: coGRMsg.h:42
#define GRMSGEXPORT
Definition: coExport.h:319
Definition: coGRObjTransformAbstractMsg.h:25
float getMatrix(int i, int j)
Definition: coGRObjTransformAbstractMsg.h:29
GLenum type
Definition: khronos-glext.h:6279
Definition: coGRObjMsg.h:25