Salome HOME
PAL8238
[modules/smesh.git] / src / StdMeshersGUI / StdMeshersGUI_Parameters.h
1 //  SMESH StdMeshersGUI : GUI for standard meshers
2 //
3 //  Copyright (C) 2003  CEA
4 // 
5 //  This library is free software; you can redistribute it and/or 
6 //  modify it under the terms of the GNU Lesser General Public 
7 //  License as published by the Free Software Foundation; either 
8 //  version 2.1 of the License. 
9 // 
10 //  This library is distributed in the hope that it will be useful, 
11 //  but WITHOUT ANY WARRANTY; without even the implied warranty of 
12 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
13 //  Lesser General Public License for more details. 
14 // 
15 //  You should have received a copy of the GNU Lesser General Public 
16 //  License along with this library; if not, write to the Free Software 
17 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
18 // 
19 //  See http://www.salome-platform.org or email : webmaster.salome@opencascade.org
20 //
21 //
22 //
23 //  File   : StdMeshersGUI_Parameters.h
24 //  Module : SMESH
25 //  $Header$
26
27 #ifndef STDMESHERSGUI_PARAMETERS_H
28 #define STDMESHERSGUI_PARAMETERS_H
29
30 #include <SALOMEconfig.h>
31 #include CORBA_SERVER_HEADER(SMESH_BasicHypothesis)
32 #include CORBA_SERVER_HEADER(SMESH_Mesh)
33
34 #include "SMESHGUI_aParameter.h"
35
36 #include <list>
37 #include <vector>
38
39 class StdMeshersGUI_Parameters
40 {
41  public:
42   static bool HasParameters (const QString& hypType);
43   
44   static void GetParameters (const QString&                      hypType,
45                              std::list<SMESHGUI_aParameterPtr> & params );
46   
47   static void GetParameters (SMESH::SMESH_Hypothesis_ptr         hyp,
48                              std::list<SMESHGUI_aParameterPtr> & params );
49   static void GetParameters (SMESH::SMESH_Hypothesis_ptr         hyp,
50                              std::list<SMESHGUI_aParameterPtr> & paramList,
51                              QString&                            params);
52   
53   static bool SetParameters(SMESH::SMESH_Hypothesis_ptr               hyp,
54                             const std::list<SMESHGUI_aParameterPtr> & params );
55
56   static void SetInitValue(SMESHGUI_aParameterPtr param,
57                            int                    initValue);
58   static void SetInitValue(SMESHGUI_aParameterPtr param,
59                            double                 initValue);
60   static void SetInitValue(SMESHGUI_aParameterPtr param,
61                            const char*            initValue);
62   static void SetInitValue(SMESHGUI_aParameterPtr param,
63                            SMESH::double_array&   initValue);
64 };
65 #endif