Salome HOME
b8f2c910ce4ecfe45b199dddb54faad4a0141837
[plugins/ghs3dprlplugin.git] / src / GHS3DPRLPlugin / GHS3DPRLPlugin_Hypothesis_i.hxx
1 // Copyright (C) 2007-2023  CEA, EDF
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                                ::SMESH_Gen*            theGenImpl);
48   // Destructor
49   virtual ~GHS3DPRLPlugin_Hypothesis_i();
50
51   // Methods for setting and getting parameters values
52   void SetMEDName(const char* theVal);
53   char * GetMEDName();
54
55   void SetNbPart(CORBA::Long theVal);
56   CORBA::Long GetNbPart();
57
58   void SetKeepFiles(CORBA::Boolean theVal);
59   CORBA::Boolean GetKeepFiles();
60
61   void SetBackground(CORBA::Boolean theVal);
62   CORBA::Boolean GetBackground();
63
64   void SetMultithread(CORBA::Boolean theVal);
65   CORBA::Boolean GetMultithread();
66
67 //  void SetToMergeSubdomains(CORBA::Boolean theVal);
68 //  CORBA::Boolean GetToMergeSubdomains();
69
70   void SetGradation(CORBA::Float theVal);
71   CORBA::Float GetGradation();
72
73   void SetMinSize(CORBA::Float theVal);
74   CORBA::Float GetMinSize();
75
76   void SetMaxSize(CORBA::Float theVal);
77   CORBA::Float GetMaxSize();
78
79   void SetAdvancedOption(const char* theOptAndVals );
80   char* GetAdvancedOption();
81
82   // Get implementation
83   ::GHS3DPRLPlugin_Hypothesis* GetImpl();
84
85   // Verify whether hypothesis supports given entity type
86   CORBA::Boolean IsDimSupported( SMESH::Dimension type );
87
88   // Methods for copying mesh definition to other geometry
89   virtual bool getObjectsDependOn( std::vector< std::string > & /*entryArray*/,
90                                    std::vector< int >         & /*subIDArray*/ ) const { return false; }
91   virtual bool setObjectsDependOn( std::vector< std::string > & /*entryArray*/,
92                                    std::vector< int >         & /*subIDArray*/ ) { return true; }
93 };
94
95 #endif