COVISE Core
coGRObjAttachedClipPlaneMsg.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)2006 VISENSO ++
11// ++ coGRObjAttachedClipPlaneMsg - stores ClipPlane for an object ++
12// ++ ++
13// ++ ++
14// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
15
16#ifndef COGROBJATTACHEDCLIPPLANEMSG_H
17#define COGROBJATTACHEDCLIPPLANEMSG_H
18
19#include "coGRObjMsg.h"
20#include <util/coExport.h>
21
22namespace grmsg
23{
24
26{
27public:
28 // construct msg to send
29 coGRObjAttachedClipPlaneMsg(Mtype type, const char *obj_name, int index, float offset, bool flip);
30
31 // reconstruct from received msg
32 coGRObjAttachedClipPlaneMsg(const char *msg);
33
34 // specific functions
36 {
37 return index_;
38 };
39 float getOffset()
40 {
41 return offset_;
42 };
43 bool isFlipped()
44 {
45 return flip_;
46 };
47
48private:
49 int index_;
50 float offset_;
51 bool flip_;
52};
53}
54#endif
#define GRMSGEXPORT
Definition: coExport.h:349
GLuint index
Definition: khronos-glext.h:6722
GLintptr offset
Definition: khronos-glext.h:6611
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: coGRObjAttachedClipPlaneMsg.h:26
float getOffset()
Definition: coGRObjAttachedClipPlaneMsg.h:39
bool isFlipped()
Definition: coGRObjAttachedClipPlaneMsg.h:43
float offset_
Definition: coGRObjAttachedClipPlaneMsg.h:50
int getClipPlaneIndex()
Definition: coGRObjAttachedClipPlaneMsg.h:35
int index_
Definition: coGRObjAttachedClipPlaneMsg.h:46
bool flip_
Definition: coGRObjAttachedClipPlaneMsg.h:51
Definition: coGRObjMsg.h:26