COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
coGRObjMaterialObjMsg.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 COGROBJMATERIALOBJMSG_H
17 #define COGROBJMATERIALOBJMSG_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
29  coGRObjMaterialObjMsg(Mtype type, const char *obj_name, int ambient0, int ambient1, int ambient2, int diffuse0, int diffuse1, int diffuse2, int specular0, int specular1, int specular2, float shininess, float transparency);
30  // reconstruct from received msg
31  coGRObjMaterialObjMsg(const char *msg);
32 
33  // get Colors
34  int *getAmbient()
35  {
36  return _ambient;
37  };
38  int *getDiffuse()
39  {
40  return _diffuse;
41  };
42  int *getSpecular()
43  {
44  return _specular;
45  };
46  float getShininess()
47  {
48  return _shininess;
49  };
51  {
52  return _transparency;
53  };
54 
55 private:
56  int _ambient[3];
57  int _diffuse[3];
58  int _specular[3];
59  float _shininess;
61 };
62 }
63 
64 #endif
float getTransparency()
Definition: coGRObjMaterialObjMsg.h:50
float _shininess
Definition: coGRObjMaterialObjMsg.h:59
float getShininess()
Definition: coGRObjMaterialObjMsg.h:46
int * getDiffuse()
Definition: coGRObjMaterialObjMsg.h:38
Definition: coGRObjMsg.h:25
float _transparency
Definition: coGRObjMaterialObjMsg.h:60
#define GRMSGEXPORT
Definition: coExport.h:337
int * getAmbient()
Definition: coGRObjMaterialObjMsg.h:34
int * getSpecular()
Definition: coGRObjMaterialObjMsg.h:42
Definition: coGRObjMaterialObjMsg.h:25
Mtype
id to specify the type of the message
Definition: coGRMsg.h:42
GLenum type
Definition: khronos-glext.h:6279