Salome HOME
Copyright update 2021
[modules/med.git] / src / MEDCalc / MEDCalcConstants.hxx
1 // Copyright (C) 2007-2021  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_CMP_MEDCALCCONSTANTS_HXX_
21
22 // This constant strings are used to specify an attribute name for
23 // AttributeParameter attributes associated to a SObject
24 #define IS_IN_WORKSPACE  "isInWorkspace"
25 #define SOURCE_ID        "sourceId"
26 #define MESH_ID          "meshId"
27 #define FIELD_SERIES_ID  "fieldSeriesId"
28 #define FIELD_ID         "fieldId"
29 #define PRESENTATION_ID  "presentationId"
30 #define IS_PRESENTATION  "isPresentation"
31 #define PRESENTATION_TYPE  "presentationType"
32
33 const int NB_TYPE_OF_FIELDS = 4;
34 const char* const mapTypeOfFieldLabel[NB_TYPE_OF_FIELDS] =
35   {"ON_CELLS", "ON_NODES", "ON_GAUSS_PT", "ON_GAUSS_NE" };
36
37 // IDs we use for actions we want to export in help info panel
38 namespace FIELDSOp {
39   enum {
40     OpAddDataSource             = 2041,   // Menu Add Data Source
41     // Simplified Visu  ----------------------------------------------------------
42     OpScalarMap                 = 2501,   // Menu Scalar Map
43     OpContour                   = 2502,   // Menu Contour
44     OpVectorFields              = 2503,   // Menu Vector fields
45     OpSlices                    = 2504,   // Menu Slices
46     OpDeflectionShape           = 2505,   // Menu Deflection
47     OpPointSprite               = 2506,   // Menu PointSprite
48     // Interpolation
49     OpProcessingInterpolation   = 2601,   // Menu Processing interpolation
50   };
51 }
52 #endif