Salome HOME
Import a new plugin, sent by Stephane LIAUZU
[plugins/blsurfplugin.git] / src / BLSURFPlugin / BLSURFPlugin_Hypothesis_i.hxx
1 //  BLSURFPlugin : C++ implementation
2 //
3 //  Copyright (C) 2006  OPEN CASCADE, CEA/DEN, EDF R&D
4 // 
5 //  This library is free software; you can redistribute it and/or 
6 //  modify it under the terms of the GNU Lesser General Public 
7 //  License as published by the Free Software Foundation; either 
8 //  version 2.1 of the License. 
9 // 
10 //  This library is distributed in the hope that it will be useful, 
11 //  but WITHOUT ANY WARRANTY; without even the implied warranty of 
12 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
13 //  Lesser General Public License for more details. 
14 // 
15 //  You should have received a copy of the GNU Lesser General Public 
16 //  License along with this library; if not, write to the Free Software 
17 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
18 // 
19 //  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
20 //
21 //
22 // File      : BLSURFPlugin_Hypothesis_i.hxx
23 // Authors   : Francis KLOSS (OCC) & Patrick LAUG (INRIA) & Lioka RAZAFINDRAZAKA (CEA)
24 // Date      : 03/04/2006
25 // Project   : SALOME
26 //=============================================================================
27
28 #ifndef _BLSURFPlugin_Hypothesis_i_HXX_
29 #define _BLSURFPlugin_Hypothesis_i_HXX_
30
31 #include <SALOMEconfig.h>
32 #include CORBA_SERVER_HEADER(BLSURFPlugin_Algorithm)
33
34 #include "SMESH_Hypothesis_i.hxx"
35 #include "BLSURFPlugin_Hypothesis.hxx"
36
37 class SMESH_Gen;
38
39 // BLSURFPlugin parameters hypothesis
40
41 class BLSURFPlugin_Hypothesis_i:
42   public virtual POA_BLSURFPlugin::BLSURFPlugin_Hypothesis,
43   public virtual SMESH_Hypothesis_i
44 {
45  public:
46   // Constructor
47   BLSURFPlugin_Hypothesis_i (PortableServer::POA_ptr thePOA,
48                              int                     theStudyId,
49                              ::SMESH_Gen*            theGenImpl);
50   // Destructor
51   virtual ~BLSURFPlugin_Hypothesis_i();
52
53   void SetPhysicalMesh(CORBA::Long theValue);
54   CORBA::Long GetPhysicalMesh();
55
56   void SetPhySize(CORBA::Double theValue);
57   CORBA::Double GetPhySize();
58
59   void SetGeometricMesh(CORBA::Long theValue);
60   CORBA::Long GetGeometricMesh();
61
62   void SetAngleMeshS(CORBA::Double theValue);
63   CORBA::Double GetAngleMeshS();
64
65   void SetGradation(CORBA::Double theValue);
66   CORBA::Double GetGradation();
67
68   void SetQuadAllowed(CORBA::Boolean theValue);
69   CORBA::Boolean GetQuadAllowed();
70
71   void SetDecimesh(CORBA::Boolean theValue);
72   CORBA::Boolean GetDecimesh();
73
74   // Get implementation
75   ::BLSURFPlugin_Hypothesis* GetImpl();
76   
77   // Verify whether hypothesis supports given entity type 
78   CORBA::Boolean IsDimSupported( SMESH::Dimension type );
79 };
80
81 #endif