COVISE Core
coGRObjSetAppearanceMsg.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)2012 VISENSO ++
11// ++ coGRObjSetAppearanceMsg - sets the color of a SceneObject ++
12// ++ ++
13// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
14
15#ifndef COGROBJSETAPPEARANCEMSG_H
16#define COGROBJSETAPPEARANCEMSG_H
17
18#include "coGRObjMsg.h"
19#include <util/coExport.h>
20
21namespace grmsg
22{
23
25{
26public:
27 // construct msg to send
28 coGRObjSetAppearanceMsg(const char *obj_name, const char *scopeName, float r, float g, float b, float a);
29
30 // reconstruct from received msg
31 coGRObjSetAppearanceMsg(const char *msg);
33
34 const char *getScopeName();
35 float getR();
36 float getG();
37 float getB();
38 float getA();
39
40private:
42 float r_, g_, b_, a_;
43};
44}
45#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
GLboolean GLboolean GLboolean GLboolean a
Definition: khronos-glext.h:6895
Definition: coGRActivatedViewpointMsg.h:23
Definition: coGRObjMsg.h:26
Definition: coGRObjSetAppearanceMsg.h:25
char * scopeName_
Definition: coGRObjSetAppearanceMsg.h:41
float a_
Definition: coGRObjSetAppearanceMsg.h:42