Salome HOME
new presentation using DTM
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_UpdateFlags.h
1 // Copyright (C) 2014-2015  EDF-R&D
2 // This library is free software; you can redistribute it and/or
3 // modify it under the terms of the GNU Lesser General Public
4 // License as published by the Free Software Foundation; either
5 // version 2.1 of the License, or (at your option) any later version.
6 //
7 // This library is distributed in the hope that it will be useful,
8 // but WITHOUT ANY WARRANTY; without even the implied warranty of
9 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10 // Lesser General Public License for more details.
11 //
12 // You should have received a copy of the GNU Lesser General Public
13 // License along with this library; if not, write to the Free Software
14 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
15 //
16 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
17 //
18
19 #ifndef HYDROGUI_UPDATEFLAGS_H
20 #define HYDROGUI_UPDATEFLAGS_H
21
22 #include <LightApp_UpdateFlags.h>
23
24 /**
25  * \enum HYDRO_UpdateFlags
26  * Enumeration for update flags. First byte is reserved for LightApp_Module.
27  * Modules derived from this model must use other 3 bytes to define their
28  * own update flags.
29  */
30 typedef enum
31 {
32   UF_Base          = UF_Forced | UF_Model | UF_Viewer | UF_ObjBrowser | UF_Controls,
33   
34   UF_GV_Init       = 0x00000020, //!< initial update (used with UF_Viewer)
35   UF_GV_Forced     = 0x00000040, //!< to force recomputing all presentations (used with UF_Viewer)
36   
37   UF_OCCViewer     = 0x00000080, //!< OCC viewer
38   UF_OCC_Init      = 0x00000100, //!< initial update (used with UF_OCCViewer)
39   UF_OCC_Forced    = 0x00000200, //!< to force recomputing all presentations (used with UF_OCCViewer)
40   
41   UF_VTKViewer     = 0x00000800, //!< VTK viewer
42   UF_VTK_Init      = 0x00001000, //!< initial update (used with UF_VTKViewer)
43   UF_VTK_Forced    = 0x00002000, //!< to force recomputing all presentations (used with UF_VTKViewer)
44   
45   UF_FitAll        = 0x00000400, //!< to do fit all (used with UF_Viewer or UF_OCCViewer)
46
47   UF_All           = UF_Base | UF_GV_Init | UF_GV_Forced | UF_OCCViewer | UF_OCC_Init | UF_OCC_Forced | 
48                       UF_VTKViewer | UF_VTK_Init | UF_VTK_Forced//!< all update flags
49 } HYDRO_UpdateFlags;
50
51 #endif