Salome HOME
5b8c180d3239bc5fbb24bcfbf9926e5366e6ec45
[plugins/ghs3dprlplugin.git] / src / GHS3DPRLPlugin / GHS3DPRLPlugin_Hypothesis_i.hxx
1 // Copyright (C) 2007-2015  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 // ---
21 // File   : GHS3DPRLPlugin_Hypothesis_i.hxx
22 // Author : Christian VAN WAMBEKE (CEA) (from Hexotic plugin Lioka RAZAFINDRAZAKA)
23 // ---
24 //
25 #ifndef _GHS3DPRLPlugin_Hypothesis_i_HXX_
26 #define _GHS3DPRLPlugin_Hypothesis_i_HXX_
27
28 #include "GHS3DPRLPlugin_Defs.hxx"
29
30 #include <SALOMEconfig.h>
31 #include CORBA_SERVER_HEADER(GHS3DPRLPlugin_Algorithm)
32
33 #include "SMESH_Hypothesis_i.hxx"
34 #include "GHS3DPRLPlugin_Hypothesis.hxx"
35
36 class SMESH_Gen;
37
38 // GHS3DPRLPlugin parameters hypothesis
39
40 class GHS3DPRLPLUGIN_EXPORT GHS3DPRLPlugin_Hypothesis_i:
41   public virtual POA_GHS3DPRLPlugin::GHS3DPRLPlugin_Hypothesis,
42   public virtual SMESH_Hypothesis_i
43 {
44  public:
45   // Constructor
46   GHS3DPRLPlugin_Hypothesis_i (PortableServer::POA_ptr thePOA,
47                                int                     theStudyId,
48                                ::SMESH_Gen*            theGenImpl);
49   // Destructor
50   virtual ~GHS3DPRLPlugin_Hypothesis_i();
51
52   // Methods for setting and getting parameters values
53   void SetMEDName(const char* theVal);
54   char * GetMEDName();
55
56   void SetNbPart(CORBA::Long theVal);
57   CORBA::Long GetNbPart();
58
59   void SetKeepFiles(CORBA::Boolean theVal);
60   CORBA::Boolean GetKeepFiles();
61
62   void SetBackground(CORBA::Boolean theVal);
63   CORBA::Boolean GetBackground();
64
65   void SetToMergeSubdomains(CORBA::Boolean theVal);
66   CORBA::Boolean GetToMergeSubdomains();
67
68   void SetToTagSubdomains(CORBA::Boolean theVal);
69   CORBA::Boolean GetToTagSubdomains();
70
71   void SetToOutputInterfaces(CORBA::Boolean theVal);
72   CORBA::Boolean GetToOutputInterfaces();
73
74   void SetToDiscardSubdomains(CORBA::Boolean theVal);
75   CORBA::Boolean GetToDiscardSubdomains();
76
77   // Get implementation
78   ::GHS3DPRLPlugin_Hypothesis* GetImpl();
79
80   // Verify whether hypothesis supports given entity type
81   CORBA::Boolean IsDimSupported( SMESH::Dimension type );
82 };
83
84 #endif