Salome HOME
Porting HEXABLOCKPLUGIN SALOME module on WIN32 platform.
[plugins/hexablockplugin.git] / src / HEXABLOCKPlugin / HEXABLOCKPlugin_Hypothesis_i.hxx
1 // Copyright (C) 2009-2013  CEA/DEN, EDF R&D
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.
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 //  HEXABLOCKPlugin : C++ implementation
21 // File      : HEXABLOCKPlugin_Hypothesis_i.hxx
22 // Date      : 2010/11/08
23 // Project   : SALOME
24 //
25 #ifndef _HEXABLOCKPlugin_Hypothesis_i_HXX_
26 #define _HEXABLOCKPlugin_Hypothesis_i_HXX_
27
28 #include "HEXABLOCKPlugin_Defs.hxx"
29
30 #include <SALOMEconfig.h>
31 #include CORBA_SERVER_HEADER(HEXABLOCKPlugin_Algorithm)
32 //   #include CORBA_CLIENT_HEADER(Document)
33
34 #include "SMESH_Hypothesis_i.hxx"
35 #include "HEXABLOCKPlugin_Hypothesis.hxx"
36
37 class SMESH_Gen;
38
39 // HEXABLOCKPlugin parameters hypothesis
40
41 class HEXABLOCKPLUGINENGINE_EXPORT HEXABLOCKPlugin_Hypothesis_i:
42   public virtual POA_HEXABLOCKPlugin::HEXABLOCKPlugin_Hypothesis,
43   public virtual SMESH_Hypothesis_i
44 {
45  public:
46   // Constructor
47   HEXABLOCKPlugin_Hypothesis_i (PortableServer::POA_ptr thePOA,
48                             int                     theStudyId,
49                             ::SMESH_Gen*            theGenImpl);
50   // Destructor
51   virtual ~HEXABLOCKPlugin_Hypothesis_i();
52
53     /*!
54      * Define the document to be meshed, mandatory
55      */
56     char* GetDocument ();
57     void  SetDocument (const char* doc);
58
59     /*!
60      * To define the hight dimension to generated: 3 = hexas, 2 = quads, 1 = segments, 0 = nodes
61      */
62     CORBA::Long GetDimension();
63     void SetDimension(CORBA::Long dim);
64
65     // Get implementation
66     ::HEXABLOCKPlugin_Hypothesis* GetImpl();
67   
68     // Verify whether hypothesis supports given entity type 
69     CORBA::Boolean IsDimSupported( SMESH::Dimension type );
70
71  private:
72     PortableServer::POA_var _poa;// POA reference
73
74 };
75
76 #endif