1 // Copyright (C) 2007-2016 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,
48 ::SMESH_Gen* theGenImpl);
50 virtual ~GHS3DPRLPlugin_Hypothesis_i();
52 // Methods for setting and getting parameters values
53 void SetMEDName(const char* theVal);
56 void SetNbPart(CORBA::Long theVal);
57 CORBA::Long GetNbPart();
59 void SetKeepFiles(CORBA::Boolean theVal);
60 CORBA::Boolean GetKeepFiles();
62 void SetBackground(CORBA::Boolean theVal);
63 CORBA::Boolean GetBackground();
65 void SetMultithread(CORBA::Boolean theVal);
66 CORBA::Boolean GetMultithread();
68 // void SetToMergeSubdomains(CORBA::Boolean theVal);
69 // CORBA::Boolean GetToMergeSubdomains();
71 void SetGradation(CORBA::Float theVal);
72 CORBA::Float GetGradation();
74 void SetMinSize(CORBA::Float theVal);
75 CORBA::Float GetMinSize();
77 void SetMaxSize(CORBA::Float theVal);
78 CORBA::Float GetMaxSize();
80 void SetAdvancedOption(const char* theOptAndVals );
81 char* GetAdvancedOption();
84 ::GHS3DPRLPlugin_Hypothesis* GetImpl();
86 // Verify whether hypothesis supports given entity type
87 CORBA::Boolean IsDimSupported( SMESH::Dimension type );