Salome HOME
0ef2cb4d1007c1af50ea424fab1b199e311d648b
[modules/gui.git] / src / GLViewer / GLViewer_Defs.h
1 // File:      GLViewer_Defs.h
2 // Created:   March, 2005
3 // Author:    OCC team
4 // Copyright (C) CEA 2005
5
6 #ifndef GLVIEWER_DEFS_H
7 #define GLVIEWER_DEFS_H
8
9 #include <qmap.h>
10 #include <qvaluelist.h>
11
12 class GLViewer_Object;
13 //Selection staus 
14 enum SelectionChangeStatus
15 {
16     SCS_Invalid,
17     SCS_Local,
18     SCS_Global
19 };
20
21 //! Fit Selection Rectangle
22 static const int      SELECTION_RECT_GAP = 50;
23
24 //! Display Text Format of Objects
25 enum DisplayTextFormat
26 {
27   DTF_TEXTURE   = 0,
28   DTF_BITMAP    = 1
29 };
30
31 enum SelectionStatus
32 {
33     SS_Invalid,
34     SS_LocalChanged,
35     SS_GlobalChanged,
36     SS_NoChanged
37 };
38
39 typedef QMap<GLViewer_Object*,int> ObjectMap;
40 typedef QValueList<GLViewer_Object*> ObjList;
41
42 #define SEGMENTS   32
43 #define PI         3.14159265359
44 #define STEP       ( float )( 2 * PI / SEGMENTS )
45
46 #endif// GLVIEWER_DEFS_H