COVISE Core
coGRObjColorObjMsg.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 COGROBJCOLOROBJMSG_H
17#define COGROBJCOLOROBJMSG_H
18
19#include "coGRObjMsg.h"
20#include <util/coExport.h>
21
22namespace grmsg
23{
24
26{
27public:
28 // construct msg to send
29 coGRObjColorObjMsg(Mtype type, const char *obj_name, int r, int g, int b);
30
31 // reconstruct from received msg
32 coGRObjColorObjMsg(const char *msg);
33
34 // get Color
35 int getR()
36 {
37 return r_;
38 };
39 int getG()
40 {
41 return g_;
42 };
43 int getB()
44 {
45 return b_;
46 };
47
48private:
49 int r_, g_, b_;
50};
51}
52#endif
#define GRMSGEXPORT
Definition: coExport.h:349
GLboolean GLboolean GLboolean b
Definition: khronos-glext.h:6895
GLboolean GLboolean g
Definition: khronos-glext.h:6895
GLdouble GLdouble GLdouble r
Definition: khronos-glext.h:6457
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: coGRObjColorObjMsg.h:26
int getR()
Definition: coGRObjColorObjMsg.h:35
int b_
Definition: coGRObjColorObjMsg.h:49
int getB()
Definition: coGRObjColorObjMsg.h:43
int getG()
Definition: coGRObjColorObjMsg.h:39
Definition: coGRObjMsg.h:26