Salome HOME
Merge branch 'V9_2_2_BR'
[modules/med.git] / src / MEDCalc / gui / PresentationEvent.hxx
1 // Copyright (C) 2016-2019  CEA/DEN, EDF R&D
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19
20 #ifndef SRC_MEDCALC_GUI_PRESENTATIONEVENT_HXX_
21 #define SRC_MEDCALC_GUI_PRESENTATIONEVENT_HXX_
22
23 #include <string>
24
25 typedef struct {
26   enum EventType {
27     EVENT_VIEW_OBJECT_MESH_VIEW,
28     EVENT_VIEW_OBJECT_CONTOUR,
29     EVENT_VIEW_OBJECT_DEFLECTION_SHAPE,
30     EVENT_VIEW_OBJECT_POINT_SPRITE,
31     EVENT_VIEW_OBJECT_SCALAR_MAP,
32     EVENT_VIEW_OBJECT_SLICES,
33     EVENT_VIEW_OBJECT_VECTOR_FIELD,
34
35     EVENT_DELETE_PRESENTATION,
36
37     EVENT_CHANGE_COMPONENT,
38     EVENT_CHANGE_COLORMAP,
39     EVENT_CHANGE_TIME_RANGE,
40
41     EVENT_CHANGE_MESH_MODE,
42
43     EVENT_CHANGE_NB_CONTOUR,
44
45     EVENT_CHANGE_SLICE_ORIENTATION,
46     EVENT_CHANGE_NB_SLICES
47   };
48
49   EventType eventtype;
50   MEDCALC::FieldHandler * fieldHandler;
51   MEDCALC::MeshHandler * meshHandler;
52   int presentationId;
53   int anInteger;                // multi-purpose variable
54   //int anInteger2;             // multi-purpose variable
55   std::string aString;          // multi-purpose variable
56 } PresentationEvent;
57
58 #endif