Salome HOME
Update copyright info (2010->2011)
[plugins/netgenplugin.git] / src / NETGENPlugin / NETGENPlugin_Hypothesis_i.hxx
1 //  Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 //  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 //  This library is free software; you can redistribute it and/or
7 //  modify it under the terms of the GNU Lesser General Public
8 //  License as published by the Free Software Foundation; either
9 //  version 2.1 of the License.
10 //
11 //  This library is distributed in the hope that it will be useful,
12 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 //  Lesser General Public License for more details.
15 //
16 //  You should have received a copy of the GNU Lesser General Public
17 //  License along with this library; if not, write to the Free Software
18 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 //
20 //  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22
23 //  NETGENPlugin : C++ implementation
24 // File      : NETGENPlugin_Hypothesis_i.hxx
25 // Author    : Michael Sazonov (OCN)
26 // Date      : 03/04/2006
27 // Project   : SALOME
28 // $Header$
29 //=============================================================================
30 //
31 #ifndef _NETGENPlugin_Hypothesis_i_HXX_
32 #define _NETGENPlugin_Hypothesis_i_HXX_
33
34 #include "NETGENPlugin_Defs.hxx"
35
36 #include <SALOMEconfig.h>
37 #include CORBA_SERVER_HEADER(NETGENPlugin_Algorithm)
38
39 #include "SMESH_Hypothesis_i.hxx"
40 #include "NETGENPlugin_Hypothesis.hxx"
41
42 class SMESH_Gen;
43 //class GEOM_Object;
44
45 // NETGENPlugin parameters hypothesis
46
47 class NETGENPLUGIN_EXPORT NETGENPlugin_Hypothesis_i:
48   public virtual POA_NETGENPlugin::NETGENPlugin_Hypothesis,
49   public virtual SMESH_Hypothesis_i
50 {
51  public:
52   // Constructor
53   NETGENPlugin_Hypothesis_i (PortableServer::POA_ptr thePOA,
54                              int                     theStudyId,
55                              ::SMESH_Gen*            theGenImpl);
56   // Destructor
57   virtual ~NETGENPlugin_Hypothesis_i();
58
59   void SetMaxSize(CORBA::Double theSize);
60   CORBA::Double GetMaxSize();
61
62   void SetSecondOrder(CORBA::Boolean theVal);
63   CORBA::Boolean GetSecondOrder();
64
65   void SetOptimize(CORBA::Boolean theVal);
66   CORBA::Boolean GetOptimize();
67
68   void SetFineness(CORBA::Long theFineness);
69   CORBA::Long GetFineness();
70
71   void SetGrowthRate(CORBA::Double theRate);
72   CORBA::Double GetGrowthRate();
73
74   void SetNbSegPerEdge(CORBA::Double theVal);
75   CORBA::Double GetNbSegPerEdge();
76
77   void SetNbSegPerRadius(CORBA::Double theVal);
78   CORBA::Double GetNbSegPerRadius();
79
80   void SetLocalSizeOnShape(GEOM::GEOM_Object_ptr GeomObj, CORBA::Double localSize);
81   void SetLocalSizeOnEntry(const char* entry, CORBA::Double localSize);
82   CORBA::Double GetLocalSizeOnEntry(const char* entry);
83   NETGENPlugin::string_array* GetLocalSizeEntries();
84   void UnsetLocalSizeOnEntry(const char* entry);
85
86   // Get implementation
87   ::NETGENPlugin_Hypothesis* GetImpl();
88   
89   // Verify whether hypothesis supports given entity type 
90   CORBA::Boolean IsDimSupported( SMESH::Dimension type );
91 };
92
93 #endif