Salome HOME
b6957f170b3e10ec82032f6ab732665cd15d8b1c
[modules/smesh.git] / src / StdMeshers_I / StdMeshers_ViscousLayerBuilder_i.hxx
1 // Copyright (C) 2007-2023  CEA/DEN, EDF R&D, OPEN CASCADE
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 //  File   : StdMeshers_ViscousLayerBuilder_i.hxx
21 //  Module : SMESH
22 //
23 #ifndef _SMESH_ViscousLayersBuilder_I_HXX_
24 #define _SMESH_ViscousLayersBuilder_I_HXX_
25
26 #include "SMESH_StdMeshers_I.hxx"
27
28 #include <SALOMEconfig.h>
29 #include CORBA_SERVER_HEADER(SMESH_BasicHypothesis)
30
31 #include "SMESH_2D_Algo_i.hxx"
32 #include "SMESH_Hypothesis_i.hxx"
33 #include "SMESH_Mesh_i.hxx"
34 #include "StdMeshers_ViscousLayerBuilder.hxx"
35 #include "StdMeshers_ObjRefUlils.hxx"
36
37 class SMESH_Gen;
38
39 class STDMESHERS_I_EXPORT StdMeshers_ViscousLayerBuilder_i: 
40   public virtual POA_StdMeshers::StdMeshers_ViscousLayerBuilder,
41   public virtual SMESH_2D_Algo_i
42 {
43  public:
44   // Constructor
45   StdMeshers_ViscousLayerBuilder_i( PortableServer::POA_ptr thePOA,
46                                       ::SMESH_Gen*            theGenImpl );
47   // Destructor
48   virtual ~StdMeshers_ViscousLayerBuilder_i();
49
50   // Verify whether algorithm supports given entity type 
51   CORBA::Boolean IsDimSupported( SMESH::Dimension type );
52
53   // Get implementation
54   ::StdMeshers_ViscousLayerBuilder* GetImpl();  
55
56   void SetIgnoreFaces(const ::SMESH::long_array& faceIDs);
57   void SetFaces(const SMESH::long_array& faceIDs,
58                 CORBA::Boolean           toIgnore);
59   void SetTotalThickness(::CORBA::Double thickness);
60   void SetNumberLayers(::CORBA::Short nb);
61   void SetStretchFactor(::CORBA::Double factor);
62   void SetMethod( ::StdMeshers::VLExtrusionMethod how );
63   void SetGroupName(const char* name);
64
65   // Compute and return the shrink geometry 
66   GEOM::GEOM_Object_ptr GetShrinkGeometry( SMESH::SMESH_Mesh_ptr finalMesh, GEOM::GEOM_Object_ptr theShapeObject );
67
68   // Build the viscous layer on the specified faces/edges available in the sourceMesh and consolidate the result in the finalMesh
69   CORBA::Boolean AddLayers( SMESH::SMESH_Mesh_ptr sourceMesh, SMESH::SMESH_Mesh_ptr finalMesh, GEOM::GEOM_Object_ptr theShapeObject );
70   
71 };
72
73 #endif