COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
coGRObjShaderObjMsg.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 COGROBJSHADEROBJMSG_H
17 #define COGROBJSHADEROBJMSG_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
30  const char *obj_name,
31  const char *shader_name,
32  const char *paraFloat,
33  const char *paraVec2,
34  const char *paraVec3,
35  const char *paraVec4,
36  const char *paraInt,
37  const char *paraBool,
38  const char *paraMat2,
39  const char *paraMat3,
40  const char *paraMat4);
41 
42  // reconstruct from received msg
43  coGRObjShaderObjMsg(const char *msg);
44 
45  virtual ~coGRObjShaderObjMsg();
46 
47  const char *getShaderName()
48  {
49  return shaderName_;
50  };
51  const char *getParaFloatName()
52  {
53  return paraFloat_;
54  };
55  const char *getParaVec2Name()
56  {
57  return paraVec2_;
58  };
59  const char *getParaVec3Name()
60  {
61  return paraVec3_;
62  };
63  const char *getParaVec4Name()
64  {
65  return paraVec4_;
66  };
67  const char *getParaIntName()
68  {
69  return paraInt_;
70  };
71  const char *getParaBoolName()
72  {
73  return paraBool_;
74  };
75  const char *getParaMat2Name()
76  {
77  return paraMat2_;
78  };
79  const char *getParaMat3Name()
80  {
81  return paraMat3_;
82  };
83  const char *getParaMat4Name()
84  {
85  return paraMat4_;
86  };
87 
88 private:
89  char *shaderName_;
90  char *paraFloat_;
91  char *paraVec2_;
92  char *paraVec3_;
93  char *paraVec4_;
94  char *paraInt_;
95  char *paraBool_;
96  char *paraMat2_;
97  char *paraMat3_;
98  char *paraMat4_;
99 };
100 }
101 
102 #endif
char * paraInt_
Definition: coGRObjShaderObjMsg.h:94
char * paraFloat_
Definition: coGRObjShaderObjMsg.h:90
const char * getParaMat2Name()
Definition: coGRObjShaderObjMsg.h:75
const char * getParaMat4Name()
Definition: coGRObjShaderObjMsg.h:83
Mtype
id to specify the type of the message
Definition: coGRMsg.h:42
#define GRMSGEXPORT
Definition: coExport.h:319
char * paraMat4_
Definition: coGRObjShaderObjMsg.h:98
const char * getParaFloatName()
Definition: coGRObjShaderObjMsg.h:51
const char * getShaderName()
Definition: coGRObjShaderObjMsg.h:47
const char * getParaVec4Name()
Definition: coGRObjShaderObjMsg.h:63
const char * getParaBoolName()
Definition: coGRObjShaderObjMsg.h:71
GLenum type
Definition: khronos-glext.h:6279
char * paraVec2_
Definition: coGRObjShaderObjMsg.h:91
char * paraMat3_
Definition: coGRObjShaderObjMsg.h:97
const char * getParaVec3Name()
Definition: coGRObjShaderObjMsg.h:59
const char * getParaVec2Name()
Definition: coGRObjShaderObjMsg.h:55
const char * getParaIntName()
Definition: coGRObjShaderObjMsg.h:67
Definition: coGRObjShaderObjMsg.h:25
char * paraMat2_
Definition: coGRObjShaderObjMsg.h:96
Definition: coGRObjMsg.h:25
char * paraVec3_
Definition: coGRObjShaderObjMsg.h:92
char * paraVec4_
Definition: coGRObjShaderObjMsg.h:93
char * paraBool_
Definition: coGRObjShaderObjMsg.h:95
const char * getParaMat3Name()
Definition: coGRObjShaderObjMsg.h:79