]> SALOME platform Git repositories - modules/shaper.git/blob - src/XGUI/XGUI_Constants.h
Salome HOME
Management of View background added
[modules/shaper.git] / src / XGUI / XGUI_Constants.h
1
2 #ifndef XGUI_Constants_H
3 #define XGUI_Constants_H
4
5 #include <QList>
6
7 typedef QList<int>    QIntList;       //!< list of int values
8 typedef QList<short>  QShortList;     //!< list of short int values
9 typedef QList<double> QDoubleList;    //!< list of double values
10
11
12 namespace XGUI
13 {
14
15 enum GradientType { 
16     NoGradient = -1,
17     HorizontalGradient, VerticalGradient,
18     Diagonal1Gradient,  Diagonal2Gradient,
19     Corner1Gradient,    Corner2Gradient,
20     Corner3Gradient,    Corner4Gradient,
21     LastGradient = Corner4Gradient
22 };
23
24 enum RotationPointType{ GRAVITY, SELECTED };
25
26 enum SketchingType { NoSketching, Rect, Polygon };
27
28 enum HotOperation { PAN, ZOOM, ROTATE, FIT_AREA };
29
30 enum InteractionStyle { STANDARD, KEY_FREE };
31
32 enum Mode2dType { No2dMode, XYPlane, XZPlane, YZPlane};
33
34 enum BackgroundMode { 
35     NoBackground,              // no (invalid) background data
36     ColorBackground,           // single color
37     SimpleGradientBackground,  // simple two-color gradient
38     CustomGradientBackground   // custom (complex) gradient
39 };
40
41   //! Texture mode
42 enum TextureMode { 
43     CenterTexture,             // center texture
44     TileTexture,               // tile texture
45     StretchTexture,            // stretch texture
46 };
47
48
49 };
50
51 #endif