1 // Copyright (C) 2007-2022 CEA/DEN, EDF R&D
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.
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.
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
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 // File : GHS3DPRLPlugin_Hypothesis_i.hxx
22 // Author : Christian VAN WAMBEKE (CEA) (from Hexotic plugin Lioka RAZAFINDRAZAKA)
25 #ifndef _GHS3DPRLPlugin_Hypothesis_i_HXX_
26 #define _GHS3DPRLPlugin_Hypothesis_i_HXX_
28 #include "GHS3DPRLPlugin_Defs.hxx"
30 #include <SALOMEconfig.h>
31 #include CORBA_SERVER_HEADER(GHS3DPRLPlugin_Algorithm)
33 #include "SMESH_Hypothesis_i.hxx"
34 #include "GHS3DPRLPlugin_Hypothesis.hxx"
38 // GHS3DPRLPlugin parameters hypothesis
40 class GHS3DPRLPLUGIN_EXPORT GHS3DPRLPlugin_Hypothesis_i:
41 public virtual POA_GHS3DPRLPlugin::GHS3DPRLPlugin_Hypothesis,
42 public virtual SMESH_Hypothesis_i
46 GHS3DPRLPlugin_Hypothesis_i (PortableServer::POA_ptr thePOA,
47 ::SMESH_Gen* theGenImpl);
49 virtual ~GHS3DPRLPlugin_Hypothesis_i();
51 // Methods for setting and getting parameters values
52 void SetMEDName(const char* theVal);
55 void SetNbPart(CORBA::Long theVal);
56 CORBA::Long GetNbPart();
58 void SetKeepFiles(CORBA::Boolean theVal);
59 CORBA::Boolean GetKeepFiles();
61 void SetBackground(CORBA::Boolean theVal);
62 CORBA::Boolean GetBackground();
64 void SetMultithread(CORBA::Boolean theVal);
65 CORBA::Boolean GetMultithread();
67 // void SetToMergeSubdomains(CORBA::Boolean theVal);
68 // CORBA::Boolean GetToMergeSubdomains();
70 void SetGradation(CORBA::Float theVal);
71 CORBA::Float GetGradation();
73 void SetMinSize(CORBA::Float theVal);
74 CORBA::Float GetMinSize();
76 void SetMaxSize(CORBA::Float theVal);
77 CORBA::Float GetMaxSize();
79 void SetAdvancedOption(const char* theOptAndVals );
80 char* GetAdvancedOption();
83 ::GHS3DPRLPlugin_Hypothesis* GetImpl();
85 // Verify whether hypothesis supports given entity type
86 CORBA::Boolean IsDimSupported( SMESH::Dimension type );
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; }