COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
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 
21 namespace grmsg
22 {
23 
25 {
26 public:
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 
40 private:
41  char *scopeName_;
42  float r_, g_, b_, a_;
43 };
44 }
45 #endif
Definition: coGRObjSetAppearanceMsg.h:24
GLboolean GLboolean GLboolean GLboolean a
Definition: khronos-glext.h:6895
Definition: coGRObjMsg.h:25
GLdouble GLdouble GLdouble r
Definition: khronos-glext.h:6457
float r_
Definition: coGRObjSetAppearanceMsg.h:42
#define GRMSGEXPORT
Definition: coExport.h:337
char * scopeName_
Definition: coGRObjSetAppearanceMsg.h:41
GLboolean GLboolean g
Definition: khronos-glext.h:6895
GLboolean GLboolean GLboolean b
Definition: khronos-glext.h:6895