X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDCalc%2FMEDCalcConstants.hxx;h=ec62a16bf68c559dbf087954524a3261d23e3851;hb=8c1b3cfd7e36be1eb411eb7d769da5a5e480b3f9;hp=2023db6d7986d89c7c3f48c0290308ba08ba6e37;hpb=8071d1057d840ce8a187cc025e36c8facd7b77ce;p=modules%2Fmed.git diff --git a/src/MEDCalc/MEDCalcConstants.hxx b/src/MEDCalc/MEDCalcConstants.hxx index 2023db6d7..ec62a16bf 100644 --- a/src/MEDCalc/MEDCalcConstants.hxx +++ b/src/MEDCalc/MEDCalcConstants.hxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2016 CEA/DEN, EDF R&D +// Copyright (C) 2007-2022 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -17,6 +17,8 @@ // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // +#ifndef SRC_MEDCALC_CMP_MEDCALCCONSTANTS_HXX_ + // This constant strings are used to specify an attribute name for // AttributeParameter attributes associated to a SObject #define IS_IN_WORKSPACE "isInWorkspace" @@ -26,8 +28,28 @@ #define FIELD_ID "fieldId" #define PRESENTATION_ID "presentationId" #define IS_PRESENTATION "isPresentation" +#define PRESENTATION_TYPE "presentationType" - -static const int NB_TYPE_OF_FIELDS = 4; -static const char* mapTypeOfFieldLabel[NB_TYPE_OF_FIELDS] = +const int NB_TYPE_OF_FIELDS = 4; +const char* const mapTypeOfFieldLabel[NB_TYPE_OF_FIELDS] = {"ON_CELLS", "ON_NODES", "ON_GAUSS_PT", "ON_GAUSS_NE" }; + +// IDs we use for actions we want to export in help info panel +namespace FIELDSOp { + enum { + OpAddDataSource = 2041, // Menu Add Data Source + // Simplified Visu ---------------------------------------------------------- + OpScalarMap = 2501, // Menu Scalar Map + OpContour = 2502, // Menu Contour + OpVectorFields = 2503, // Menu Vector fields + OpSlices = 2504, // Menu Slices + OpDeflectionShape = 2505, // Menu Deflection + OpPointSprite = 2506, // Menu PointSprite + OpPlot3D = 2507, // Menu Plot3D + OpStreamLines = 2508, // Menu StreamLines + OpCutSegment = 2509, // Menu CutSegment + // Interpolation + OpProcessingInterpolation = 2601, // Menu Processing interpolation + }; +} +#endif