1 // Copyright (C) 2009-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
20 // HEXABLOCKPlugin : C++ implementation
21 // File : HEXABLOCKPlugin_Hypothesis_i.hxx
25 #ifndef _HEXABLOCKPlugin_Hypothesis_i_HXX_
26 #define _HEXABLOCKPlugin_Hypothesis_i_HXX_
28 #include "HEXABLOCKPlugin_Defs.hxx"
30 #include <SALOMEconfig.h>
31 #include CORBA_SERVER_HEADER(HEXABLOCKPlugin_Algorithm)
32 // #include CORBA_CLIENT_HEADER(Document)
34 #include "SMESH_Hypothesis_i.hxx"
35 #include "HEXABLOCKPlugin_Hypothesis.hxx"
39 // HEXABLOCKPlugin parameters hypothesis
41 class HEXABLOCKPLUGINENGINE_EXPORT HEXABLOCKPlugin_Hypothesis_i:
42 public virtual POA_HEXABLOCKPlugin::HEXABLOCKPlugin_Hypothesis,
43 public virtual SMESH_Hypothesis_i
47 HEXABLOCKPlugin_Hypothesis_i (PortableServer::POA_ptr thePOA,
49 ::SMESH_Gen* theGenImpl);
51 virtual ~HEXABLOCKPlugin_Hypothesis_i();
54 * Define the document to be meshed, mandatory
57 void SetDocument (const char* doc);
60 * To define the hight dimension to generated: 3 = hexas, 2 = quads, 1 = segments, 0 = nodes
62 CORBA::Long GetDimension();
63 void SetDimension(CORBA::Long dim);
66 ::HEXABLOCKPlugin_Hypothesis* GetImpl();
68 // Verify whether hypothesis supports given entity type
69 CORBA::Boolean IsDimSupported( SMESH::Dimension type );
72 PortableServer::POA_var _poa;// POA reference