COVISE Core
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
22namespace grmsg
23{
24
26{
27public:
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
35 {
36 return _ambient;
37 };
39 {
40 return _diffuse;
41 };
43 {
44 return _specular;
45 };
47 {
48 return _shininess;
49 };
51 {
52 return _transparency;
53 };
54
55private:
56 int _ambient[3];
57 int _diffuse[3];
58 int _specular[3];
61};
62}
63
64#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: coGRObjMaterialObjMsg.h:26
float getTransparency()
Definition: coGRObjMaterialObjMsg.h:50
float _transparency
Definition: coGRObjMaterialObjMsg.h:60
int * getSpecular()
Definition: coGRObjMaterialObjMsg.h:42
int * getAmbient()
Definition: coGRObjMaterialObjMsg.h:34
int * getDiffuse()
Definition: coGRObjMaterialObjMsg.h:38
float _shininess
Definition: coGRObjMaterialObjMsg.h:59
float getShininess()
Definition: coGRObjMaterialObjMsg.h:46
Definition: coGRObjMsg.h:26