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