Salome HOME
23586: [EDF] HYDRO: Copy mesh to new geometry
[plugins/hexablockplugin.git] / src / HEXABLOCKPlugin / HEXABLOCKPlugin_Hypothesis_i.hxx
1 // Copyright (C) 2009-2016  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, or (at your option) any later version.
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                                 ::SMESH_Gen*            theGenImpl);
49   // Destructor
50   virtual ~HEXABLOCKPlugin_Hypothesis_i();
51
52   /*!
53    * Define the document to be meshed, mandatory
54    */
55   char* GetDocument ();
56   void  SetDocument (const char* doc);
57
58   /*!
59    * To define the hight dimension to generated: 3 = hexas, 2 = quads, 1 = segments, 0 = nodes
60    */
61   CORBA::Long GetDimension();
62   void SetDimension(CORBA::Long dim);
63
64   // Get implementation
65   ::HEXABLOCKPlugin_Hypothesis* GetImpl();
66
67   // Verify whether hypothesis supports given entity type
68   CORBA::Boolean IsDimSupported( SMESH::Dimension type );
69
70   // Methods for copying mesh definition to other geometry
71   virtual bool getObjectsDependOn( std::vector< std::string > & entryArray,
72                                    std::vector< int >         & subIDArray ) const { return false; }
73   virtual bool setObjectsDependOn( std::vector< std::string > & entryArray,
74                                    std::vector< int >         & subIDArray ) { return true; }
75
76  private:
77   PortableServer::POA_var _poa;// POA reference
78
79 };
80
81 #endif